AWS SDK for C++

AWS SDK for C++ Version 1.11.816

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 private:
116 Aws::String m_identifier;
117
119
120 Authentication m_authentication;
121
122 Aws::String m_description;
123 bool m_identifierHasBeenSet = false;
124 bool m_urisHasBeenSet = false;
125 bool m_authenticationHasBeenSet = false;
126 bool m_descriptionHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace SecurityAgent
131} // namespace Aws
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
AWS_SECURITYAGENT_API Actor()=default
Actor & AddUris(UrisT &&value)
Definition Actor.h:73
Actor & WithIdentifier(IdentifierT &&value)
Definition Actor.h:50
const Aws::String & GetIdentifier() const
Definition Actor.h:42
void SetAuthentication(AuthenticationT &&value)
Definition Actor.h:87
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
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