AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
BackendStoragePermissions.h
1
6#pragma once
7#include <aws/amplifybackend/AmplifyBackend_EXPORTS.h>
8#include <aws/amplifybackend/model/AuthenticatedElement.h>
9#include <aws/amplifybackend/model/UnAuthenticatedElement.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AmplifyBackend {
22namespace Model {
23
31 public:
32 AWS_AMPLIFYBACKEND_API BackendStoragePermissions() = default;
33 AWS_AMPLIFYBACKEND_API BackendStoragePermissions(Aws::Utils::Json::JsonView jsonValue);
35 AWS_AMPLIFYBACKEND_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::Vector<AuthenticatedElement>& GetAuthenticated() const { return m_authenticated; }
43 inline bool AuthenticatedHasBeenSet() const { return m_authenticatedHasBeenSet; }
44 template <typename AuthenticatedT = Aws::Vector<AuthenticatedElement>>
45 void SetAuthenticated(AuthenticatedT&& value) {
46 m_authenticatedHasBeenSet = true;
47 m_authenticated = std::forward<AuthenticatedT>(value);
48 }
49 template <typename AuthenticatedT = Aws::Vector<AuthenticatedElement>>
51 SetAuthenticated(std::forward<AuthenticatedT>(value));
52 return *this;
53 }
55 m_authenticatedHasBeenSet = true;
56 m_authenticated.push_back(value);
57 return *this;
58 }
60
62
66 inline const Aws::Vector<UnAuthenticatedElement>& GetUnAuthenticated() const { return m_unAuthenticated; }
67 inline bool UnAuthenticatedHasBeenSet() const { return m_unAuthenticatedHasBeenSet; }
68 template <typename UnAuthenticatedT = Aws::Vector<UnAuthenticatedElement>>
69 void SetUnAuthenticated(UnAuthenticatedT&& value) {
70 m_unAuthenticatedHasBeenSet = true;
71 m_unAuthenticated = std::forward<UnAuthenticatedT>(value);
72 }
73 template <typename UnAuthenticatedT = Aws::Vector<UnAuthenticatedElement>>
75 SetUnAuthenticated(std::forward<UnAuthenticatedT>(value));
76 return *this;
77 }
79 m_unAuthenticatedHasBeenSet = true;
80 m_unAuthenticated.push_back(value);
81 return *this;
82 }
84 private:
86
88 bool m_authenticatedHasBeenSet = false;
89 bool m_unAuthenticatedHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace AmplifyBackend
94} // 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