AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
DedicatedIp.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/pinpoint-email/PinpointEmail_EXPORTS.h>
9#include <aws/pinpoint-email/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 PinpointEmail {
21namespace Model {
22
30 public:
31 AWS_PINPOINTEMAIL_API DedicatedIp() = default;
32 AWS_PINPOINTEMAIL_API DedicatedIp(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PINPOINTEMAIL_API DedicatedIp& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PINPOINTEMAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetIp() const { return m_ip; }
41 inline bool IpHasBeenSet() const { return m_ipHasBeenSet; }
42 template <typename IpT = Aws::String>
43 void SetIp(IpT&& value) {
44 m_ipHasBeenSet = true;
45 m_ip = std::forward<IpT>(value);
46 }
47 template <typename IpT = Aws::String>
48 DedicatedIp& WithIp(IpT&& value) {
49 SetIp(std::forward<IpT>(value));
50 return *this;
51 }
53
55
62 inline WarmupStatus GetWarmupStatus() const { return m_warmupStatus; }
63 inline bool WarmupStatusHasBeenSet() const { return m_warmupStatusHasBeenSet; }
64 inline void SetWarmupStatus(WarmupStatus value) {
65 m_warmupStatusHasBeenSet = true;
66 m_warmupStatus = value;
67 }
69 SetWarmupStatus(value);
70 return *this;
71 }
73
75
80 inline int GetWarmupPercentage() const { return m_warmupPercentage; }
81 inline bool WarmupPercentageHasBeenSet() const { return m_warmupPercentageHasBeenSet; }
82 inline void SetWarmupPercentage(int value) {
83 m_warmupPercentageHasBeenSet = true;
84 m_warmupPercentage = value;
85 }
86 inline DedicatedIp& WithWarmupPercentage(int value) {
88 return *this;
89 }
91
93
96 inline const Aws::String& GetPoolName() const { return m_poolName; }
97 inline bool PoolNameHasBeenSet() const { return m_poolNameHasBeenSet; }
98 template <typename PoolNameT = Aws::String>
99 void SetPoolName(PoolNameT&& value) {
100 m_poolNameHasBeenSet = true;
101 m_poolName = std::forward<PoolNameT>(value);
102 }
103 template <typename PoolNameT = Aws::String>
104 DedicatedIp& WithPoolName(PoolNameT&& value) {
105 SetPoolName(std::forward<PoolNameT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_ip;
111 bool m_ipHasBeenSet = false;
112
113 WarmupStatus m_warmupStatus{WarmupStatus::NOT_SET};
114 bool m_warmupStatusHasBeenSet = false;
115
116 int m_warmupPercentage{0};
117 bool m_warmupPercentageHasBeenSet = false;
118
119 Aws::String m_poolName;
120 bool m_poolNameHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace PinpointEmail
125} // namespace Aws
AWS_PINPOINTEMAIL_API DedicatedIp()=default
const Aws::String & GetIp() const
Definition DedicatedIp.h:40
DedicatedIp & WithPoolName(PoolNameT &&value)
void SetPoolName(PoolNameT &&value)
Definition DedicatedIp.h:99
AWS_PINPOINTEMAIL_API DedicatedIp(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINTEMAIL_API DedicatedIp & operator=(Aws::Utils::Json::JsonView jsonValue)
DedicatedIp & WithWarmupPercentage(int value)
Definition DedicatedIp.h:86
DedicatedIp & WithIp(IpT &&value)
Definition DedicatedIp.h:48
void SetWarmupStatus(WarmupStatus value)
Definition DedicatedIp.h:64
DedicatedIp & WithWarmupStatus(WarmupStatus value)
Definition DedicatedIp.h:68
const Aws::String & GetPoolName() const
Definition DedicatedIp.h:96
AWS_PINPOINTEMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue