AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BotReplicaSummary.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/lexv2-models/model/BotReplicaStatus.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace LexModelsV2
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_LEXMODELSV2_API BotReplicaSummary();
39 AWS_LEXMODELSV2_API BotReplicaSummary(Aws::Utils::Json::JsonView jsonValue);
41 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetReplicaRegion() const{ return m_replicaRegion; }
49 inline bool ReplicaRegionHasBeenSet() const { return m_replicaRegionHasBeenSet; }
50 inline void SetReplicaRegion(const Aws::String& value) { m_replicaRegionHasBeenSet = true; m_replicaRegion = value; }
51 inline void SetReplicaRegion(Aws::String&& value) { m_replicaRegionHasBeenSet = true; m_replicaRegion = std::move(value); }
52 inline void SetReplicaRegion(const char* value) { m_replicaRegionHasBeenSet = true; m_replicaRegion.assign(value); }
53 inline BotReplicaSummary& WithReplicaRegion(const Aws::String& value) { SetReplicaRegion(value); return *this;}
54 inline BotReplicaSummary& WithReplicaRegion(Aws::String&& value) { SetReplicaRegion(std::move(value)); return *this;}
55 inline BotReplicaSummary& WithReplicaRegion(const char* value) { SetReplicaRegion(value); return *this;}
57
59
62 inline const Aws::Utils::DateTime& GetCreationDateTime() const{ return m_creationDateTime; }
63 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
64 inline void SetCreationDateTime(const Aws::Utils::DateTime& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = value; }
65 inline void SetCreationDateTime(Aws::Utils::DateTime&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::move(value); }
67 inline BotReplicaSummary& WithCreationDateTime(Aws::Utils::DateTime&& value) { SetCreationDateTime(std::move(value)); return *this;}
69
71
74 inline const BotReplicaStatus& GetBotReplicaStatus() const{ return m_botReplicaStatus; }
75 inline bool BotReplicaStatusHasBeenSet() const { return m_botReplicaStatusHasBeenSet; }
76 inline void SetBotReplicaStatus(const BotReplicaStatus& value) { m_botReplicaStatusHasBeenSet = true; m_botReplicaStatus = value; }
77 inline void SetBotReplicaStatus(BotReplicaStatus&& value) { m_botReplicaStatusHasBeenSet = true; m_botReplicaStatus = std::move(value); }
78 inline BotReplicaSummary& WithBotReplicaStatus(const BotReplicaStatus& value) { SetBotReplicaStatus(value); return *this;}
79 inline BotReplicaSummary& WithBotReplicaStatus(BotReplicaStatus&& value) { SetBotReplicaStatus(std::move(value)); return *this;}
81
83
86 inline const Aws::Vector<Aws::String>& GetFailureReasons() const{ return m_failureReasons; }
87 inline bool FailureReasonsHasBeenSet() const { return m_failureReasonsHasBeenSet; }
88 inline void SetFailureReasons(const Aws::Vector<Aws::String>& value) { m_failureReasonsHasBeenSet = true; m_failureReasons = value; }
89 inline void SetFailureReasons(Aws::Vector<Aws::String>&& value) { m_failureReasonsHasBeenSet = true; m_failureReasons = std::move(value); }
91 inline BotReplicaSummary& WithFailureReasons(Aws::Vector<Aws::String>&& value) { SetFailureReasons(std::move(value)); return *this;}
92 inline BotReplicaSummary& AddFailureReasons(const Aws::String& value) { m_failureReasonsHasBeenSet = true; m_failureReasons.push_back(value); return *this; }
93 inline BotReplicaSummary& AddFailureReasons(Aws::String&& value) { m_failureReasonsHasBeenSet = true; m_failureReasons.push_back(std::move(value)); return *this; }
94 inline BotReplicaSummary& AddFailureReasons(const char* value) { m_failureReasonsHasBeenSet = true; m_failureReasons.push_back(value); return *this; }
96 private:
97
98 Aws::String m_replicaRegion;
99 bool m_replicaRegionHasBeenSet = false;
100
101 Aws::Utils::DateTime m_creationDateTime;
102 bool m_creationDateTimeHasBeenSet = false;
103
104 BotReplicaStatus m_botReplicaStatus;
105 bool m_botReplicaStatusHasBeenSet = false;
106
107 Aws::Vector<Aws::String> m_failureReasons;
108 bool m_failureReasonsHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace LexModelsV2
113} // namespace Aws
void SetBotReplicaStatus(const BotReplicaStatus &value)
BotReplicaSummary & WithReplicaRegion(const Aws::String &value)
void SetFailureReasons(const Aws::Vector< Aws::String > &value)
BotReplicaSummary & WithBotReplicaStatus(BotReplicaStatus &&value)
BotReplicaSummary & WithFailureReasons(Aws::Vector< Aws::String > &&value)
const BotReplicaStatus & GetBotReplicaStatus() const
AWS_LEXMODELSV2_API BotReplicaSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetReplicaRegion(const Aws::String &value)
const Aws::String & GetReplicaRegion() const
BotReplicaSummary & WithFailureReasons(const Aws::Vector< Aws::String > &value)
BotReplicaSummary & AddFailureReasons(const char *value)
void SetFailureReasons(Aws::Vector< Aws::String > &&value)
BotReplicaSummary & WithReplicaRegion(const char *value)
AWS_LEXMODELSV2_API BotReplicaSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetFailureReasons() const
void SetBotReplicaStatus(BotReplicaStatus &&value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
BotReplicaSummary & AddFailureReasons(Aws::String &&value)
BotReplicaSummary & WithReplicaRegion(Aws::String &&value)
const Aws::Utils::DateTime & GetCreationDateTime() const
BotReplicaSummary & WithBotReplicaStatus(const BotReplicaStatus &value)
void SetCreationDateTime(const Aws::Utils::DateTime &value)
BotReplicaSummary & WithCreationDateTime(Aws::Utils::DateTime &&value)
BotReplicaSummary & WithCreationDateTime(const Aws::Utils::DateTime &value)
void SetCreationDateTime(Aws::Utils::DateTime &&value)
BotReplicaSummary & AddFailureReasons(const Aws::String &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