AWS SDK for C++  1.8.71
AWS SDK for C++
CreateDedicatedIpPoolRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace PinpointEmail
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 PinpointEmail
140 } // namespace Aws
CreateDedicatedIpPoolRequest & AddTags(const Tag &value)
#define AWS_PINPOINTEMAIL_API
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
CreateDedicatedIpPoolRequest & WithPoolName(const char *value)
CreateDedicatedIpPoolRequest & WithPoolName(const Aws::String &value)
CreateDedicatedIpPoolRequest & WithPoolName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateDedicatedIpPoolRequest & WithTags(const Aws::Vector< Tag > &value)
CreateDedicatedIpPoolRequest & WithTags(Aws::Vector< Tag > &&value)