AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
DeliveryOptions.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/TlsPolicy.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 DeliveryOptions() = default;
32 AWS_PINPOINTEMAIL_API DeliveryOptions(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PINPOINTEMAIL_API DeliveryOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PINPOINTEMAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
44 inline TlsPolicy GetTlsPolicy() const { return m_tlsPolicy; }
45 inline bool TlsPolicyHasBeenSet() const { return m_tlsPolicyHasBeenSet; }
46 inline void SetTlsPolicy(TlsPolicy value) {
47 m_tlsPolicyHasBeenSet = true;
48 m_tlsPolicy = value;
49 }
51 SetTlsPolicy(value);
52 return *this;
53 }
55
57
61 inline const Aws::String& GetSendingPoolName() const { return m_sendingPoolName; }
62 inline bool SendingPoolNameHasBeenSet() const { return m_sendingPoolNameHasBeenSet; }
63 template <typename SendingPoolNameT = Aws::String>
64 void SetSendingPoolName(SendingPoolNameT&& value) {
65 m_sendingPoolNameHasBeenSet = true;
66 m_sendingPoolName = std::forward<SendingPoolNameT>(value);
67 }
68 template <typename SendingPoolNameT = Aws::String>
69 DeliveryOptions& WithSendingPoolName(SendingPoolNameT&& value) {
70 SetSendingPoolName(std::forward<SendingPoolNameT>(value));
71 return *this;
72 }
74 private:
75 TlsPolicy m_tlsPolicy{TlsPolicy::NOT_SET};
76 bool m_tlsPolicyHasBeenSet = false;
77
78 Aws::String m_sendingPoolName;
79 bool m_sendingPoolNameHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace PinpointEmail
84} // namespace Aws
DeliveryOptions & WithSendingPoolName(SendingPoolNameT &&value)
AWS_PINPOINTEMAIL_API DeliveryOptions(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINTEMAIL_API DeliveryOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSendingPoolName(SendingPoolNameT &&value)
AWS_PINPOINTEMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
DeliveryOptions & WithTlsPolicy(TlsPolicy value)
AWS_PINPOINTEMAIL_API DeliveryOptions()=default
const Aws::String & GetSendingPoolName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue