AWS SDK for C++  1.9.105
AWS SDK for C++
HandshakeParty.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Organizations
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
46  inline const Aws::String& GetId() const{ return m_id; }
47 
53  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
54 
60  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
61 
67  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
68 
74  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
75 
81  inline HandshakeParty& WithId(const Aws::String& value) { SetId(value); return *this;}
82 
88  inline HandshakeParty& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
89 
95  inline HandshakeParty& WithId(const char* value) { SetId(value); return *this;}
96 
97 
101  inline const HandshakePartyType& GetType() const{ return m_type; }
102 
106  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
107 
111  inline void SetType(const HandshakePartyType& value) { m_typeHasBeenSet = true; m_type = value; }
112 
116  inline void SetType(HandshakePartyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
117 
121  inline HandshakeParty& WithType(const HandshakePartyType& value) { SetType(value); return *this;}
122 
126  inline HandshakeParty& WithType(HandshakePartyType&& value) { SetType(std::move(value)); return *this;}
127 
128  private:
129 
130  Aws::String m_id;
131  bool m_idHasBeenSet;
132 
133  HandshakePartyType m_type;
134  bool m_typeHasBeenSet;
135  };
136 
137 } // namespace Model
138 } // namespace Organizations
139 } // namespace Aws
Aws::Organizations::Model::HandshakeParty
Definition: HandshakeParty.h:33
Aws::Organizations::Model::HandshakeParty::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: HandshakeParty.h:106
Aws::Organizations::Model::HandshakeParty::SetType
void SetType(HandshakePartyType &&value)
Definition: HandshakeParty.h:116
Aws::Organizations::Model::HandshakeParty::WithId
HandshakeParty & WithId(const Aws::String &value)
Definition: HandshakeParty.h:81
Aws::Organizations::Model::HandshakeParty::WithType
HandshakeParty & WithType(const HandshakePartyType &value)
Definition: HandshakeParty.h:121
Aws::Organizations::Model::HandshakeParty::WithId
HandshakeParty & WithId(const char *value)
Definition: HandshakeParty.h:95
Aws::Organizations::Model::HandshakeParty::IdHasBeenSet
bool IdHasBeenSet() const
Definition: HandshakeParty.h:53
Aws::Organizations::Model::HandshakeParty::WithId
HandshakeParty & WithId(Aws::String &&value)
Definition: HandshakeParty.h:88
Aws::Organizations::Model::HandshakeParty::SetId
void SetId(const char *value)
Definition: HandshakeParty.h:74
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::HandshakeParty::SetType
void SetType(const HandshakePartyType &value)
Definition: HandshakeParty.h:111
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Organizations::Model::HandshakeParty::WithType
HandshakeParty & WithType(HandshakePartyType &&value)
Definition: HandshakeParty.h:126
Aws::Organizations::Model::HandshakePartyType
HandshakePartyType
Definition: HandshakePartyType.h:17
Aws::Organizations::Model::HandshakeParty::SetId
void SetId(const Aws::String &value)
Definition: HandshakeParty.h:60
Aws::Organizations::Model::HandshakeParty::GetType
const HandshakePartyType & GetType() const
Definition: HandshakeParty.h:101
Aws::Organizations::Model::HandshakeParty::GetId
const Aws::String & GetId() const
Definition: HandshakeParty.h:46
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::HandshakeParty::HandshakeParty
HandshakeParty()
Aws::Organizations::Model::HandshakeParty::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Organizations_EXPORTS.h
Aws::Organizations::Model::HandshakeParty::SetId
void SetId(Aws::String &&value)
Definition: HandshakeParty.h:67
Aws::Organizations::Model::HandshakeParty::HandshakeParty
HandshakeParty(Aws::Utils::Json::JsonView jsonValue)
Aws::Organizations::Model::HandshakeParty::operator=
HandshakeParty & operator=(Aws::Utils::Json::JsonView jsonValue)
HandshakePartyType.h