AWS SDK for C++  1.9.46
AWS SDK for C++
CreateAddressBookRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 #include <aws/core/utils/UUID.h>
14 
15 namespace Aws
16 {
17 namespace AlexaForBusiness
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 "CreateAddressBook"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
43  inline const Aws::String& GetName() const{ return m_name; }
44 
48  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 
53  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
54 
58  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
59 
63  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
64 
68  inline CreateAddressBookRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
69 
73  inline CreateAddressBookRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
74 
78  inline CreateAddressBookRequest& WithName(const char* value) { SetName(value); return *this;}
79 
80 
84  inline const Aws::String& GetDescription() const{ return m_description; }
85 
89  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
90 
94  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
95 
99  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
100 
104  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
105 
109  inline CreateAddressBookRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
110 
114  inline CreateAddressBookRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
115 
119  inline CreateAddressBookRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
120 
121 
126  inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
127 
132  inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
133 
138  inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
139 
144  inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
145 
150  inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
151 
156  inline CreateAddressBookRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
157 
162  inline CreateAddressBookRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
163 
168  inline CreateAddressBookRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
169 
170 
175  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
176 
181  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
182 
187  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
188 
193  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
194 
199  inline CreateAddressBookRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
200 
205  inline CreateAddressBookRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
206 
211  inline CreateAddressBookRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
212 
217  inline CreateAddressBookRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
218 
219  private:
220 
221  Aws::String m_name;
222  bool m_nameHasBeenSet;
223 
224  Aws::String m_description;
225  bool m_descriptionHasBeenSet;
226 
227  Aws::String m_clientRequestToken;
228  bool m_clientRequestTokenHasBeenSet;
229 
230  Aws::Vector<Tag> m_tags;
231  bool m_tagsHasBeenSet;
232  };
233 
234 } // namespace Model
235 } // namespace AlexaForBusiness
236 } // namespace Aws
Aws::AlexaForBusiness::Model::CreateAddressBookRequest::SetClientRequestToken
void SetClientRequestToken(const Aws::String &value)
Definition: CreateAddressBookRequest.h:138
Aws::AlexaForBusiness::Model::CreateAddressBookRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AlexaForBusiness::Model::CreateAddressBookRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateAddressBookRequest.h:33
Aws::AlexaForBusiness::Model::CreateAddressBookRequest::WithClientRequestToken
CreateAddressBookRequest & WithClientRequestToken(const Aws::String &value)
Definition: CreateAddressBookRequest.h:156
Aws::AlexaForBusiness::Model::CreateAddressBookRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateAddressBookRequest.h:99
Aws::AlexaForBusiness::Model::CreateAddressBookRequest::WithTags
CreateAddressBookRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateAddressBookRequest.h:199
Aws::AlexaForBusiness::Model::CreateAddressBookRequest::WithDescription
CreateAddressBookRequest & WithDescription(Aws::String &&value)
Definition: CreateAddressBookRequest.h:114
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::AlexaForBusiness::Model::CreateAddressBookRequest::GetClientRequestToken
const Aws::String & GetClientRequestToken() const
Definition: CreateAddressBookRequest.h:126
Aws::AlexaForBusiness::Model::CreateAddressBookRequest::WithDescription
CreateAddressBookRequest & WithDescription(const char *value)
Definition: CreateAddressBookRequest.h:119
Aws::AlexaForBusiness::Model::CreateAddressBookRequest::SetName
void SetName(const char *value)
Definition: CreateAddressBookRequest.h:63
Aws::AlexaForBusiness::Model::CreateAddressBookRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateAddressBookRequest.h:48
Aws::AlexaForBusiness::Model::CreateAddressBookRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateAddressBookRequest.h:104
Aws::AlexaForBusiness::Model::CreateAddressBookRequest::WithName
CreateAddressBookRequest & WithName(const char *value)
Definition: CreateAddressBookRequest.h:78
Tag.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AlexaForBusiness::Model::CreateAddressBookRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateAddressBookRequest.h:175
AWSVector.h
Aws::AlexaForBusiness::Model::CreateAddressBookRequest::GetName
const Aws::String & GetName() const
Definition: CreateAddressBookRequest.h:43
Aws::AlexaForBusiness::Model::CreateAddressBookRequest::WithName
CreateAddressBookRequest & WithName(Aws::String &&value)
Definition: CreateAddressBookRequest.h:73
Aws::AlexaForBusiness::Model::CreateAddressBookRequest::WithClientRequestToken
CreateAddressBookRequest & WithClientRequestToken(Aws::String &&value)
Definition: CreateAddressBookRequest.h:162
AWS_ALEXAFORBUSINESS_API
#define AWS_ALEXAFORBUSINESS_API
Definition: AlexaForBusiness_EXPORTS.h:28
Aws::AlexaForBusiness::Model::CreateAddressBookRequest::AddTags
CreateAddressBookRequest & AddTags(const Tag &value)
Definition: CreateAddressBookRequest.h:211
Aws::AlexaForBusiness::Model::CreateAddressBookRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateAddressBookRequest.h:187
Aws::AlexaForBusiness::Model::CreateAddressBookRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateAddressBookRequest.h:58
Aws::AlexaForBusiness::Model::CreateAddressBookRequest::AddTags
CreateAddressBookRequest & AddTags(Tag &&value)
Definition: CreateAddressBookRequest.h:217
Aws::AlexaForBusiness::Model::Tag
Definition: Tag.h:33
Aws::AlexaForBusiness::Model::CreateAddressBookRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateAddressBookRequest.h:53
AWSString.h
Aws::AlexaForBusiness::Model::CreateAddressBookRequest::CreateAddressBookRequest
CreateAddressBookRequest()
Aws::AlexaForBusiness::Model::CreateAddressBookRequest::WithName
CreateAddressBookRequest & WithName(const Aws::String &value)
Definition: CreateAddressBookRequest.h:68
Aws::AlexaForBusiness::Model::CreateAddressBookRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateAddressBookRequest.h:84
Aws::AlexaForBusiness::Model::CreateAddressBookRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AlexaForBusiness_EXPORTS.h
Aws::AlexaForBusiness::Model::CreateAddressBookRequest::ClientRequestTokenHasBeenSet
bool ClientRequestTokenHasBeenSet() const
Definition: CreateAddressBookRequest.h:132
Aws::AlexaForBusiness::Model::CreateAddressBookRequest::WithTags
CreateAddressBookRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateAddressBookRequest.h:205
Aws::AlexaForBusiness::Model::CreateAddressBookRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateAddressBookRequest.h:181
Aws
Definition: AccessManagementClient.h:15
Aws::AlexaForBusiness::Model::CreateAddressBookRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateAddressBookRequest.h:193
Aws::AlexaForBusiness::AlexaForBusinessRequest
Definition: AlexaForBusinessRequest.h:17
Aws::AlexaForBusiness::Model::CreateAddressBookRequest::WithClientRequestToken
CreateAddressBookRequest & WithClientRequestToken(const char *value)
Definition: CreateAddressBookRequest.h:168
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AlexaForBusiness::Model::CreateAddressBookRequest::SetClientRequestToken
void SetClientRequestToken(const char *value)
Definition: CreateAddressBookRequest.h:150
Aws::AlexaForBusiness::Model::CreateAddressBookRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateAddressBookRequest.h:94
Aws::AlexaForBusiness::Model::CreateAddressBookRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateAddressBookRequest.h:89
UUID.h
Aws::AlexaForBusiness::Model::CreateAddressBookRequest
Definition: CreateAddressBookRequest.h:25
AlexaForBusinessRequest.h
Aws::AlexaForBusiness::Model::CreateAddressBookRequest::WithDescription
CreateAddressBookRequest & WithDescription(const Aws::String &value)
Definition: CreateAddressBookRequest.h:109
Aws::AlexaForBusiness::Model::CreateAddressBookRequest::SetClientRequestToken
void SetClientRequestToken(Aws::String &&value)
Definition: CreateAddressBookRequest.h:144