AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Bounce.h
1
6#pragma once
7#include <aws/sesv2/SESV2_EXPORTS.h>
8#include <aws/sesv2/model/BounceType.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 SESV2
23{
24namespace Model
25{
26
32 class Bounce
33 {
34 public:
35 AWS_SESV2_API Bounce();
36 AWS_SESV2_API Bounce(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SESV2_API Bounce& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
47 inline const BounceType& GetBounceType() const{ return m_bounceType; }
48 inline bool BounceTypeHasBeenSet() const { return m_bounceTypeHasBeenSet; }
49 inline void SetBounceType(const BounceType& value) { m_bounceTypeHasBeenSet = true; m_bounceType = value; }
50 inline void SetBounceType(BounceType&& value) { m_bounceTypeHasBeenSet = true; m_bounceType = std::move(value); }
51 inline Bounce& WithBounceType(const BounceType& value) { SetBounceType(value); return *this;}
52 inline Bounce& WithBounceType(BounceType&& value) { SetBounceType(std::move(value)); return *this;}
54
56
59 inline const Aws::String& GetBounceSubType() const{ return m_bounceSubType; }
60 inline bool BounceSubTypeHasBeenSet() const { return m_bounceSubTypeHasBeenSet; }
61 inline void SetBounceSubType(const Aws::String& value) { m_bounceSubTypeHasBeenSet = true; m_bounceSubType = value; }
62 inline void SetBounceSubType(Aws::String&& value) { m_bounceSubTypeHasBeenSet = true; m_bounceSubType = std::move(value); }
63 inline void SetBounceSubType(const char* value) { m_bounceSubTypeHasBeenSet = true; m_bounceSubType.assign(value); }
64 inline Bounce& WithBounceSubType(const Aws::String& value) { SetBounceSubType(value); return *this;}
65 inline Bounce& WithBounceSubType(Aws::String&& value) { SetBounceSubType(std::move(value)); return *this;}
66 inline Bounce& WithBounceSubType(const char* value) { SetBounceSubType(value); return *this;}
68
70
75 inline const Aws::String& GetDiagnosticCode() const{ return m_diagnosticCode; }
76 inline bool DiagnosticCodeHasBeenSet() const { return m_diagnosticCodeHasBeenSet; }
77 inline void SetDiagnosticCode(const Aws::String& value) { m_diagnosticCodeHasBeenSet = true; m_diagnosticCode = value; }
78 inline void SetDiagnosticCode(Aws::String&& value) { m_diagnosticCodeHasBeenSet = true; m_diagnosticCode = std::move(value); }
79 inline void SetDiagnosticCode(const char* value) { m_diagnosticCodeHasBeenSet = true; m_diagnosticCode.assign(value); }
80 inline Bounce& WithDiagnosticCode(const Aws::String& value) { SetDiagnosticCode(value); return *this;}
81 inline Bounce& WithDiagnosticCode(Aws::String&& value) { SetDiagnosticCode(std::move(value)); return *this;}
82 inline Bounce& WithDiagnosticCode(const char* value) { SetDiagnosticCode(value); return *this;}
84 private:
85
86 BounceType m_bounceType;
87 bool m_bounceTypeHasBeenSet = false;
88
89 Aws::String m_bounceSubType;
90 bool m_bounceSubTypeHasBeenSet = false;
91
92 Aws::String m_diagnosticCode;
93 bool m_diagnosticCodeHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace SESV2
98} // namespace Aws
Bounce & WithDiagnosticCode(const Aws::String &value)
Definition Bounce.h:80
void SetDiagnosticCode(const Aws::String &value)
Definition Bounce.h:77
const BounceType & GetBounceType() const
Definition Bounce.h:47
bool DiagnosticCodeHasBeenSet() const
Definition Bounce.h:76
void SetDiagnosticCode(const char *value)
Definition Bounce.h:79
bool BounceSubTypeHasBeenSet() const
Definition Bounce.h:60
const Aws::String & GetDiagnosticCode() const
Definition Bounce.h:75
Bounce & WithBounceType(BounceType &&value)
Definition Bounce.h:52
void SetDiagnosticCode(Aws::String &&value)
Definition Bounce.h:78
AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const
Bounce & WithBounceSubType(const char *value)
Definition Bounce.h:66
bool BounceTypeHasBeenSet() const
Definition Bounce.h:48
const Aws::String & GetBounceSubType() const
Definition Bounce.h:59
void SetBounceType(const BounceType &value)
Definition Bounce.h:49
void SetBounceSubType(Aws::String &&value)
Definition Bounce.h:62
Bounce & WithBounceType(const BounceType &value)
Definition Bounce.h:51
void SetBounceSubType(const Aws::String &value)
Definition Bounce.h:61
Bounce & WithBounceSubType(Aws::String &&value)
Definition Bounce.h:65
AWS_SESV2_API Bounce(Aws::Utils::Json::JsonView jsonValue)
Bounce & WithDiagnosticCode(Aws::String &&value)
Definition Bounce.h:81
Bounce & WithDiagnosticCode(const char *value)
Definition Bounce.h:82
Bounce & WithBounceSubType(const Aws::String &value)
Definition Bounce.h:64
AWS_SESV2_API Bounce & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SESV2_API Bounce()
void SetBounceSubType(const char *value)
Definition Bounce.h:63
void SetBounceType(BounceType &&value)
Definition Bounce.h:50
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue