AWS SDK for C++  1.9.109
AWS SDK for C++
HandshakeResource.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace Organizations
25 {
26 namespace Model
27 {
28 
36  {
37  public:
42 
43 
49  inline const Aws::String& GetValue() const{ return m_value; }
50 
56  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
57 
63  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
64 
70  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
71 
77  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
78 
84  inline HandshakeResource& WithValue(const Aws::String& value) { SetValue(value); return *this;}
85 
91  inline HandshakeResource& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
92 
98  inline HandshakeResource& WithValue(const char* value) { SetValue(value); return *this;}
99 
100 
115  inline const HandshakeResourceType& GetType() const{ return m_type; }
116 
131  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
132 
147  inline void SetType(const HandshakeResourceType& value) { m_typeHasBeenSet = true; m_type = value; }
148 
163  inline void SetType(HandshakeResourceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
164 
179  inline HandshakeResource& WithType(const HandshakeResourceType& value) { SetType(value); return *this;}
180 
195  inline HandshakeResource& WithType(HandshakeResourceType&& value) { SetType(std::move(value)); return *this;}
196 
197 
202  inline const Aws::Vector<HandshakeResource>& GetResources() const{ return m_resources; }
203 
208  inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
209 
214  inline void SetResources(const Aws::Vector<HandshakeResource>& value) { m_resourcesHasBeenSet = true; m_resources = value; }
215 
220  inline void SetResources(Aws::Vector<HandshakeResource>&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
221 
226  inline HandshakeResource& WithResources(const Aws::Vector<HandshakeResource>& value) { SetResources(value); return *this;}
227 
232  inline HandshakeResource& WithResources(Aws::Vector<HandshakeResource>&& value) { SetResources(std::move(value)); return *this;}
233 
238  inline HandshakeResource& AddResources(const HandshakeResource& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
239 
244  inline HandshakeResource& AddResources(HandshakeResource&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; }
245 
246  private:
247 
248  Aws::String m_value;
249  bool m_valueHasBeenSet;
250 
251  HandshakeResourceType m_type;
252  bool m_typeHasBeenSet;
253 
254  Aws::Vector<HandshakeResource> m_resources;
255  bool m_resourcesHasBeenSet;
256  };
257 
258 } // namespace Model
259 } // namespace Organizations
260 } // namespace Aws
Aws::Organizations::Model::HandshakeResource::WithValue
HandshakeResource & WithValue(const char *value)
Definition: HandshakeResource.h:98
Aws::Organizations::Model::HandshakeResource
Definition: HandshakeResource.h:36
Aws::Organizations::Model::HandshakeResource::ResourcesHasBeenSet
bool ResourcesHasBeenSet() const
Definition: HandshakeResource.h:208
Aws::Organizations::Model::HandshakeResource::SetValue
void SetValue(const Aws::String &value)
Definition: HandshakeResource.h:63
Aws::Organizations::Model::HandshakeResource::WithValue
HandshakeResource & WithValue(Aws::String &&value)
Definition: HandshakeResource.h:91
Aws::Organizations::Model::HandshakeResource::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: HandshakeResource.h:131
Aws::Organizations::Model::HandshakeResource::WithResources
HandshakeResource & WithResources(Aws::Vector< HandshakeResource > &&value)
Definition: HandshakeResource.h:232
Aws::Organizations::Model::HandshakeResourceType
HandshakeResourceType
Definition: HandshakeResourceType.h:17
Aws::Organizations::Model::HandshakeResource::AddResources
HandshakeResource & AddResources(const HandshakeResource &value)
Definition: HandshakeResource.h:238
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::Organizations::Model::HandshakeResource::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Organizations::Model::HandshakeResource::HandshakeResource
HandshakeResource(Aws::Utils::Json::JsonView jsonValue)
HandshakeResourceType.h
Aws::Organizations::Model::HandshakeResource::SetResources
void SetResources(Aws::Vector< HandshakeResource > &&value)
Definition: HandshakeResource.h:220
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::HandshakeResource::AddResources
HandshakeResource & AddResources(HandshakeResource &&value)
Definition: HandshakeResource.h:244
Aws::Organizations::Model::HandshakeResource::SetType
void SetType(HandshakeResourceType &&value)
Definition: HandshakeResource.h:163
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Organizations::Model::HandshakeResource::WithResources
HandshakeResource & WithResources(const Aws::Vector< HandshakeResource > &value)
Definition: HandshakeResource.h:226
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Organizations::Model::HandshakeResource::SetType
void SetType(const HandshakeResourceType &value)
Definition: HandshakeResource.h:147
Aws::Organizations::Model::HandshakeResource::HandshakeResource
HandshakeResource()
Aws::Organizations::Model::HandshakeResource::WithType
HandshakeResource & WithType(const HandshakeResourceType &value)
Definition: HandshakeResource.h:179
Aws::Organizations::Model::HandshakeResource::GetValue
const Aws::String & GetValue() const
Definition: HandshakeResource.h:49
Aws::Organizations::Model::HandshakeResource::WithType
HandshakeResource & WithType(HandshakeResourceType &&value)
Definition: HandshakeResource.h:195
Aws::Organizations::Model::HandshakeResource::SetValue
void SetValue(Aws::String &&value)
Definition: HandshakeResource.h:70
HandshakeResource.h
Aws::Organizations::Model::HandshakeResource::WithValue
HandshakeResource & WithValue(const Aws::String &value)
Definition: HandshakeResource.h:84
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::HandshakeResource::SetResources
void SetResources(const Aws::Vector< HandshakeResource > &value)
Definition: HandshakeResource.h:214
Aws::Organizations::Model::HandshakeResource::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: HandshakeResource.h:56
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Organizations_EXPORTS.h
Aws::Organizations::Model::HandshakeResource::GetType
const HandshakeResourceType & GetType() const
Definition: HandshakeResource.h:115
Aws::Organizations::Model::HandshakeResource::SetValue
void SetValue(const char *value)
Definition: HandshakeResource.h:77
Aws::Organizations::Model::HandshakeResource::GetResources
const Aws::Vector< HandshakeResource > & GetResources() const
Definition: HandshakeResource.h:202
Aws::Organizations::Model::HandshakeResource::operator=
HandshakeResource & operator=(Aws::Utils::Json::JsonView jsonValue)