AWS SDK for C++  1.9.104
AWS SDK for C++
CreateAddressRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Snowball
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "CreateAddress"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Address& GetAddress() const{ return m_address; }
41 
45  inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
46 
50  inline void SetAddress(const Address& value) { m_addressHasBeenSet = true; m_address = value; }
51 
55  inline void SetAddress(Address&& value) { m_addressHasBeenSet = true; m_address = std::move(value); }
56 
60  inline CreateAddressRequest& WithAddress(const Address& value) { SetAddress(value); return *this;}
61 
65  inline CreateAddressRequest& WithAddress(Address&& value) { SetAddress(std::move(value)); return *this;}
66 
67  private:
68 
69  Address m_address;
70  bool m_addressHasBeenSet;
71  };
72 
73 } // namespace Model
74 } // namespace Snowball
75 } // namespace Aws
Aws::Snowball::Model::CreateAddressRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Snowball::Model::CreateAddressRequest
Definition: CreateAddressRequest.h:22
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Snowball::Model::CreateAddressRequest::GetAddress
const Address & GetAddress() const
Definition: CreateAddressRequest.h:40
AWS_SNOWBALL_API
#define AWS_SNOWBALL_API
Definition: Snowball_EXPORTS.h:28
Aws::Snowball::Model::CreateAddressRequest::SetAddress
void SetAddress(Address &&value)
Definition: CreateAddressRequest.h:55
Aws::Snowball::Model::CreateAddressRequest::WithAddress
CreateAddressRequest & WithAddress(const Address &value)
Definition: CreateAddressRequest.h:60
SnowballRequest.h
Aws::Snowball::Model::CreateAddressRequest::CreateAddressRequest
CreateAddressRequest()
Aws::Snowball::Model::CreateAddressRequest::AddressHasBeenSet
bool AddressHasBeenSet() const
Definition: CreateAddressRequest.h:45
Aws::Snowball::Model::CreateAddressRequest::WithAddress
CreateAddressRequest & WithAddress(Address &&value)
Definition: CreateAddressRequest.h:65
Aws::Snowball::SnowballRequest
Definition: SnowballRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::Snowball::Model::CreateAddressRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateAddressRequest.h:30
Aws::Snowball::Model::CreateAddressRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Snowball::Model::Address
Definition: Address.h:36
Aws::Snowball::Model::CreateAddressRequest::SetAddress
void SetAddress(const Address &value)
Definition: CreateAddressRequest.h:50
Snowball_EXPORTS.h
Address.h