AWS SDK for C++

AWS SDK for C++ Version 1.11.753

Loading...
Searching...
No Matches
BotVersionReplicaSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
11#include <aws/lexv2-models/model/BotVersionReplicationStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace LexModelsV2 {
23namespace Model {
24
32 public:
33 AWS_LEXMODELSV2_API BotVersionReplicaSummary() = default;
36 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetBotVersion() const { return m_botVersion; }
44 inline bool BotVersionHasBeenSet() const { return m_botVersionHasBeenSet; }
45 template <typename BotVersionT = Aws::String>
46 void SetBotVersion(BotVersionT&& value) {
47 m_botVersionHasBeenSet = true;
48 m_botVersion = std::forward<BotVersionT>(value);
49 }
50 template <typename BotVersionT = Aws::String>
52 SetBotVersion(std::forward<BotVersionT>(value));
53 return *this;
54 }
56
58
61 inline BotVersionReplicationStatus GetBotVersionReplicationStatus() const { return m_botVersionReplicationStatus; }
62 inline bool BotVersionReplicationStatusHasBeenSet() const { return m_botVersionReplicationStatusHasBeenSet; }
64 m_botVersionReplicationStatusHasBeenSet = true;
65 m_botVersionReplicationStatus = value;
66 }
69 return *this;
70 }
72
74
78 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
79 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
80 template <typename CreationDateTimeT = Aws::Utils::DateTime>
81 void SetCreationDateTime(CreationDateTimeT&& value) {
82 m_creationDateTimeHasBeenSet = true;
83 m_creationDateTime = std::forward<CreationDateTimeT>(value);
84 }
85 template <typename CreationDateTimeT = Aws::Utils::DateTime>
86 BotVersionReplicaSummary& WithCreationDateTime(CreationDateTimeT&& value) {
87 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::Vector<Aws::String>& GetFailureReasons() const { return m_failureReasons; }
97 inline bool FailureReasonsHasBeenSet() const { return m_failureReasonsHasBeenSet; }
98 template <typename FailureReasonsT = Aws::Vector<Aws::String>>
99 void SetFailureReasons(FailureReasonsT&& value) {
100 m_failureReasonsHasBeenSet = true;
101 m_failureReasons = std::forward<FailureReasonsT>(value);
102 }
103 template <typename FailureReasonsT = Aws::Vector<Aws::String>>
105 SetFailureReasons(std::forward<FailureReasonsT>(value));
106 return *this;
107 }
108 template <typename FailureReasonsT = Aws::String>
109 BotVersionReplicaSummary& AddFailureReasons(FailureReasonsT&& value) {
110 m_failureReasonsHasBeenSet = true;
111 m_failureReasons.emplace_back(std::forward<FailureReasonsT>(value));
112 return *this;
113 }
115 private:
116 Aws::String m_botVersion;
117
119
120 Aws::Utils::DateTime m_creationDateTime{};
121
122 Aws::Vector<Aws::String> m_failureReasons;
123 bool m_botVersionHasBeenSet = false;
124 bool m_botVersionReplicationStatusHasBeenSet = false;
125 bool m_creationDateTimeHasBeenSet = false;
126 bool m_failureReasonsHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace LexModelsV2
131} // namespace Aws
BotVersionReplicaSummary & WithBotVersionReplicationStatus(BotVersionReplicationStatus value)
BotVersionReplicaSummary & WithCreationDateTime(CreationDateTimeT &&value)
const Aws::Vector< Aws::String > & GetFailureReasons() const
AWS_LEXMODELSV2_API BotVersionReplicaSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
BotVersionReplicationStatus GetBotVersionReplicationStatus() const
AWS_LEXMODELSV2_API BotVersionReplicaSummary()=default
BotVersionReplicaSummary & WithFailureReasons(FailureReasonsT &&value)
AWS_LEXMODELSV2_API BotVersionReplicaSummary(Aws::Utils::Json::JsonView jsonValue)
BotVersionReplicaSummary & AddFailureReasons(FailureReasonsT &&value)
const Aws::Utils::DateTime & GetCreationDateTime() const
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetBotVersionReplicationStatus(BotVersionReplicationStatus value)
BotVersionReplicaSummary & WithBotVersion(BotVersionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue