AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
Bounce.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/BounceType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SESV2 {
21namespace Model {
22
28class Bounce {
29 public:
30 AWS_SESV2_API Bounce() = default;
31 AWS_SESV2_API Bounce(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SESV2_API Bounce& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
41 inline BounceType GetBounceType() const { return m_bounceType; }
42 inline bool BounceTypeHasBeenSet() const { return m_bounceTypeHasBeenSet; }
43 inline void SetBounceType(BounceType value) {
44 m_bounceTypeHasBeenSet = true;
45 m_bounceType = value;
46 }
48 SetBounceType(value);
49 return *this;
50 }
52
54
57 inline const Aws::String& GetBounceSubType() const { return m_bounceSubType; }
58 inline bool BounceSubTypeHasBeenSet() const { return m_bounceSubTypeHasBeenSet; }
59 template <typename BounceSubTypeT = Aws::String>
60 void SetBounceSubType(BounceSubTypeT&& value) {
61 m_bounceSubTypeHasBeenSet = true;
62 m_bounceSubType = std::forward<BounceSubTypeT>(value);
63 }
64 template <typename BounceSubTypeT = Aws::String>
65 Bounce& WithBounceSubType(BounceSubTypeT&& value) {
66 SetBounceSubType(std::forward<BounceSubTypeT>(value));
67 return *this;
68 }
70
72
77 inline const Aws::String& GetDiagnosticCode() const { return m_diagnosticCode; }
78 inline bool DiagnosticCodeHasBeenSet() const { return m_diagnosticCodeHasBeenSet; }
79 template <typename DiagnosticCodeT = Aws::String>
80 void SetDiagnosticCode(DiagnosticCodeT&& value) {
81 m_diagnosticCodeHasBeenSet = true;
82 m_diagnosticCode = std::forward<DiagnosticCodeT>(value);
83 }
84 template <typename DiagnosticCodeT = Aws::String>
85 Bounce& WithDiagnosticCode(DiagnosticCodeT&& value) {
86 SetDiagnosticCode(std::forward<DiagnosticCodeT>(value));
87 return *this;
88 }
90 private:
91 BounceType m_bounceType{BounceType::NOT_SET};
92
93 Aws::String m_bounceSubType;
94
95 Aws::String m_diagnosticCode;
96 bool m_bounceTypeHasBeenSet = false;
97 bool m_bounceSubTypeHasBeenSet = false;
98 bool m_diagnosticCodeHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace SESV2
103} // namespace Aws
void SetBounceType(BounceType value)
Definition Bounce.h:43
bool DiagnosticCodeHasBeenSet() const
Definition Bounce.h:78
Bounce & WithDiagnosticCode(DiagnosticCodeT &&value)
Definition Bounce.h:85
bool BounceSubTypeHasBeenSet() const
Definition Bounce.h:58
const Aws::String & GetDiagnosticCode() const
Definition Bounce.h:77
BounceType GetBounceType() const
Definition Bounce.h:41
AWS_SESV2_API Bounce()=default
AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const
bool BounceTypeHasBeenSet() const
Definition Bounce.h:42
const Aws::String & GetBounceSubType() const
Definition Bounce.h:57
Bounce & WithBounceType(BounceType value)
Definition Bounce.h:47
void SetDiagnosticCode(DiagnosticCodeT &&value)
Definition Bounce.h:80
Bounce & WithBounceSubType(BounceSubTypeT &&value)
Definition Bounce.h:65
AWS_SESV2_API Bounce(Aws::Utils::Json::JsonView jsonValue)
AWS_SESV2_API Bounce & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetBounceSubType(BounceSubTypeT &&value)
Definition Bounce.h:60
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue