AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateResourceRequest.h
1
6#pragma once
7#include <aws/cloudcontrol/CloudControlApi_EXPORTS.h>
8#include <aws/cloudcontrol/CloudControlApiRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11#include <aws/core/utils/UUID.h>
12
13namespace Aws
14{
15namespace CloudControlApi
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CLOUDCONTROLAPI_API UpdateResourceRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateResource"; }
32
33 AWS_CLOUDCONTROLAPI_API Aws::String SerializePayload() const override;
34
35 AWS_CLOUDCONTROLAPI_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
42 inline const Aws::String& GetTypeName() const { return m_typeName; }
43 inline bool TypeNameHasBeenSet() const { return m_typeNameHasBeenSet; }
44 template<typename TypeNameT = Aws::String>
45 void SetTypeName(TypeNameT&& value) { m_typeNameHasBeenSet = true; m_typeName = std::forward<TypeNameT>(value); }
46 template<typename TypeNameT = Aws::String>
47 UpdateResourceRequest& WithTypeName(TypeNameT&& value) { SetTypeName(std::forward<TypeNameT>(value)); return *this;}
49
51
56 inline const Aws::String& GetTypeVersionId() const { return m_typeVersionId; }
57 inline bool TypeVersionIdHasBeenSet() const { return m_typeVersionIdHasBeenSet; }
58 template<typename TypeVersionIdT = Aws::String>
59 void SetTypeVersionId(TypeVersionIdT&& value) { m_typeVersionIdHasBeenSet = true; m_typeVersionId = std::forward<TypeVersionIdT>(value); }
60 template<typename TypeVersionIdT = Aws::String>
61 UpdateResourceRequest& WithTypeVersionId(TypeVersionIdT&& value) { SetTypeVersionId(std::forward<TypeVersionIdT>(value)); return *this;}
63
65
80 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
81 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
82 template<typename RoleArnT = Aws::String>
83 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
84 template<typename RoleArnT = Aws::String>
85 UpdateResourceRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
87
89
102 inline const Aws::String& GetClientToken() const { return m_clientToken; }
103 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
104 template<typename ClientTokenT = Aws::String>
105 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
106 template<typename ClientTokenT = Aws::String>
107 UpdateResourceRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
109
111
125 inline const Aws::String& GetIdentifier() const { return m_identifier; }
126 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
127 template<typename IdentifierT = Aws::String>
128 void SetIdentifier(IdentifierT&& value) { m_identifierHasBeenSet = true; m_identifier = std::forward<IdentifierT>(value); }
129 template<typename IdentifierT = Aws::String>
130 UpdateResourceRequest& WithIdentifier(IdentifierT&& value) { SetIdentifier(std::forward<IdentifierT>(value)); return *this;}
132
134
142 inline const Aws::String& GetPatchDocument() const { return m_patchDocument; }
143 inline bool PatchDocumentHasBeenSet() const { return m_patchDocumentHasBeenSet; }
144 template<typename PatchDocumentT = Aws::String>
145 void SetPatchDocument(PatchDocumentT&& value) { m_patchDocumentHasBeenSet = true; m_patchDocument = std::forward<PatchDocumentT>(value); }
146 template<typename PatchDocumentT = Aws::String>
147 UpdateResourceRequest& WithPatchDocument(PatchDocumentT&& value) { SetPatchDocument(std::forward<PatchDocumentT>(value)); return *this;}
149 private:
150
151 Aws::String m_typeName;
152 bool m_typeNameHasBeenSet = false;
153
154 Aws::String m_typeVersionId;
155 bool m_typeVersionIdHasBeenSet = false;
156
157 Aws::String m_roleArn;
158 bool m_roleArnHasBeenSet = false;
159
161 bool m_clientTokenHasBeenSet = true;
162
163 Aws::String m_identifier;
164 bool m_identifierHasBeenSet = false;
165
166 Aws::String m_patchDocument;
167 bool m_patchDocumentHasBeenSet = false;
168 };
169
170} // namespace Model
171} // namespace CloudControlApi
172} // namespace Aws
UpdateResourceRequest & WithIdentifier(IdentifierT &&value)
UpdateResourceRequest & WithTypeName(TypeNameT &&value)
UpdateResourceRequest & WithTypeVersionId(TypeVersionIdT &&value)
UpdateResourceRequest & WithRoleArn(RoleArnT &&value)
AWS_CLOUDCONTROLAPI_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
AWS_CLOUDCONTROLAPI_API Aws::String SerializePayload() const override
AWS_CLOUDCONTROLAPI_API UpdateResourceRequest()=default
UpdateResourceRequest & WithClientToken(ClientTokenT &&value)
UpdateResourceRequest & WithPatchDocument(PatchDocumentT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String