AWS SDK for C++

AWS SDK for C++ Version 1.11.869

Loading...
Searching...
No Matches
StopCondition.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
9#include <aws/resiliencehubv2/model/StopConditionSource.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace resiliencehubv2 {
21namespace Model {
22
30 public:
31 AWS_RESILIENCEHUBV2_API StopCondition() = default;
32 AWS_RESILIENCEHUBV2_API StopCondition(Aws::Utils::Json::JsonView jsonValue);
33 AWS_RESILIENCEHUBV2_API StopCondition& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline StopConditionSource GetSource() const { return m_source; }
41 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
42 inline void SetSource(StopConditionSource value) {
43 m_sourceHasBeenSet = true;
44 m_source = value;
45 }
47 SetSource(value);
48 return *this;
49 }
51
53
56 inline const Aws::String& GetValue() const { return m_value; }
57 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
58 template <typename ValueT = Aws::String>
59 void SetValue(ValueT&& value) {
60 m_valueHasBeenSet = true;
61 m_value = std::forward<ValueT>(value);
62 }
63 template <typename ValueT = Aws::String>
64 StopCondition& WithValue(ValueT&& value) {
65 SetValue(std::forward<ValueT>(value));
66 return *this;
67 }
69 private:
71
72 Aws::String m_value;
73 bool m_sourceHasBeenSet = false;
74 bool m_valueHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace resiliencehubv2
79} // namespace Aws
StopCondition & WithValue(ValueT &&value)
const Aws::String & GetValue() const
AWS_RESILIENCEHUBV2_API StopCondition()=default
StopConditionSource GetSource() const
AWS_RESILIENCEHUBV2_API StopCondition(Aws::Utils::Json::JsonView jsonValue)
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
StopCondition & WithSource(StopConditionSource value)
void SetSource(StopConditionSource value)
AWS_RESILIENCEHUBV2_API StopCondition & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue