AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MailFromAttributes.h
1
6#pragma once
7#include <aws/pinpoint-email/PinpointEmail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/pinpoint-email/model/MailFromDomainStatus.h>
10#include <aws/pinpoint-email/model/BehaviorOnMxFailure.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace PinpointEmail
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_PINPOINTEMAIL_API MailFromAttributes();
38 AWS_PINPOINTEMAIL_API MailFromAttributes(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PINPOINTEMAIL_API MailFromAttributes& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PINPOINTEMAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetMailFromDomain() const{ return m_mailFromDomain; }
49 inline bool MailFromDomainHasBeenSet() const { return m_mailFromDomainHasBeenSet; }
50 inline void SetMailFromDomain(const Aws::String& value) { m_mailFromDomainHasBeenSet = true; m_mailFromDomain = value; }
51 inline void SetMailFromDomain(Aws::String&& value) { m_mailFromDomainHasBeenSet = true; m_mailFromDomain = std::move(value); }
52 inline void SetMailFromDomain(const char* value) { m_mailFromDomainHasBeenSet = true; m_mailFromDomain.assign(value); }
53 inline MailFromAttributes& WithMailFromDomain(const Aws::String& value) { SetMailFromDomain(value); return *this;}
54 inline MailFromAttributes& WithMailFromDomain(Aws::String&& value) { SetMailFromDomain(std::move(value)); return *this;}
55 inline MailFromAttributes& WithMailFromDomain(const char* value) { SetMailFromDomain(value); return *this;}
57
59
70 inline const MailFromDomainStatus& GetMailFromDomainStatus() const{ return m_mailFromDomainStatus; }
71 inline bool MailFromDomainStatusHasBeenSet() const { return m_mailFromDomainStatusHasBeenSet; }
72 inline void SetMailFromDomainStatus(const MailFromDomainStatus& value) { m_mailFromDomainStatusHasBeenSet = true; m_mailFromDomainStatus = value; }
73 inline void SetMailFromDomainStatus(MailFromDomainStatus&& value) { m_mailFromDomainStatusHasBeenSet = true; m_mailFromDomainStatus = std::move(value); }
77
79
89 inline const BehaviorOnMxFailure& GetBehaviorOnMxFailure() const{ return m_behaviorOnMxFailure; }
90 inline bool BehaviorOnMxFailureHasBeenSet() const { return m_behaviorOnMxFailureHasBeenSet; }
91 inline void SetBehaviorOnMxFailure(const BehaviorOnMxFailure& value) { m_behaviorOnMxFailureHasBeenSet = true; m_behaviorOnMxFailure = value; }
92 inline void SetBehaviorOnMxFailure(BehaviorOnMxFailure&& value) { m_behaviorOnMxFailureHasBeenSet = true; m_behaviorOnMxFailure = std::move(value); }
94 inline MailFromAttributes& WithBehaviorOnMxFailure(BehaviorOnMxFailure&& value) { SetBehaviorOnMxFailure(std::move(value)); return *this;}
96 private:
97
98 Aws::String m_mailFromDomain;
99 bool m_mailFromDomainHasBeenSet = false;
100
101 MailFromDomainStatus m_mailFromDomainStatus;
102 bool m_mailFromDomainStatusHasBeenSet = false;
103
104 BehaviorOnMxFailure m_behaviorOnMxFailure;
105 bool m_behaviorOnMxFailureHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace PinpointEmail
110} // namespace Aws
void SetMailFromDomain(const Aws::String &value)
const BehaviorOnMxFailure & GetBehaviorOnMxFailure() const
void SetMailFromDomainStatus(const MailFromDomainStatus &value)
MailFromAttributes & WithMailFromDomainStatus(const MailFromDomainStatus &value)
void SetMailFromDomainStatus(MailFromDomainStatus &&value)
AWS_PINPOINTEMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
MailFromAttributes & WithMailFromDomain(const Aws::String &value)
MailFromAttributes & WithMailFromDomain(const char *value)
void SetBehaviorOnMxFailure(const BehaviorOnMxFailure &value)
const MailFromDomainStatus & GetMailFromDomainStatus() const
AWS_PINPOINTEMAIL_API MailFromAttributes & operator=(Aws::Utils::Json::JsonView jsonValue)
MailFromAttributes & WithBehaviorOnMxFailure(BehaviorOnMxFailure &&value)
MailFromAttributes & WithBehaviorOnMxFailure(const BehaviorOnMxFailure &value)
AWS_PINPOINTEMAIL_API MailFromAttributes(Aws::Utils::Json::JsonView jsonValue)
MailFromAttributes & WithMailFromDomainStatus(MailFromDomainStatus &&value)
MailFromAttributes & WithMailFromDomain(Aws::String &&value)
void SetBehaviorOnMxFailure(BehaviorOnMxFailure &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue