AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
IdentityInfo.h
1
6#pragma once
7#include <aws/pinpoint-email/PinpointEmail_EXPORTS.h>
8#include <aws/pinpoint-email/model/IdentityType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace PinpointEmail
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_PINPOINTEMAIL_API IdentityInfo() = default;
36 AWS_PINPOINTEMAIL_API IdentityInfo(Aws::Utils::Json::JsonView jsonValue);
37 AWS_PINPOINTEMAIL_API IdentityInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PINPOINTEMAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
49 inline IdentityType GetIdentityType() const { return m_identityType; }
50 inline bool IdentityTypeHasBeenSet() const { return m_identityTypeHasBeenSet; }
51 inline void SetIdentityType(IdentityType value) { m_identityTypeHasBeenSet = true; m_identityType = value; }
52 inline IdentityInfo& WithIdentityType(IdentityType value) { SetIdentityType(value); return *this;}
54
56
59 inline const Aws::String& GetIdentityName() const { return m_identityName; }
60 inline bool IdentityNameHasBeenSet() const { return m_identityNameHasBeenSet; }
61 template<typename IdentityNameT = Aws::String>
62 void SetIdentityName(IdentityNameT&& value) { m_identityNameHasBeenSet = true; m_identityName = std::forward<IdentityNameT>(value); }
63 template<typename IdentityNameT = Aws::String>
64 IdentityInfo& WithIdentityName(IdentityNameT&& value) { SetIdentityName(std::forward<IdentityNameT>(value)); return *this;}
66
68
75 inline bool GetSendingEnabled() const { return m_sendingEnabled; }
76 inline bool SendingEnabledHasBeenSet() const { return m_sendingEnabledHasBeenSet; }
77 inline void SetSendingEnabled(bool value) { m_sendingEnabledHasBeenSet = true; m_sendingEnabled = value; }
78 inline IdentityInfo& WithSendingEnabled(bool value) { SetSendingEnabled(value); return *this;}
80 private:
81
82 IdentityType m_identityType{IdentityType::NOT_SET};
83 bool m_identityTypeHasBeenSet = false;
84
85 Aws::String m_identityName;
86 bool m_identityNameHasBeenSet = false;
87
88 bool m_sendingEnabled{false};
89 bool m_sendingEnabledHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace PinpointEmail
94} // namespace Aws
AWS_PINPOINTEMAIL_API IdentityInfo(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINTEMAIL_API IdentityInfo()=default
AWS_PINPOINTEMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PINPOINTEMAIL_API IdentityInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
IdentityInfo & WithIdentityType(IdentityType value)
const Aws::String & GetIdentityName() const
IdentityInfo & WithIdentityName(IdentityNameT &&value)
IdentityInfo & WithSendingEnabled(bool value)
void SetIdentityType(IdentityType value)
void SetIdentityName(IdentityNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue