AWS SDK for C++

AWS SDK for C++ Version 1.11.865

Loading...
Searching...
No Matches
Actor.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityagent/SecurityAgent_EXPORTS.h>
10#include <aws/securityagent/model/Authentication.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityAgent {
22namespace Model {
23
31class Actor {
32 public:
33 AWS_SECURITYAGENT_API Actor() = default;
34 AWS_SECURITYAGENT_API Actor(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SECURITYAGENT_API Actor& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetIdentifier() const { return m_identifier; }
43 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
44 template <typename IdentifierT = Aws::String>
45 void SetIdentifier(IdentifierT&& value) {
46 m_identifierHasBeenSet = true;
47 m_identifier = std::forward<IdentifierT>(value);
48 }
49 template <typename IdentifierT = Aws::String>
50 Actor& WithIdentifier(IdentifierT&& value) {
51 SetIdentifier(std::forward<IdentifierT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Vector<Aws::String>& GetUris() const { return m_uris; }
61 inline bool UrisHasBeenSet() const { return m_urisHasBeenSet; }
62 template <typename UrisT = Aws::Vector<Aws::String>>
63 void SetUris(UrisT&& value) {
64 m_urisHasBeenSet = true;
65 m_uris = std::forward<UrisT>(value);
66 }
67 template <typename UrisT = Aws::Vector<Aws::String>>
68 Actor& WithUris(UrisT&& value) {
69 SetUris(std::forward<UrisT>(value));
70 return *this;
71 }
72 template <typename UrisT = Aws::String>
73 Actor& AddUris(UrisT&& value) {
74 m_urisHasBeenSet = true;
75 m_uris.emplace_back(std::forward<UrisT>(value));
76 return *this;
77 }
79
81
84 inline const Authentication& GetAuthentication() const { return m_authentication; }
85 inline bool AuthenticationHasBeenSet() const { return m_authenticationHasBeenSet; }
86 template <typename AuthenticationT = Authentication>
87 void SetAuthentication(AuthenticationT&& value) {
88 m_authenticationHasBeenSet = true;
89 m_authentication = std::forward<AuthenticationT>(value);
90 }
91 template <typename AuthenticationT = Authentication>
92 Actor& WithAuthentication(AuthenticationT&& value) {
93 SetAuthentication(std::forward<AuthenticationT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::String& GetDescription() const { return m_description; }
103 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
104 template <typename DescriptionT = Aws::String>
105 void SetDescription(DescriptionT&& value) {
106 m_descriptionHasBeenSet = true;
107 m_description = std::forward<DescriptionT>(value);
108 }
109 template <typename DescriptionT = Aws::String>
110 Actor& WithDescription(DescriptionT&& value) {
111 SetDescription(std::forward<DescriptionT>(value));
112 return *this;
113 }
115
117
120 inline bool GetEnableEmailMfa() const { return m_enableEmailMfa; }
121 inline bool EnableEmailMfaHasBeenSet() const { return m_enableEmailMfaHasBeenSet; }
122 inline void SetEnableEmailMfa(bool value) {
123 m_enableEmailMfaHasBeenSet = true;
124 m_enableEmailMfa = value;
125 }
126 inline Actor& WithEnableEmailMfa(bool value) {
127 SetEnableEmailMfa(value);
128 return *this;
129 }
131
133
136 inline const Aws::String& GetMfaForwardingAddress() const { return m_mfaForwardingAddress; }
137 inline bool MfaForwardingAddressHasBeenSet() const { return m_mfaForwardingAddressHasBeenSet; }
138 template <typename MfaForwardingAddressT = Aws::String>
139 void SetMfaForwardingAddress(MfaForwardingAddressT&& value) {
140 m_mfaForwardingAddressHasBeenSet = true;
141 m_mfaForwardingAddress = std::forward<MfaForwardingAddressT>(value);
142 }
143 template <typename MfaForwardingAddressT = Aws::String>
144 Actor& WithMfaForwardingAddress(MfaForwardingAddressT&& value) {
145 SetMfaForwardingAddress(std::forward<MfaForwardingAddressT>(value));
146 return *this;
147 }
149 private:
150 Aws::String m_identifier;
151
153
154 Authentication m_authentication;
155
156 Aws::String m_description;
157
158 bool m_enableEmailMfa{false};
159
160 Aws::String m_mfaForwardingAddress;
161 bool m_identifierHasBeenSet = false;
162 bool m_urisHasBeenSet = false;
163 bool m_authenticationHasBeenSet = false;
164 bool m_descriptionHasBeenSet = false;
165 bool m_enableEmailMfaHasBeenSet = false;
166 bool m_mfaForwardingAddressHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace SecurityAgent
171} // namespace Aws
bool MfaForwardingAddressHasBeenSet() const
Definition Actor.h:137
AWS_SECURITYAGENT_API Actor(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDescription() const
Definition Actor.h:102
void SetIdentifier(IdentifierT &&value)
Definition Actor.h:45
void SetDescription(DescriptionT &&value)
Definition Actor.h:105
AWS_SECURITYAGENT_API Actor & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
Actor & WithUris(UrisT &&value)
Definition Actor.h:68
const Authentication & GetAuthentication() const
Definition Actor.h:84
void SetUris(UrisT &&value)
Definition Actor.h:63
const Aws::String & GetMfaForwardingAddress() const
Definition Actor.h:136
AWS_SECURITYAGENT_API Actor()=default
Actor & AddUris(UrisT &&value)
Definition Actor.h:73
void SetEnableEmailMfa(bool value)
Definition Actor.h:122
Actor & WithIdentifier(IdentifierT &&value)
Definition Actor.h:50
void SetMfaForwardingAddress(MfaForwardingAddressT &&value)
Definition Actor.h:139
const Aws::String & GetIdentifier() const
Definition Actor.h:42
void SetAuthentication(AuthenticationT &&value)
Definition Actor.h:87
Actor & WithEnableEmailMfa(bool value)
Definition Actor.h:126
Actor & WithMfaForwardingAddress(MfaForwardingAddressT &&value)
Definition Actor.h:144
const Aws::Vector< Aws::String > & GetUris() const
Definition Actor.h:60
Actor & WithDescription(DescriptionT &&value)
Definition Actor.h:110
bool AuthenticationHasBeenSet() const
Definition Actor.h:85
bool IdentifierHasBeenSet() const
Definition Actor.h:43
bool EnableEmailMfaHasBeenSet() const
Definition Actor.h:121
Actor & WithAuthentication(AuthenticationT &&value)
Definition Actor.h:92
bool DescriptionHasBeenSet() const
Definition Actor.h:103
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue