AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateAppVersionAppComponentRequest.h
1
6#pragma once
7#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
8#include <aws/resiliencehub/ResilienceHubRequest.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace ResilienceHub
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_RESILIENCEHUB_API CreateAppVersionAppComponentRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateAppVersionAppComponent"; }
34
35 AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override;
36
37
39
43 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetAdditionalInfo() const { return m_additionalInfo; }
44 inline bool AdditionalInfoHasBeenSet() const { return m_additionalInfoHasBeenSet; }
45 template<typename AdditionalInfoT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
46 void SetAdditionalInfo(AdditionalInfoT&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = std::forward<AdditionalInfoT>(value); }
47 template<typename AdditionalInfoT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
48 CreateAppVersionAppComponentRequest& WithAdditionalInfo(AdditionalInfoT&& value) { SetAdditionalInfo(std::forward<AdditionalInfoT>(value)); return *this;}
49 template<typename AdditionalInfoKeyT = Aws::String, typename AdditionalInfoValueT = Aws::Vector<Aws::String>>
50 CreateAppVersionAppComponentRequest& AddAdditionalInfo(AdditionalInfoKeyT&& key, AdditionalInfoValueT&& value) {
51 m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(std::forward<AdditionalInfoKeyT>(key), std::forward<AdditionalInfoValueT>(value)); return *this;
52 }
54
56
65 inline const Aws::String& GetAppArn() const { return m_appArn; }
66 inline bool AppArnHasBeenSet() const { return m_appArnHasBeenSet; }
67 template<typename AppArnT = Aws::String>
68 void SetAppArn(AppArnT&& value) { m_appArnHasBeenSet = true; m_appArn = std::forward<AppArnT>(value); }
69 template<typename AppArnT = Aws::String>
70 CreateAppVersionAppComponentRequest& WithAppArn(AppArnT&& value) { SetAppArn(std::forward<AppArnT>(value)); return *this;}
72
74
79 inline const Aws::String& GetClientToken() const { return m_clientToken; }
80 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
81 template<typename ClientTokenT = Aws::String>
82 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
83 template<typename ClientTokenT = Aws::String>
84 CreateAppVersionAppComponentRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
86
88
91 inline const Aws::String& GetId() const { return m_id; }
92 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
93 template<typename IdT = Aws::String>
94 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
95 template<typename IdT = Aws::String>
96 CreateAppVersionAppComponentRequest& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
98
100
103 inline const Aws::String& GetName() const { return m_name; }
104 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
105 template<typename NameT = Aws::String>
106 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
107 template<typename NameT = Aws::String>
108 CreateAppVersionAppComponentRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
110
112
118 inline const Aws::String& GetType() const { return m_type; }
119 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
120 template<typename TypeT = Aws::String>
121 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
122 template<typename TypeT = Aws::String>
123 CreateAppVersionAppComponentRequest& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
125 private:
126
128 bool m_additionalInfoHasBeenSet = false;
129
130 Aws::String m_appArn;
131 bool m_appArnHasBeenSet = false;
132
134 bool m_clientTokenHasBeenSet = true;
135
136 Aws::String m_id;
137 bool m_idHasBeenSet = false;
138
139 Aws::String m_name;
140 bool m_nameHasBeenSet = false;
141
142 Aws::String m_type;
143 bool m_typeHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace ResilienceHub
148} // namespace Aws
CreateAppVersionAppComponentRequest & AddAdditionalInfo(AdditionalInfoKeyT &&key, AdditionalInfoValueT &&value)
CreateAppVersionAppComponentRequest & WithClientToken(ClientTokenT &&value)
CreateAppVersionAppComponentRequest & WithAppArn(AppArnT &&value)
AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override
AWS_RESILIENCEHUB_API CreateAppVersionAppComponentRequest()=default
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetAdditionalInfo() const
CreateAppVersionAppComponentRequest & WithAdditionalInfo(AdditionalInfoT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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