AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
AccessControlRule.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
8#include <aws/amplifygen3/model/AccessRuleCondition.h>
9#include <aws/amplifygen3/model/Unit.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 AmplifyGen3 {
22namespace Model {
23
31 public:
32 AWS_AMPLIFYGEN3_API AccessControlRule() = default;
33 AWS_AMPLIFYGEN3_API AccessControlRule(Aws::Utils::Json::JsonView jsonValue);
35 AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Unit& GetAnyAuthenticatedUser() const { return m_anyAuthenticatedUser; }
42 inline bool AnyAuthenticatedUserHasBeenSet() const { return m_anyAuthenticatedUserHasBeenSet; }
43 template <typename AnyAuthenticatedUserT = Unit>
44 void SetAnyAuthenticatedUser(AnyAuthenticatedUserT&& value) {
45 m_anyAuthenticatedUserHasBeenSet = true;
46 m_anyAuthenticatedUser = std::forward<AnyAuthenticatedUserT>(value);
47 }
48 template <typename AnyAuthenticatedUserT = Unit>
49 AccessControlRule& WithAnyAuthenticatedUser(AnyAuthenticatedUserT&& value) {
50 SetAnyAuthenticatedUser(std::forward<AnyAuthenticatedUserT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<AccessRuleCondition>& GetUserClaims() const { return m_userClaims; }
60 inline bool UserClaimsHasBeenSet() const { return m_userClaimsHasBeenSet; }
61 template <typename UserClaimsT = Aws::Vector<AccessRuleCondition>>
62 void SetUserClaims(UserClaimsT&& value) {
63 m_userClaimsHasBeenSet = true;
64 m_userClaims = std::forward<UserClaimsT>(value);
65 }
66 template <typename UserClaimsT = Aws::Vector<AccessRuleCondition>>
67 AccessControlRule& WithUserClaims(UserClaimsT&& value) {
68 SetUserClaims(std::forward<UserClaimsT>(value));
69 return *this;
70 }
71 template <typename UserClaimsT = AccessRuleCondition>
72 AccessControlRule& AddUserClaims(UserClaimsT&& value) {
73 m_userClaimsHasBeenSet = true;
74 m_userClaims.emplace_back(std::forward<UserClaimsT>(value));
75 return *this;
76 }
78 private:
79 Unit m_anyAuthenticatedUser;
80
82 bool m_anyAuthenticatedUserHasBeenSet = false;
83 bool m_userClaimsHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace AmplifyGen3
88} // namespace Aws
AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_AMPLIFYGEN3_API AccessControlRule & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_AMPLIFYGEN3_API AccessControlRule()=default
AWS_AMPLIFYGEN3_API AccessControlRule(Aws::Utils::Json::JsonView jsonValue)
void SetAnyAuthenticatedUser(AnyAuthenticatedUserT &&value)
const Aws::Vector< AccessRuleCondition > & GetUserClaims() const
AccessControlRule & AddUserClaims(UserClaimsT &&value)
AccessControlRule & WithUserClaims(UserClaimsT &&value)
AccessControlRule & WithAnyAuthenticatedUser(AnyAuthenticatedUserT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue