AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
DedicatedIp.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sesv2/SESV2_EXPORTS.h>
9#include <aws/sesv2/model/WarmupStatus.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SESV2 {
21namespace Model {
22
34 public:
35 AWS_SESV2_API DedicatedIp() = default;
36 AWS_SESV2_API DedicatedIp(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetIp() const { return m_ip; }
45 inline bool IpHasBeenSet() const { return m_ipHasBeenSet; }
46 template <typename IpT = Aws::String>
47 void SetIp(IpT&& value) {
48 m_ipHasBeenSet = true;
49 m_ip = std::forward<IpT>(value);
50 }
51 template <typename IpT = Aws::String>
52 DedicatedIp& WithIp(IpT&& value) {
53 SetIp(std::forward<IpT>(value));
54 return *this;
55 }
57
59
69 inline WarmupStatus GetWarmupStatus() const { return m_warmupStatus; }
70 inline bool WarmupStatusHasBeenSet() const { return m_warmupStatusHasBeenSet; }
71 inline void SetWarmupStatus(WarmupStatus value) {
72 m_warmupStatusHasBeenSet = true;
73 m_warmupStatus = value;
74 }
76 SetWarmupStatus(value);
77 return *this;
78 }
80
82
90 inline int GetWarmupPercentage() const { return m_warmupPercentage; }
91 inline bool WarmupPercentageHasBeenSet() const { return m_warmupPercentageHasBeenSet; }
92 inline void SetWarmupPercentage(int value) {
93 m_warmupPercentageHasBeenSet = true;
94 m_warmupPercentage = value;
95 }
96 inline DedicatedIp& WithWarmupPercentage(int value) {
98 return *this;
99 }
101
103
106 inline const Aws::String& GetPoolName() const { return m_poolName; }
107 inline bool PoolNameHasBeenSet() const { return m_poolNameHasBeenSet; }
108 template <typename PoolNameT = Aws::String>
109 void SetPoolName(PoolNameT&& value) {
110 m_poolNameHasBeenSet = true;
111 m_poolName = std::forward<PoolNameT>(value);
112 }
113 template <typename PoolNameT = Aws::String>
114 DedicatedIp& WithPoolName(PoolNameT&& value) {
115 SetPoolName(std::forward<PoolNameT>(value));
116 return *this;
117 }
119 private:
120 Aws::String m_ip;
121
122 WarmupStatus m_warmupStatus{WarmupStatus::NOT_SET};
123
124 int m_warmupPercentage{0};
125
126 Aws::String m_poolName;
127 bool m_ipHasBeenSet = false;
128 bool m_warmupStatusHasBeenSet = false;
129 bool m_warmupPercentageHasBeenSet = false;
130 bool m_poolNameHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace SESV2
135} // namespace Aws
DedicatedIp & WithWarmupStatus(WarmupStatus value)
Definition DedicatedIp.h:75
AWS_SESV2_API DedicatedIp(Aws::Utils::Json::JsonView jsonValue)
AWS_SESV2_API DedicatedIp & operator=(Aws::Utils::Json::JsonView jsonValue)
DedicatedIp & WithPoolName(PoolNameT &&value)
const Aws::String & GetPoolName() const
AWS_SESV2_API DedicatedIp()=default
DedicatedIp & WithWarmupPercentage(int value)
Definition DedicatedIp.h:96
DedicatedIp & WithIp(IpT &&value)
Definition DedicatedIp.h:52
void SetWarmupStatus(WarmupStatus value)
Definition DedicatedIp.h:71
WarmupStatus GetWarmupStatus() const
Definition DedicatedIp.h:69
bool WarmupPercentageHasBeenSet() const
Definition DedicatedIp.h:91
void SetPoolName(PoolNameT &&value)
AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetWarmupPercentage(int value)
Definition DedicatedIp.h:92
const Aws::String & GetIp() const
Definition DedicatedIp.h:44
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue