AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
AppComponent.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/core/utils/memory/stl/AWSVector.h>
10#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ResilienceHub {
22namespace Model {
23
30 public:
31 AWS_RESILIENCEHUB_API AppComponent() = default;
32 AWS_RESILIENCEHUB_API AppComponent(Aws::Utils::Json::JsonView jsonValue);
33 AWS_RESILIENCEHUB_API AppComponent& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
48 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetAdditionalInfo() const { return m_additionalInfo; }
49 inline bool AdditionalInfoHasBeenSet() const { return m_additionalInfoHasBeenSet; }
50 template <typename AdditionalInfoT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
51 void SetAdditionalInfo(AdditionalInfoT&& value) {
52 m_additionalInfoHasBeenSet = true;
53 m_additionalInfo = std::forward<AdditionalInfoT>(value);
54 }
55 template <typename AdditionalInfoT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
56 AppComponent& WithAdditionalInfo(AdditionalInfoT&& value) {
57 SetAdditionalInfo(std::forward<AdditionalInfoT>(value));
58 return *this;
59 }
60 template <typename AdditionalInfoKeyT = Aws::String, typename AdditionalInfoValueT = Aws::Vector<Aws::String>>
61 AppComponent& AddAdditionalInfo(AdditionalInfoKeyT&& key, AdditionalInfoValueT&& value) {
62 m_additionalInfoHasBeenSet = true;
63 m_additionalInfo.emplace(std::forward<AdditionalInfoKeyT>(key), std::forward<AdditionalInfoValueT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetId() const { return m_id; }
73 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
74 template <typename IdT = Aws::String>
75 void SetId(IdT&& value) {
76 m_idHasBeenSet = true;
77 m_id = std::forward<IdT>(value);
78 }
79 template <typename IdT = Aws::String>
80 AppComponent& WithId(IdT&& value) {
81 SetId(std::forward<IdT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetName() const { return m_name; }
91 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
92 template <typename NameT = Aws::String>
93 void SetName(NameT&& value) {
94 m_nameHasBeenSet = true;
95 m_name = std::forward<NameT>(value);
96 }
97 template <typename NameT = Aws::String>
98 AppComponent& WithName(NameT&& value) {
99 SetName(std::forward<NameT>(value));
100 return *this;
101 }
103
105
108 inline const Aws::String& GetType() const { return m_type; }
109 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
110 template <typename TypeT = Aws::String>
111 void SetType(TypeT&& value) {
112 m_typeHasBeenSet = true;
113 m_type = std::forward<TypeT>(value);
114 }
115 template <typename TypeT = Aws::String>
116 AppComponent& WithType(TypeT&& value) {
117 SetType(std::forward<TypeT>(value));
118 return *this;
119 }
121 private:
123
124 Aws::String m_id;
125
126 Aws::String m_name;
127
128 Aws::String m_type;
129 bool m_additionalInfoHasBeenSet = false;
130 bool m_idHasBeenSet = false;
131 bool m_nameHasBeenSet = false;
132 bool m_typeHasBeenSet = false;
133};
134
135} // namespace Model
136} // namespace ResilienceHub
137} // namespace Aws
AppComponent & WithAdditionalInfo(AdditionalInfoT &&value)
AppComponent & AddAdditionalInfo(AdditionalInfoKeyT &&key, AdditionalInfoValueT &&value)
void SetAdditionalInfo(AdditionalInfoT &&value)
AWS_RESILIENCEHUB_API AppComponent(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetAdditionalInfo() const
AppComponent & WithId(IdT &&value)
const Aws::String & GetName() const
AWS_RESILIENCEHUB_API AppComponent & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AppComponent & WithName(NameT &&value)
AWS_RESILIENCEHUB_API AppComponent()=default
const Aws::String & GetId() const
AppComponent & WithType(TypeT &&value)
const Aws::String & GetType() 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