AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetResourceRequest.h
1
6#pragma once
7#include <aws/cloudcontrol/CloudControlApiRequest.h>
8#include <aws/cloudcontrol/CloudControlApi_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace CloudControlApi {
15namespace Model {
16
20 public:
21 AWS_CLOUDCONTROLAPI_API GetResourceRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "GetResource"; }
28
29 AWS_CLOUDCONTROLAPI_API Aws::String SerializePayload() const override;
30
31 AWS_CLOUDCONTROLAPI_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
34
37 inline const Aws::String& GetTypeName() const { return m_typeName; }
38 inline bool TypeNameHasBeenSet() const { return m_typeNameHasBeenSet; }
39 template <typename TypeNameT = Aws::String>
40 void SetTypeName(TypeNameT&& value) {
41 m_typeNameHasBeenSet = true;
42 m_typeName = std::forward<TypeNameT>(value);
43 }
44 template <typename TypeNameT = Aws::String>
45 GetResourceRequest& WithTypeName(TypeNameT&& value) {
46 SetTypeName(std::forward<TypeNameT>(value));
47 return *this;
48 }
50
52
57 inline const Aws::String& GetTypeVersionId() const { return m_typeVersionId; }
58 inline bool TypeVersionIdHasBeenSet() const { return m_typeVersionIdHasBeenSet; }
59 template <typename TypeVersionIdT = Aws::String>
60 void SetTypeVersionId(TypeVersionIdT&& value) {
61 m_typeVersionIdHasBeenSet = true;
62 m_typeVersionId = std::forward<TypeVersionIdT>(value);
63 }
64 template <typename TypeVersionIdT = Aws::String>
65 GetResourceRequest& WithTypeVersionId(TypeVersionIdT&& value) {
66 SetTypeVersionId(std::forward<TypeVersionIdT>(value));
67 return *this;
68 }
70
72
87 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
88 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
89 template <typename RoleArnT = Aws::String>
90 void SetRoleArn(RoleArnT&& value) {
91 m_roleArnHasBeenSet = true;
92 m_roleArn = std::forward<RoleArnT>(value);
93 }
94 template <typename RoleArnT = Aws::String>
95 GetResourceRequest& WithRoleArn(RoleArnT&& value) {
96 SetRoleArn(std::forward<RoleArnT>(value));
97 return *this;
98 }
100
102
116 inline const Aws::String& GetIdentifier() const { return m_identifier; }
117 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
118 template <typename IdentifierT = Aws::String>
119 void SetIdentifier(IdentifierT&& value) {
120 m_identifierHasBeenSet = true;
121 m_identifier = std::forward<IdentifierT>(value);
122 }
123 template <typename IdentifierT = Aws::String>
124 GetResourceRequest& WithIdentifier(IdentifierT&& value) {
125 SetIdentifier(std::forward<IdentifierT>(value));
126 return *this;
127 }
129 private:
130 Aws::String m_typeName;
131
132 Aws::String m_typeVersionId;
133
134 Aws::String m_roleArn;
135
136 Aws::String m_identifier;
137 bool m_typeNameHasBeenSet = false;
138 bool m_typeVersionIdHasBeenSet = false;
139 bool m_roleArnHasBeenSet = false;
140 bool m_identifierHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace CloudControlApi
145} // namespace Aws
GetResourceRequest & WithRoleArn(RoleArnT &&value)
virtual const char * GetServiceRequestName() const override
GetResourceRequest & WithIdentifier(IdentifierT &&value)
AWS_CLOUDCONTROLAPI_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CLOUDCONTROLAPI_API GetResourceRequest()=default
AWS_CLOUDCONTROLAPI_API Aws::String SerializePayload() const override
GetResourceRequest & WithTypeName(TypeNameT &&value)
GetResourceRequest & WithTypeVersionId(TypeVersionIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String