AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
IdentityInfo.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/IdentityType.h>
10#include <aws/sesv2/model/VerificationStatus.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
30 public:
31 AWS_SESV2_API IdentityInfo() = default;
32 AWS_SESV2_API IdentityInfo(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline IdentityType GetIdentityType() const { return m_identityType; }
42 inline bool IdentityTypeHasBeenSet() const { return m_identityTypeHasBeenSet; }
43 inline void SetIdentityType(IdentityType value) {
44 m_identityTypeHasBeenSet = true;
45 m_identityType = value;
46 }
48 SetIdentityType(value);
49 return *this;
50 }
52
54
57 inline const Aws::String& GetIdentityName() const { return m_identityName; }
58 inline bool IdentityNameHasBeenSet() const { return m_identityNameHasBeenSet; }
59 template <typename IdentityNameT = Aws::String>
60 void SetIdentityName(IdentityNameT&& value) {
61 m_identityNameHasBeenSet = true;
62 m_identityName = std::forward<IdentityNameT>(value);
63 }
64 template <typename IdentityNameT = Aws::String>
65 IdentityInfo& WithIdentityName(IdentityNameT&& value) {
66 SetIdentityName(std::forward<IdentityNameT>(value));
67 return *this;
68 }
70
72
79 inline bool GetSendingEnabled() const { return m_sendingEnabled; }
80 inline bool SendingEnabledHasBeenSet() const { return m_sendingEnabledHasBeenSet; }
81 inline void SetSendingEnabled(bool value) {
82 m_sendingEnabledHasBeenSet = true;
83 m_sendingEnabled = value;
84 }
85 inline IdentityInfo& WithSendingEnabled(bool value) {
86 SetSendingEnabled(value);
87 return *this;
88 }
90
92
103 inline VerificationStatus GetVerificationStatus() const { return m_verificationStatus; }
104 inline bool VerificationStatusHasBeenSet() const { return m_verificationStatusHasBeenSet; }
106 m_verificationStatusHasBeenSet = true;
107 m_verificationStatus = value;
108 }
111 return *this;
112 }
114 private:
115 IdentityType m_identityType{IdentityType::NOT_SET};
116
117 Aws::String m_identityName;
118
119 bool m_sendingEnabled{false};
120
122 bool m_identityTypeHasBeenSet = false;
123 bool m_identityNameHasBeenSet = false;
124 bool m_sendingEnabledHasBeenSet = false;
125 bool m_verificationStatusHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace SESV2
130} // namespace Aws
IdentityType GetIdentityType() const
void SetVerificationStatus(VerificationStatus value)
void SetSendingEnabled(bool value)
AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const
IdentityInfo & WithIdentityName(IdentityNameT &&value)
AWS_SESV2_API IdentityInfo(Aws::Utils::Json::JsonView jsonValue)
IdentityInfo & WithIdentityType(IdentityType value)
void SetIdentityName(IdentityNameT &&value)
AWS_SESV2_API IdentityInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
VerificationStatus GetVerificationStatus() const
AWS_SESV2_API IdentityInfo()=default
IdentityInfo & WithSendingEnabled(bool value)
IdentityInfo & WithVerificationStatus(VerificationStatus value)
void SetIdentityType(IdentityType value)
const Aws::String & GetIdentityName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue