AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
DeliveryOptions.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/SharedPoolDeliveryMode.h>
10#include <aws/sesv2/model/TlsPolicy.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SESV2 {
22namespace Model {
23
31 public:
32 AWS_SESV2_API DeliveryOptions() = default;
35 AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
45 inline TlsPolicy GetTlsPolicy() const { return m_tlsPolicy; }
46 inline bool TlsPolicyHasBeenSet() const { return m_tlsPolicyHasBeenSet; }
47 inline void SetTlsPolicy(TlsPolicy value) {
48 m_tlsPolicyHasBeenSet = true;
49 m_tlsPolicy = value;
50 }
52 SetTlsPolicy(value);
53 return *this;
54 }
56
58
62 inline const Aws::String& GetSendingPoolName() const { return m_sendingPoolName; }
63 inline bool SendingPoolNameHasBeenSet() const { return m_sendingPoolNameHasBeenSet; }
64 template <typename SendingPoolNameT = Aws::String>
65 void SetSendingPoolName(SendingPoolNameT&& value) {
66 m_sendingPoolNameHasBeenSet = true;
67 m_sendingPoolName = std::forward<SendingPoolNameT>(value);
68 }
69 template <typename SendingPoolNameT = Aws::String>
70 DeliveryOptions& WithSendingPoolName(SendingPoolNameT&& value) {
71 SetSendingPoolName(std::forward<SendingPoolNameT>(value));
72 return *this;
73 }
75
77
82 inline long long GetMaxDeliverySeconds() const { return m_maxDeliverySeconds; }
83 inline bool MaxDeliverySecondsHasBeenSet() const { return m_maxDeliverySecondsHasBeenSet; }
84 inline void SetMaxDeliverySeconds(long long value) {
85 m_maxDeliverySecondsHasBeenSet = true;
86 m_maxDeliverySeconds = value;
87 }
88 inline DeliveryOptions& WithMaxDeliverySeconds(long long value) {
90 return *this;
91 }
93
95
109 inline SharedPoolDeliveryMode GetSharedPoolDeliveryMode() const { return m_sharedPoolDeliveryMode; }
110 inline bool SharedPoolDeliveryModeHasBeenSet() const { return m_sharedPoolDeliveryModeHasBeenSet; }
112 m_sharedPoolDeliveryModeHasBeenSet = true;
113 m_sharedPoolDeliveryMode = value;
114 }
120 private:
121 TlsPolicy m_tlsPolicy{TlsPolicy::NOT_SET};
122
123 Aws::String m_sendingPoolName;
124
125 long long m_maxDeliverySeconds{0};
126
128 bool m_tlsPolicyHasBeenSet = false;
129 bool m_sendingPoolNameHasBeenSet = false;
130 bool m_maxDeliverySecondsHasBeenSet = false;
131 bool m_sharedPoolDeliveryModeHasBeenSet = false;
132};
133
134} // namespace Model
135} // namespace SESV2
136} // namespace Aws
AWS_SESV2_API DeliveryOptions(Aws::Utils::Json::JsonView jsonValue)
AWS_SESV2_API DeliveryOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SESV2_API DeliveryOptions()=default
DeliveryOptions & WithMaxDeliverySeconds(long long value)
void SetMaxDeliverySeconds(long long value)
DeliveryOptions & WithSharedPoolDeliveryMode(SharedPoolDeliveryMode value)
SharedPoolDeliveryMode GetSharedPoolDeliveryMode() const
void SetSendingPoolName(SendingPoolNameT &&value)
const Aws::String & GetSendingPoolName() const
DeliveryOptions & WithSendingPoolName(SendingPoolNameT &&value)
DeliveryOptions & WithTlsPolicy(TlsPolicy value)
AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSharedPoolDeliveryMode(SharedPoolDeliveryMode value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue