AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
SubCheckResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ssm-sap/SsmSap_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SsmSap {
21namespace Model {
22
30 public:
31 AWS_SSMSAP_API SubCheckResult() = default;
32 AWS_SSMSAP_API SubCheckResult(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SSMSAP_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetId() const { return m_id; }
41 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
42 template <typename IdT = Aws::String>
43 void SetId(IdT&& value) {
44 m_idHasBeenSet = true;
45 m_id = std::forward<IdT>(value);
46 }
47 template <typename IdT = Aws::String>
48 SubCheckResult& WithId(IdT&& value) {
49 SetId(std::forward<IdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
66 SubCheckResult& WithName(NameT&& value) {
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 template <typename DescriptionT = Aws::String>
79 void SetDescription(DescriptionT&& value) {
80 m_descriptionHasBeenSet = true;
81 m_description = std::forward<DescriptionT>(value);
82 }
83 template <typename DescriptionT = Aws::String>
84 SubCheckResult& WithDescription(DescriptionT&& value) {
85 SetDescription(std::forward<DescriptionT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::Vector<Aws::String>& GetReferences() const { return m_references; }
95 inline bool ReferencesHasBeenSet() const { return m_referencesHasBeenSet; }
96 template <typename ReferencesT = Aws::Vector<Aws::String>>
97 void SetReferences(ReferencesT&& value) {
98 m_referencesHasBeenSet = true;
99 m_references = std::forward<ReferencesT>(value);
100 }
101 template <typename ReferencesT = Aws::Vector<Aws::String>>
102 SubCheckResult& WithReferences(ReferencesT&& value) {
103 SetReferences(std::forward<ReferencesT>(value));
104 return *this;
105 }
106 template <typename ReferencesT = Aws::String>
107 SubCheckResult& AddReferences(ReferencesT&& value) {
108 m_referencesHasBeenSet = true;
109 m_references.emplace_back(std::forward<ReferencesT>(value));
110 return *this;
111 }
113 private:
114 Aws::String m_id;
115
116 Aws::String m_name;
117
118 Aws::String m_description;
119
120 Aws::Vector<Aws::String> m_references;
121 bool m_idHasBeenSet = false;
122 bool m_nameHasBeenSet = false;
123 bool m_descriptionHasBeenSet = false;
124 bool m_referencesHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace SsmSap
129} // namespace Aws
AWS_SSMSAP_API Aws::Utils::Json::JsonValue Jsonize() const
void SetReferences(ReferencesT &&value)
SubCheckResult & WithName(NameT &&value)
void SetDescription(DescriptionT &&value)
AWS_SSMSAP_API SubCheckResult & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetId() const
const Aws::String & GetName() const
SubCheckResult & WithId(IdT &&value)
SubCheckResult & WithDescription(DescriptionT &&value)
SubCheckResult & AddReferences(ReferencesT &&value)
AWS_SSMSAP_API SubCheckResult()=default
AWS_SSMSAP_API SubCheckResult(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDescription() const
const Aws::Vector< Aws::String > & GetReferences() const
SubCheckResult & WithReferences(ReferencesT &&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