AWS SDK for C++

AWS SDK for C++ Version 1.11.788

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
30class Actor {
31 public:
32 AWS_SECURITYAGENT_API Actor() = default;
33 AWS_SECURITYAGENT_API Actor(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SECURITYAGENT_API Actor& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetIdentifier() const { return m_identifier; }
42 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
43 template <typename IdentifierT = Aws::String>
44 void SetIdentifier(IdentifierT&& value) {
45 m_identifierHasBeenSet = true;
46 m_identifier = std::forward<IdentifierT>(value);
47 }
48 template <typename IdentifierT = Aws::String>
49 Actor& WithIdentifier(IdentifierT&& value) {
50 SetIdentifier(std::forward<IdentifierT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<Aws::String>& GetUris() const { return m_uris; }
60 inline bool UrisHasBeenSet() const { return m_urisHasBeenSet; }
61 template <typename UrisT = Aws::Vector<Aws::String>>
62 void SetUris(UrisT&& value) {
63 m_urisHasBeenSet = true;
64 m_uris = std::forward<UrisT>(value);
65 }
66 template <typename UrisT = Aws::Vector<Aws::String>>
67 Actor& WithUris(UrisT&& value) {
68 SetUris(std::forward<UrisT>(value));
69 return *this;
70 }
71 template <typename UrisT = Aws::String>
72 Actor& AddUris(UrisT&& value) {
73 m_urisHasBeenSet = true;
74 m_uris.emplace_back(std::forward<UrisT>(value));
75 return *this;
76 }
78
80
83 inline const Authentication& GetAuthentication() const { return m_authentication; }
84 inline bool AuthenticationHasBeenSet() const { return m_authenticationHasBeenSet; }
85 template <typename AuthenticationT = Authentication>
86 void SetAuthentication(AuthenticationT&& value) {
87 m_authenticationHasBeenSet = true;
88 m_authentication = std::forward<AuthenticationT>(value);
89 }
90 template <typename AuthenticationT = Authentication>
91 Actor& WithAuthentication(AuthenticationT&& value) {
92 SetAuthentication(std::forward<AuthenticationT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetDescription() const { return m_description; }
102 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
103 template <typename DescriptionT = Aws::String>
104 void SetDescription(DescriptionT&& value) {
105 m_descriptionHasBeenSet = true;
106 m_description = std::forward<DescriptionT>(value);
107 }
108 template <typename DescriptionT = Aws::String>
109 Actor& WithDescription(DescriptionT&& value) {
110 SetDescription(std::forward<DescriptionT>(value));
111 return *this;
112 }
114 private:
115 Aws::String m_identifier;
116
118
119 Authentication m_authentication;
120
121 Aws::String m_description;
122 bool m_identifierHasBeenSet = false;
123 bool m_urisHasBeenSet = false;
124 bool m_authenticationHasBeenSet = false;
125 bool m_descriptionHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace SecurityAgent
130} // namespace Aws
AWS_SECURITYAGENT_API Actor(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDescription() const
Definition Actor.h:101
void SetIdentifier(IdentifierT &&value)
Definition Actor.h:44
void SetDescription(DescriptionT &&value)
Definition Actor.h:104
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:67
const Authentication & GetAuthentication() const
Definition Actor.h:83
void SetUris(UrisT &&value)
Definition Actor.h:62
AWS_SECURITYAGENT_API Actor()=default
Actor & AddUris(UrisT &&value)
Definition Actor.h:72
Actor & WithIdentifier(IdentifierT &&value)
Definition Actor.h:49
const Aws::String & GetIdentifier() const
Definition Actor.h:41
void SetAuthentication(AuthenticationT &&value)
Definition Actor.h:86
const Aws::Vector< Aws::String > & GetUris() const
Definition Actor.h:59
Actor & WithDescription(DescriptionT &&value)
Definition Actor.h:109
bool AuthenticationHasBeenSet() const
Definition Actor.h:84
bool IdentifierHasBeenSet() const
Definition Actor.h:42
Actor & WithAuthentication(AuthenticationT &&value)
Definition Actor.h:91
bool DescriptionHasBeenSet() const
Definition Actor.h:102
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue