AWS SDK for C++  1.9.108
AWS SDK for C++
CreateDomainRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Lightsail
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "CreateDomain"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
46  inline const Aws::String& GetDomainName() const{ return m_domainName; }
47 
55  inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
56 
64  inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
65 
73  inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
74 
82  inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
83 
91  inline CreateDomainRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
92 
100  inline CreateDomainRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
101 
109  inline CreateDomainRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
110 
111 
117  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
118 
124  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
125 
131  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
132 
138  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
139 
145  inline CreateDomainRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
146 
152  inline CreateDomainRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
153 
159  inline CreateDomainRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
160 
166  inline CreateDomainRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
167 
168  private:
169 
170  Aws::String m_domainName;
171  bool m_domainNameHasBeenSet;
172 
173  Aws::Vector<Tag> m_tags;
174  bool m_tagsHasBeenSet;
175  };
176 
177 } // namespace Model
178 } // namespace Lightsail
179 } // namespace Aws
Aws::Lightsail::Model::CreateDomainRequest::WithTags
CreateDomainRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateDomainRequest.h:145
Aws::Lightsail::Model::CreateDomainRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateDomainRequest.h:138
Aws::Lightsail::Model::CreateDomainRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateDomainRequest.h:117
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lightsail::Model::CreateDomainRequest::SetDomainName
void SetDomainName(const Aws::String &value)
Definition: CreateDomainRequest.h:64
Aws::Lightsail::Model::CreateDomainRequest::WithDomainName
CreateDomainRequest & WithDomainName(const Aws::String &value)
Definition: CreateDomainRequest.h:91
Aws::Lightsail::Model::CreateDomainRequest::DomainNameHasBeenSet
bool DomainNameHasBeenSet() const
Definition: CreateDomainRequest.h:55
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Lightsail::Model::CreateDomainRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateDomainRequest.h:32
AWSVector.h
LightsailRequest.h
Aws::Lightsail::Model::CreateDomainRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateDomainRequest.h:124
Aws::Lightsail::Model::CreateDomainRequest::SetDomainName
void SetDomainName(const char *value)
Definition: CreateDomainRequest.h:82
Aws::Lightsail::Model::CreateDomainRequest
Definition: CreateDomainRequest.h:24
Aws::Lightsail::Model::CreateDomainRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Lightsail::Model::CreateDomainRequest::SerializePayload
Aws::String SerializePayload() const override
Tag.h
Aws::Lightsail::Model::CreateDomainRequest::WithTags
CreateDomainRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateDomainRequest.h:152
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
Aws::Lightsail::Model::CreateDomainRequest::WithDomainName
CreateDomainRequest & WithDomainName(Aws::String &&value)
Definition: CreateDomainRequest.h:100
Aws::Lightsail::Model::CreateDomainRequest::CreateDomainRequest
CreateDomainRequest()
Aws::Lightsail::Model::Tag
Definition: Tag.h:35
AWSString.h
Aws::Lightsail::Model::CreateDomainRequest::SetDomainName
void SetDomainName(Aws::String &&value)
Definition: CreateDomainRequest.h:73
Aws::Lightsail::Model::CreateDomainRequest::AddTags
CreateDomainRequest & AddTags(Tag &&value)
Definition: CreateDomainRequest.h:166
Aws::Lightsail::Model::CreateDomainRequest::GetDomainName
const Aws::String & GetDomainName() const
Definition: CreateDomainRequest.h:46
Lightsail_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::CreateDomainRequest::AddTags
CreateDomainRequest & AddTags(const Tag &value)
Definition: CreateDomainRequest.h:159
Aws::Lightsail::Model::CreateDomainRequest::WithDomainName
CreateDomainRequest & WithDomainName(const char *value)
Definition: CreateDomainRequest.h:109
Aws::Lightsail::Model::CreateDomainRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateDomainRequest.h:131