AWS SDK for C++  1.9.20
AWS SDK for C++
SetIpAddressTypeRequest.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 "SetIpAddressType"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
46  inline const ResourceType& GetResourceType() const{ return m_resourceType; }
47 
55  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
56 
64  inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
65 
73  inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
74 
82  inline SetIpAddressTypeRequest& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
83 
91  inline SetIpAddressTypeRequest& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
92 
93 
97  inline const Aws::String& GetResourceName() const{ return m_resourceName; }
98 
102  inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
103 
107  inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
108 
112  inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
113 
117  inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
118 
122  inline SetIpAddressTypeRequest& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
123 
127  inline SetIpAddressTypeRequest& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
128 
132  inline SetIpAddressTypeRequest& WithResourceName(const char* value) { SetResourceName(value); return *this;}
133 
134 
140  inline const IpAddressType& GetIpAddressType() const{ return m_ipAddressType; }
141 
147  inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
148 
154  inline void SetIpAddressType(const IpAddressType& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; }
155 
161  inline void SetIpAddressType(IpAddressType&& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = std::move(value); }
162 
168  inline SetIpAddressTypeRequest& WithIpAddressType(const IpAddressType& value) { SetIpAddressType(value); return *this;}
169 
175  inline SetIpAddressTypeRequest& WithIpAddressType(IpAddressType&& value) { SetIpAddressType(std::move(value)); return *this;}
176 
177  private:
178 
179  ResourceType m_resourceType;
180  bool m_resourceTypeHasBeenSet;
181 
182  Aws::String m_resourceName;
183  bool m_resourceNameHasBeenSet;
184 
185  IpAddressType m_ipAddressType;
186  bool m_ipAddressTypeHasBeenSet;
187  };
188 
189 } // namespace Model
190 } // namespace Lightsail
191 } // namespace Aws
Aws::Lightsail::Model::IpAddressType
IpAddressType
Definition: IpAddressType.h:17
ResourceType.h
Aws::Lightsail::Model::SetIpAddressTypeRequest::WithResourceName
SetIpAddressTypeRequest & WithResourceName(const Aws::String &value)
Definition: SetIpAddressTypeRequest.h:122
Aws::Lightsail::Model::SetIpAddressTypeRequest::WithIpAddressType
SetIpAddressTypeRequest & WithIpAddressType(IpAddressType &&value)
Definition: SetIpAddressTypeRequest.h:175
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lightsail::Model::SetIpAddressTypeRequest::GetIpAddressType
const IpAddressType & GetIpAddressType() const
Definition: SetIpAddressTypeRequest.h:140
Aws::Lightsail::Model::SetIpAddressTypeRequest
Definition: SetIpAddressTypeRequest.h:24
Aws::Lightsail::Model::SetIpAddressTypeRequest::SetResourceType
void SetResourceType(ResourceType &&value)
Definition: SetIpAddressTypeRequest.h:73
Aws::Lightsail::Model::SetIpAddressTypeRequest::SetIpAddressType
void SetIpAddressType(const IpAddressType &value)
Definition: SetIpAddressTypeRequest.h:154
Aws::Lightsail::Model::SetIpAddressTypeRequest::SetIpAddressTypeRequest
SetIpAddressTypeRequest()
Aws::Lightsail::Model::SetIpAddressTypeRequest::GetResourceType
const ResourceType & GetResourceType() const
Definition: SetIpAddressTypeRequest.h:46
Aws::Lightsail::Model::SetIpAddressTypeRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Lightsail::Model::SetIpAddressTypeRequest::ResourceNameHasBeenSet
bool ResourceNameHasBeenSet() const
Definition: SetIpAddressTypeRequest.h:102
LightsailRequest.h
Aws::Lightsail::Model::SetIpAddressTypeRequest::SetResourceType
void SetResourceType(const ResourceType &value)
Definition: SetIpAddressTypeRequest.h:64
Aws::Lightsail::Model::SetIpAddressTypeRequest::SetIpAddressType
void SetIpAddressType(IpAddressType &&value)
Definition: SetIpAddressTypeRequest.h:161
Aws::Lightsail::Model::SetIpAddressTypeRequest::SetResourceName
void SetResourceName(Aws::String &&value)
Definition: SetIpAddressTypeRequest.h:112
Aws::Lightsail::Model::SetIpAddressTypeRequest::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: SetIpAddressTypeRequest.h:55
Aws::Lightsail::Model::SetIpAddressTypeRequest::SetResourceName
void SetResourceName(const char *value)
Definition: SetIpAddressTypeRequest.h:117
Aws::Lightsail::Model::SetIpAddressTypeRequest::WithIpAddressType
SetIpAddressTypeRequest & WithIpAddressType(const IpAddressType &value)
Definition: SetIpAddressTypeRequest.h:168
Aws::Lightsail::Model::SetIpAddressTypeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SetIpAddressTypeRequest.h:32
Aws::Lightsail::Model::SetIpAddressTypeRequest::GetResourceName
const Aws::String & GetResourceName() const
Definition: SetIpAddressTypeRequest.h:97
Aws::Lightsail::Model::SetIpAddressTypeRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
AWSString.h
Lightsail_EXPORTS.h
Aws::Lightsail::Model::SetIpAddressTypeRequest::WithResourceType
SetIpAddressTypeRequest & WithResourceType(ResourceType &&value)
Definition: SetIpAddressTypeRequest.h:91
Aws::Lightsail::Model::ResourceType
ResourceType
Definition: ResourceType.h:17
Aws::Lightsail::Model::SetIpAddressTypeRequest::WithResourceName
SetIpAddressTypeRequest & WithResourceName(const char *value)
Definition: SetIpAddressTypeRequest.h:132
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::Model::SetIpAddressTypeRequest::IpAddressTypeHasBeenSet
bool IpAddressTypeHasBeenSet() const
Definition: SetIpAddressTypeRequest.h:147
IpAddressType.h
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::SetIpAddressTypeRequest::WithResourceName
SetIpAddressTypeRequest & WithResourceName(Aws::String &&value)
Definition: SetIpAddressTypeRequest.h:127
Aws::Lightsail::Model::SetIpAddressTypeRequest::SetResourceName
void SetResourceName(const Aws::String &value)
Definition: SetIpAddressTypeRequest.h:107
Aws::Lightsail::Model::SetIpAddressTypeRequest::WithResourceType
SetIpAddressTypeRequest & WithResourceType(const ResourceType &value)
Definition: SetIpAddressTypeRequest.h:82