AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
GetResourceRequest.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
12namespace Aws
13{
14namespace CloudControlApi
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_CLOUDCONTROLAPI_API GetResourceRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "GetResource"; }
31
32 AWS_CLOUDCONTROLAPI_API Aws::String SerializePayload() const override;
33
34 AWS_CLOUDCONTROLAPI_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
36
38
41 inline const Aws::String& GetTypeName() const { return m_typeName; }
42 inline bool TypeNameHasBeenSet() const { return m_typeNameHasBeenSet; }
43 template<typename TypeNameT = Aws::String>
44 void SetTypeName(TypeNameT&& value) { m_typeNameHasBeenSet = true; m_typeName = std::forward<TypeNameT>(value); }
45 template<typename TypeNameT = Aws::String>
46 GetResourceRequest& WithTypeName(TypeNameT&& value) { SetTypeName(std::forward<TypeNameT>(value)); return *this;}
48
50
55 inline const Aws::String& GetTypeVersionId() const { return m_typeVersionId; }
56 inline bool TypeVersionIdHasBeenSet() const { return m_typeVersionIdHasBeenSet; }
57 template<typename TypeVersionIdT = Aws::String>
58 void SetTypeVersionId(TypeVersionIdT&& value) { m_typeVersionIdHasBeenSet = true; m_typeVersionId = std::forward<TypeVersionIdT>(value); }
59 template<typename TypeVersionIdT = Aws::String>
60 GetResourceRequest& WithTypeVersionId(TypeVersionIdT&& value) { SetTypeVersionId(std::forward<TypeVersionIdT>(value)); return *this;}
62
64
79 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
80 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
81 template<typename RoleArnT = Aws::String>
82 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
83 template<typename RoleArnT = Aws::String>
84 GetResourceRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
86
88
102 inline const Aws::String& GetIdentifier() const { return m_identifier; }
103 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
104 template<typename IdentifierT = Aws::String>
105 void SetIdentifier(IdentifierT&& value) { m_identifierHasBeenSet = true; m_identifier = std::forward<IdentifierT>(value); }
106 template<typename IdentifierT = Aws::String>
107 GetResourceRequest& WithIdentifier(IdentifierT&& value) { SetIdentifier(std::forward<IdentifierT>(value)); return *this;}
109 private:
110
111 Aws::String m_typeName;
112 bool m_typeNameHasBeenSet = false;
113
114 Aws::String m_typeVersionId;
115 bool m_typeVersionIdHasBeenSet = false;
116
117 Aws::String m_roleArn;
118 bool m_roleArnHasBeenSet = false;
119
120 Aws::String m_identifier;
121 bool m_identifierHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace CloudControlApi
126} // 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