AWS SDK for C++  1.9.16
AWS SDK for C++
CreateDomainEntryRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Lightsail
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "CreateDomainEntry"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
42  inline const Aws::String& GetDomainName() const{ return m_domainName; }
43 
48  inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
49 
54  inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
55 
60  inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
61 
66  inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
67 
72  inline CreateDomainEntryRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
73 
78  inline CreateDomainEntryRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
79 
84  inline CreateDomainEntryRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
85 
86 
91  inline const DomainEntry& GetDomainEntry() const{ return m_domainEntry; }
92 
97  inline bool DomainEntryHasBeenSet() const { return m_domainEntryHasBeenSet; }
98 
103  inline void SetDomainEntry(const DomainEntry& value) { m_domainEntryHasBeenSet = true; m_domainEntry = value; }
104 
109  inline void SetDomainEntry(DomainEntry&& value) { m_domainEntryHasBeenSet = true; m_domainEntry = std::move(value); }
110 
115  inline CreateDomainEntryRequest& WithDomainEntry(const DomainEntry& value) { SetDomainEntry(value); return *this;}
116 
121  inline CreateDomainEntryRequest& WithDomainEntry(DomainEntry&& value) { SetDomainEntry(std::move(value)); return *this;}
122 
123  private:
124 
125  Aws::String m_domainName;
126  bool m_domainNameHasBeenSet;
127 
128  DomainEntry m_domainEntry;
129  bool m_domainEntryHasBeenSet;
130  };
131 
132 } // namespace Model
133 } // namespace Lightsail
134 } // namespace Aws
Aws::Lightsail::Model::CreateDomainEntryRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateDomainEntryRequest.h:31
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lightsail::Model::CreateDomainEntryRequest::WithDomainEntry
CreateDomainEntryRequest & WithDomainEntry(const DomainEntry &value)
Definition: CreateDomainEntryRequest.h:115
Aws::Lightsail::Model::CreateDomainEntryRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lightsail::Model::CreateDomainEntryRequest::DomainNameHasBeenSet
bool DomainNameHasBeenSet() const
Definition: CreateDomainEntryRequest.h:48
Aws::Lightsail::Model::CreateDomainEntryRequest::DomainEntryHasBeenSet
bool DomainEntryHasBeenSet() const
Definition: CreateDomainEntryRequest.h:97
Aws::Lightsail::Model::CreateDomainEntryRequest::GetDomainEntry
const DomainEntry & GetDomainEntry() const
Definition: CreateDomainEntryRequest.h:91
LightsailRequest.h
Aws::Lightsail::Model::CreateDomainEntryRequest::SetDomainEntry
void SetDomainEntry(DomainEntry &&value)
Definition: CreateDomainEntryRequest.h:109
Aws::Lightsail::Model::CreateDomainEntryRequest::WithDomainName
CreateDomainEntryRequest & WithDomainName(Aws::String &&value)
Definition: CreateDomainEntryRequest.h:78
Aws::Lightsail::Model::CreateDomainEntryRequest::SetDomainName
void SetDomainName(Aws::String &&value)
Definition: CreateDomainEntryRequest.h:60
Aws::Lightsail::Model::CreateDomainEntryRequest::WithDomainEntry
CreateDomainEntryRequest & WithDomainEntry(DomainEntry &&value)
Definition: CreateDomainEntryRequest.h:121
Aws::Lightsail::Model::CreateDomainEntryRequest::SetDomainName
void SetDomainName(const Aws::String &value)
Definition: CreateDomainEntryRequest.h:54
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
AWSString.h
Aws::Lightsail::Model::CreateDomainEntryRequest::CreateDomainEntryRequest
CreateDomainEntryRequest()
Lightsail_EXPORTS.h
Aws::Lightsail::Model::CreateDomainEntryRequest::WithDomainName
CreateDomainEntryRequest & WithDomainName(const Aws::String &value)
Definition: CreateDomainEntryRequest.h:72
Aws::Lightsail::Model::CreateDomainEntryRequest
Definition: CreateDomainEntryRequest.h:23
Aws::Lightsail::Model::CreateDomainEntryRequest::SetDomainName
void SetDomainName(const char *value)
Definition: CreateDomainEntryRequest.h:66
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DomainEntry.h
Aws::Lightsail::Model::CreateDomainEntryRequest::SetDomainEntry
void SetDomainEntry(const DomainEntry &value)
Definition: CreateDomainEntryRequest.h:103
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::DomainEntry
Definition: DomainEntry.h:32
Aws::Lightsail::Model::CreateDomainEntryRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Lightsail::Model::CreateDomainEntryRequest::WithDomainName
CreateDomainEntryRequest & WithDomainName(const char *value)
Definition: CreateDomainEntryRequest.h:84
Aws::Lightsail::Model::CreateDomainEntryRequest::GetDomainName
const Aws::String & GetDomainName() const
Definition: CreateDomainEntryRequest.h:42