AWS SDK for C++  1.9.105
AWS SDK for C++
InviteAccountToOrganizationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Organizations
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "InviteAccountToOrganization"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
52  inline const HandshakeParty& GetTarget() const{ return m_target; }
53 
66  inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
67 
80  inline void SetTarget(const HandshakeParty& value) { m_targetHasBeenSet = true; m_target = value; }
81 
94  inline void SetTarget(HandshakeParty&& value) { m_targetHasBeenSet = true; m_target = std::move(value); }
95 
108  inline InviteAccountToOrganizationRequest& WithTarget(const HandshakeParty& value) { SetTarget(value); return *this;}
109 
122  inline InviteAccountToOrganizationRequest& WithTarget(HandshakeParty&& value) { SetTarget(std::move(value)); return *this;}
123 
124 
129  inline const Aws::String& GetNotes() const{ return m_notes; }
130 
135  inline bool NotesHasBeenSet() const { return m_notesHasBeenSet; }
136 
141  inline void SetNotes(const Aws::String& value) { m_notesHasBeenSet = true; m_notes = value; }
142 
147  inline void SetNotes(Aws::String&& value) { m_notesHasBeenSet = true; m_notes = std::move(value); }
148 
153  inline void SetNotes(const char* value) { m_notesHasBeenSet = true; m_notes.assign(value); }
154 
159  inline InviteAccountToOrganizationRequest& WithNotes(const Aws::String& value) { SetNotes(value); return *this;}
160 
165  inline InviteAccountToOrganizationRequest& WithNotes(Aws::String&& value) { SetNotes(std::move(value)); return *this;}
166 
171  inline InviteAccountToOrganizationRequest& WithNotes(const char* value) { SetNotes(value); return *this;}
172 
173 
191  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
192 
210  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
211 
229  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
230 
248  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
249 
267  inline InviteAccountToOrganizationRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
268 
286  inline InviteAccountToOrganizationRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
287 
305  inline InviteAccountToOrganizationRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
306 
324  inline InviteAccountToOrganizationRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
325 
326  private:
327 
328  HandshakeParty m_target;
329  bool m_targetHasBeenSet;
330 
331  Aws::String m_notes;
332  bool m_notesHasBeenSet;
333 
334  Aws::Vector<Tag> m_tags;
335  bool m_tagsHasBeenSet;
336  };
337 
338 } // namespace Model
339 } // namespace Organizations
340 } // namespace Aws
Aws::Organizations::Model::HandshakeParty
Definition: HandshakeParty.h:33
Aws::Organizations::Model::InviteAccountToOrganizationRequest::SetTarget
void SetTarget(const HandshakeParty &value)
Definition: InviteAccountToOrganizationRequest.h:80
Aws::Organizations::Model::InviteAccountToOrganizationRequest::SetNotes
void SetNotes(const Aws::String &value)
Definition: InviteAccountToOrganizationRequest.h:141
Aws::Organizations::Model::InviteAccountToOrganizationRequest
Definition: InviteAccountToOrganizationRequest.h:25
Aws::Organizations::Model::InviteAccountToOrganizationRequest::InviteAccountToOrganizationRequest
InviteAccountToOrganizationRequest()
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Organizations::Model::InviteAccountToOrganizationRequest::GetTarget
const HandshakeParty & GetTarget() const
Definition: InviteAccountToOrganizationRequest.h:52
Aws::Organizations::Model::InviteAccountToOrganizationRequest::WithTarget
InviteAccountToOrganizationRequest & WithTarget(HandshakeParty &&value)
Definition: InviteAccountToOrganizationRequest.h:122
Aws::Organizations::Model::InviteAccountToOrganizationRequest::GetNotes
const Aws::String & GetNotes() const
Definition: InviteAccountToOrganizationRequest.h:129
Aws::Organizations::Model::InviteAccountToOrganizationRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: InviteAccountToOrganizationRequest.h:229
Aws::Organizations::Model::InviteAccountToOrganizationRequest::AddTags
InviteAccountToOrganizationRequest & AddTags(const Tag &value)
Definition: InviteAccountToOrganizationRequest.h:305
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Organizations::Model::InviteAccountToOrganizationRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Organizations::Model::InviteAccountToOrganizationRequest::WithNotes
InviteAccountToOrganizationRequest & WithNotes(const Aws::String &value)
Definition: InviteAccountToOrganizationRequest.h:159
Aws::Organizations::Model::InviteAccountToOrganizationRequest::NotesHasBeenSet
bool NotesHasBeenSet() const
Definition: InviteAccountToOrganizationRequest.h:135
AWSVector.h
Aws::Organizations::Model::InviteAccountToOrganizationRequest::TargetHasBeenSet
bool TargetHasBeenSet() const
Definition: InviteAccountToOrganizationRequest.h:66
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::InviteAccountToOrganizationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: InviteAccountToOrganizationRequest.h:33
Aws::Organizations::OrganizationsRequest
Definition: OrganizationsRequest.h:17
Aws::Organizations::Model::InviteAccountToOrganizationRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: InviteAccountToOrganizationRequest.h:210
Aws::Organizations::Model::InviteAccountToOrganizationRequest::SerializePayload
Aws::String SerializePayload() const override
AWSString.h
Aws::Organizations::Model::InviteAccountToOrganizationRequest::WithNotes
InviteAccountToOrganizationRequest & WithNotes(const char *value)
Definition: InviteAccountToOrganizationRequest.h:171
Aws::Organizations::Model::InviteAccountToOrganizationRequest::SetTarget
void SetTarget(HandshakeParty &&value)
Definition: InviteAccountToOrganizationRequest.h:94
Aws::Organizations::Model::InviteAccountToOrganizationRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: InviteAccountToOrganizationRequest.h:191
Aws::Organizations::Model::InviteAccountToOrganizationRequest::WithNotes
InviteAccountToOrganizationRequest & WithNotes(Aws::String &&value)
Definition: InviteAccountToOrganizationRequest.h:165
Tag.h
Aws::Organizations::Model::InviteAccountToOrganizationRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: InviteAccountToOrganizationRequest.h:248
Aws::Organizations::Model::Tag
Definition: Tag.h:36
Aws::Organizations::Model::InviteAccountToOrganizationRequest::WithTarget
InviteAccountToOrganizationRequest & WithTarget(const HandshakeParty &value)
Definition: InviteAccountToOrganizationRequest.h:108
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::InviteAccountToOrganizationRequest::WithTags
InviteAccountToOrganizationRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: InviteAccountToOrganizationRequest.h:286
Aws::Organizations::Model::InviteAccountToOrganizationRequest::SetNotes
void SetNotes(const char *value)
Definition: InviteAccountToOrganizationRequest.h:153
Aws::Organizations::Model::InviteAccountToOrganizationRequest::SetNotes
void SetNotes(Aws::String &&value)
Definition: InviteAccountToOrganizationRequest.h:147
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Organizations_EXPORTS.h
HandshakeParty.h
Aws::Organizations::Model::InviteAccountToOrganizationRequest::WithTags
InviteAccountToOrganizationRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: InviteAccountToOrganizationRequest.h:267
Aws::Organizations::Model::InviteAccountToOrganizationRequest::AddTags
InviteAccountToOrganizationRequest & AddTags(Tag &&value)
Definition: InviteAccountToOrganizationRequest.h:324
OrganizationsRequest.h