AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CreateDedicatedIpPoolRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sesv2/SESV2Request.h>
10#include <aws/sesv2/SESV2_EXPORTS.h>
11#include <aws/sesv2/model/ScalingMode.h>
12#include <aws/sesv2/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SESV2 {
18namespace Model {
19
26 public:
27 AWS_SESV2_API CreateDedicatedIpPoolRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateDedicatedIpPool"; }
34
35 AWS_SESV2_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetPoolName() const { return m_poolName; }
42 inline bool PoolNameHasBeenSet() const { return m_poolNameHasBeenSet; }
43 template <typename PoolNameT = Aws::String>
44 void SetPoolName(PoolNameT&& value) {
45 m_poolNameHasBeenSet = true;
46 m_poolName = std::forward<PoolNameT>(value);
47 }
48 template <typename PoolNameT = Aws::String>
50 SetPoolName(std::forward<PoolNameT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
61 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
62 template <typename TagsT = Aws::Vector<Tag>>
63 void SetTags(TagsT&& value) {
64 m_tagsHasBeenSet = true;
65 m_tags = std::forward<TagsT>(value);
66 }
67 template <typename TagsT = Aws::Vector<Tag>>
69 SetTags(std::forward<TagsT>(value));
70 return *this;
71 }
72 template <typename TagsT = Tag>
74 m_tagsHasBeenSet = true;
75 m_tags.emplace_back(std::forward<TagsT>(value));
76 return *this;
77 }
79
81
84 inline ScalingMode GetScalingMode() const { return m_scalingMode; }
85 inline bool ScalingModeHasBeenSet() const { return m_scalingModeHasBeenSet; }
86 inline void SetScalingMode(ScalingMode value) {
87 m_scalingModeHasBeenSet = true;
88 m_scalingMode = value;
89 }
91 SetScalingMode(value);
92 return *this;
93 }
95 private:
96 Aws::String m_poolName;
97
98 Aws::Vector<Tag> m_tags;
99
100 ScalingMode m_scalingMode{ScalingMode::NOT_SET};
101 bool m_poolNameHasBeenSet = false;
102 bool m_tagsHasBeenSet = false;
103 bool m_scalingModeHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace SESV2
108} // namespace Aws
CreateDedicatedIpPoolRequest & AddTags(TagsT &&value)
CreateDedicatedIpPoolRequest & WithTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
AWS_SESV2_API CreateDedicatedIpPoolRequest()=default
AWS_SESV2_API Aws::String SerializePayload() const override
CreateDedicatedIpPoolRequest & WithPoolName(PoolNameT &&value)
CreateDedicatedIpPoolRequest & WithScalingMode(ScalingMode value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector