AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
BackendStoragePermissions.h
1
6#pragma once
7#include <aws/amplifybackend/AmplifyBackend_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/amplifybackend/model/AuthenticatedElement.h>
10#include <aws/amplifybackend/model/UnAuthenticatedElement.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AmplifyBackend
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_AMPLIFYBACKEND_API BackendStoragePermissions() = default;
38 AWS_AMPLIFYBACKEND_API BackendStoragePermissions(Aws::Utils::Json::JsonView jsonValue);
40 AWS_AMPLIFYBACKEND_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::Vector<AuthenticatedElement>& GetAuthenticated() const { return m_authenticated; }
49 inline bool AuthenticatedHasBeenSet() const { return m_authenticatedHasBeenSet; }
50 template<typename AuthenticatedT = Aws::Vector<AuthenticatedElement>>
51 void SetAuthenticated(AuthenticatedT&& value) { m_authenticatedHasBeenSet = true; m_authenticated = std::forward<AuthenticatedT>(value); }
52 template<typename AuthenticatedT = Aws::Vector<AuthenticatedElement>>
53 BackendStoragePermissions& WithAuthenticated(AuthenticatedT&& value) { SetAuthenticated(std::forward<AuthenticatedT>(value)); return *this;}
54 inline BackendStoragePermissions& AddAuthenticated(AuthenticatedElement value) { m_authenticatedHasBeenSet = true; m_authenticated.push_back(value); return *this; }
56
58
62 inline const Aws::Vector<UnAuthenticatedElement>& GetUnAuthenticated() const { return m_unAuthenticated; }
63 inline bool UnAuthenticatedHasBeenSet() const { return m_unAuthenticatedHasBeenSet; }
64 template<typename UnAuthenticatedT = Aws::Vector<UnAuthenticatedElement>>
65 void SetUnAuthenticated(UnAuthenticatedT&& value) { m_unAuthenticatedHasBeenSet = true; m_unAuthenticated = std::forward<UnAuthenticatedT>(value); }
66 template<typename UnAuthenticatedT = Aws::Vector<UnAuthenticatedElement>>
67 BackendStoragePermissions& WithUnAuthenticated(UnAuthenticatedT&& value) { SetUnAuthenticated(std::forward<UnAuthenticatedT>(value)); return *this;}
68 inline BackendStoragePermissions& AddUnAuthenticated(UnAuthenticatedElement value) { m_unAuthenticatedHasBeenSet = true; m_unAuthenticated.push_back(value); return *this; }
70 private:
71
73 bool m_authenticatedHasBeenSet = false;
74
76 bool m_unAuthenticatedHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace AmplifyBackend
81} // namespace Aws
BackendStoragePermissions & WithUnAuthenticated(UnAuthenticatedT &&value)
const Aws::Vector< AuthenticatedElement > & GetAuthenticated() const
AWS_AMPLIFYBACKEND_API BackendStoragePermissions & operator=(Aws::Utils::Json::JsonView jsonValue)
BackendStoragePermissions & AddUnAuthenticated(UnAuthenticatedElement value)
AWS_AMPLIFYBACKEND_API Aws::Utils::Json::JsonValue Jsonize() const
BackendStoragePermissions & AddAuthenticated(AuthenticatedElement value)
AWS_AMPLIFYBACKEND_API BackendStoragePermissions()=default
const Aws::Vector< UnAuthenticatedElement > & GetUnAuthenticated() const
BackendStoragePermissions & WithAuthenticated(AuthenticatedT &&value)
AWS_AMPLIFYBACKEND_API BackendStoragePermissions(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue