AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
ComponentSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm-sap/SsmSap_EXPORTS.h>
10#include <aws/ssm-sap/model/ComponentType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SsmSap {
22namespace Model {
23
30 public:
31 AWS_SSMSAP_API ComponentSummary() = default;
34 AWS_SSMSAP_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
41 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
42 template <typename ApplicationIdT = Aws::String>
43 void SetApplicationId(ApplicationIdT&& value) {
44 m_applicationIdHasBeenSet = true;
45 m_applicationId = std::forward<ApplicationIdT>(value);
46 }
47 template <typename ApplicationIdT = Aws::String>
48 ComponentSummary& WithApplicationId(ApplicationIdT&& value) {
49 SetApplicationId(std::forward<ApplicationIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetComponentId() const { return m_componentId; }
59 inline bool ComponentIdHasBeenSet() const { return m_componentIdHasBeenSet; }
60 template <typename ComponentIdT = Aws::String>
61 void SetComponentId(ComponentIdT&& value) {
62 m_componentIdHasBeenSet = true;
63 m_componentId = std::forward<ComponentIdT>(value);
64 }
65 template <typename ComponentIdT = Aws::String>
66 ComponentSummary& WithComponentId(ComponentIdT&& value) {
67 SetComponentId(std::forward<ComponentIdT>(value));
68 return *this;
69 }
71
73
76 inline ComponentType GetComponentType() const { return m_componentType; }
77 inline bool ComponentTypeHasBeenSet() const { return m_componentTypeHasBeenSet; }
78 inline void SetComponentType(ComponentType value) {
79 m_componentTypeHasBeenSet = true;
80 m_componentType = value;
81 }
83 SetComponentType(value);
84 return *this;
85 }
87
89
92 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
93 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
94 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
95 void SetTags(TagsT&& value) {
96 m_tagsHasBeenSet = true;
97 m_tags = std::forward<TagsT>(value);
98 }
99 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
100 ComponentSummary& WithTags(TagsT&& value) {
101 SetTags(std::forward<TagsT>(value));
102 return *this;
103 }
104 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
105 ComponentSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
106 m_tagsHasBeenSet = true;
107 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetArn() const { return m_arn; }
117 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
118 template <typename ArnT = Aws::String>
119 void SetArn(ArnT&& value) {
120 m_arnHasBeenSet = true;
121 m_arn = std::forward<ArnT>(value);
122 }
123 template <typename ArnT = Aws::String>
124 ComponentSummary& WithArn(ArnT&& value) {
125 SetArn(std::forward<ArnT>(value));
126 return *this;
127 }
129 private:
130 Aws::String m_applicationId;
131
132 Aws::String m_componentId;
133
134 ComponentType m_componentType{ComponentType::NOT_SET};
135
137
138 Aws::String m_arn;
139 bool m_applicationIdHasBeenSet = false;
140 bool m_componentIdHasBeenSet = false;
141 bool m_componentTypeHasBeenSet = false;
142 bool m_tagsHasBeenSet = false;
143 bool m_arnHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace SsmSap
148} // namespace Aws
void SetComponentType(ComponentType value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::String & GetArn() const
ComponentSummary & WithApplicationId(ApplicationIdT &&value)
ComponentSummary & WithTags(TagsT &&value)
ComponentSummary & WithArn(ArnT &&value)
ComponentSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_SSMSAP_API ComponentSummary()=default
AWS_SSMSAP_API ComponentSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetComponentId(ComponentIdT &&value)
const Aws::String & GetComponentId() const
ComponentSummary & WithComponentId(ComponentIdT &&value)
AWS_SSMSAP_API Aws::Utils::Json::JsonValue Jsonize() const
ComponentSummary & WithComponentType(ComponentType value)
void SetApplicationId(ApplicationIdT &&value)
AWS_SSMSAP_API ComponentSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetApplicationId() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue