AWS SDK for C++  1.9.156
AWS SDK for C++
CreateDedicatedIpPoolRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <aws/sesv2/model/Tag.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace SESV2
17 {
18 namespace Model
19 {
20 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "CreateDedicatedIpPool"; }
36 
37  Aws::String SerializePayload() const override;
38 
39 
43  inline const Aws::String& GetPoolName() const{ return m_poolName; }
44 
48  inline bool PoolNameHasBeenSet() const { return m_poolNameHasBeenSet; }
49 
53  inline void SetPoolName(const Aws::String& value) { m_poolNameHasBeenSet = true; m_poolName = value; }
54 
58  inline void SetPoolName(Aws::String&& value) { m_poolNameHasBeenSet = true; m_poolName = std::move(value); }
59 
63  inline void SetPoolName(const char* value) { m_poolNameHasBeenSet = true; m_poolName.assign(value); }
64 
68  inline CreateDedicatedIpPoolRequest& WithPoolName(const Aws::String& value) { SetPoolName(value); return *this;}
69 
73  inline CreateDedicatedIpPoolRequest& WithPoolName(Aws::String&& value) { SetPoolName(std::move(value)); return *this;}
74 
78  inline CreateDedicatedIpPoolRequest& WithPoolName(const char* value) { SetPoolName(value); return *this;}
79 
80 
85  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
86 
91  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
92 
97  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
98 
103  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
104 
109  inline CreateDedicatedIpPoolRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
110 
115  inline CreateDedicatedIpPoolRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
116 
121  inline CreateDedicatedIpPoolRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
122 
127  inline CreateDedicatedIpPoolRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
128 
129  private:
130 
131  Aws::String m_poolName;
132  bool m_poolNameHasBeenSet;
133 
134  Aws::Vector<Tag> m_tags;
135  bool m_tagsHasBeenSet;
136  };
137 
138 } // namespace Model
139 } // namespace SESV2
140 } // namespace Aws
Aws::SESV2::Model::CreateDedicatedIpPoolRequest::GetPoolName
const Aws::String & GetPoolName() const
Definition: CreateDedicatedIpPoolRequest.h:43
AWS_SESV2_API
#define AWS_SESV2_API
Definition: SESV2_EXPORTS.h:28
Aws::SESV2::Model::CreateDedicatedIpPoolRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateDedicatedIpPoolRequest.h:85
Aws::SESV2::Model::CreateDedicatedIpPoolRequest::SetPoolName
void SetPoolName(const char *value)
Definition: CreateDedicatedIpPoolRequest.h:63
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Tag.h
AWSVector.h
Aws::SESV2::Model::CreateDedicatedIpPoolRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateDedicatedIpPoolRequest.h:91
Aws::SESV2::Model::CreateDedicatedIpPoolRequest::WithPoolName
CreateDedicatedIpPoolRequest & WithPoolName(const Aws::String &value)
Definition: CreateDedicatedIpPoolRequest.h:68
Aws::SESV2::Model::CreateDedicatedIpPoolRequest::PoolNameHasBeenSet
bool PoolNameHasBeenSet() const
Definition: CreateDedicatedIpPoolRequest.h:48
Aws::SESV2::Model::CreateDedicatedIpPoolRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateDedicatedIpPoolRequest.h:103
Aws::SESV2::SESV2Request
Definition: SESV2Request.h:17
AWSString.h
SESV2_EXPORTS.h
Aws::SESV2::Model::CreateDedicatedIpPoolRequest::WithTags
CreateDedicatedIpPoolRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateDedicatedIpPoolRequest.h:109
Aws::SESV2::Model::CreateDedicatedIpPoolRequest::AddTags
CreateDedicatedIpPoolRequest & AddTags(Tag &&value)
Definition: CreateDedicatedIpPoolRequest.h:127
Aws::SESV2::Model::CreateDedicatedIpPoolRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateDedicatedIpPoolRequest.h:35
Aws
Definition: AccessManagementClient.h:15
Aws::SESV2::Model::CreateDedicatedIpPoolRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateDedicatedIpPoolRequest.h:97
Aws::SESV2::Model::CreateDedicatedIpPoolRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SESV2::Model::CreateDedicatedIpPoolRequest::WithPoolName
CreateDedicatedIpPoolRequest & WithPoolName(Aws::String &&value)
Definition: CreateDedicatedIpPoolRequest.h:73
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SESV2::Model::CreateDedicatedIpPoolRequest::SetPoolName
void SetPoolName(Aws::String &&value)
Definition: CreateDedicatedIpPoolRequest.h:58
Aws::SESV2::Model::Tag
Definition: Tag.h:53
Aws::SESV2::Model::CreateDedicatedIpPoolRequest::AddTags
CreateDedicatedIpPoolRequest & AddTags(const Tag &value)
Definition: CreateDedicatedIpPoolRequest.h:121
SESV2Request.h
Aws::SESV2::Model::CreateDedicatedIpPoolRequest::WithTags
CreateDedicatedIpPoolRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateDedicatedIpPoolRequest.h:115
Aws::SESV2::Model::CreateDedicatedIpPoolRequest::CreateDedicatedIpPoolRequest
CreateDedicatedIpPoolRequest()
Aws::SESV2::Model::CreateDedicatedIpPoolRequest::WithPoolName
CreateDedicatedIpPoolRequest & WithPoolName(const char *value)
Definition: CreateDedicatedIpPoolRequest.h:78
Aws::SESV2::Model::CreateDedicatedIpPoolRequest::SetPoolName
void SetPoolName(const Aws::String &value)
Definition: CreateDedicatedIpPoolRequest.h:53
Aws::SESV2::Model::CreateDedicatedIpPoolRequest
Definition: CreateDedicatedIpPoolRequest.h:27