AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetTypeName(const Aws::String& value) { m_typeNameHasBeenSet = true; m_typeName = value; }
44 inline void SetTypeName(Aws::String&& value) { m_typeNameHasBeenSet = true; m_typeName = std::move(value); }
45 inline void SetTypeName(const char* value) { m_typeNameHasBeenSet = true; m_typeName.assign(value); }
46 inline GetResourceRequest& WithTypeName(const Aws::String& value) { SetTypeName(value); return *this;}
47 inline GetResourceRequest& WithTypeName(Aws::String&& value) { SetTypeName(std::move(value)); return *this;}
48 inline GetResourceRequest& WithTypeName(const char* value) { SetTypeName(value); return *this;}
50
52
57 inline const Aws::String& GetTypeVersionId() const{ return m_typeVersionId; }
58 inline bool TypeVersionIdHasBeenSet() const { return m_typeVersionIdHasBeenSet; }
59 inline void SetTypeVersionId(const Aws::String& value) { m_typeVersionIdHasBeenSet = true; m_typeVersionId = value; }
60 inline void SetTypeVersionId(Aws::String&& value) { m_typeVersionIdHasBeenSet = true; m_typeVersionId = std::move(value); }
61 inline void SetTypeVersionId(const char* value) { m_typeVersionIdHasBeenSet = true; m_typeVersionId.assign(value); }
62 inline GetResourceRequest& WithTypeVersionId(const Aws::String& value) { SetTypeVersionId(value); return *this;}
63 inline GetResourceRequest& WithTypeVersionId(Aws::String&& value) { SetTypeVersionId(std::move(value)); return *this;}
64 inline GetResourceRequest& WithTypeVersionId(const char* value) { SetTypeVersionId(value); return *this;}
66
68
83 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
84 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
85 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
86 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
87 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
88 inline GetResourceRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
89 inline GetResourceRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
90 inline GetResourceRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
92
94
108 inline const Aws::String& GetIdentifier() const{ return m_identifier; }
109 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
110 inline void SetIdentifier(const Aws::String& value) { m_identifierHasBeenSet = true; m_identifier = value; }
111 inline void SetIdentifier(Aws::String&& value) { m_identifierHasBeenSet = true; m_identifier = std::move(value); }
112 inline void SetIdentifier(const char* value) { m_identifierHasBeenSet = true; m_identifier.assign(value); }
113 inline GetResourceRequest& WithIdentifier(const Aws::String& value) { SetIdentifier(value); return *this;}
114 inline GetResourceRequest& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;}
115 inline GetResourceRequest& WithIdentifier(const char* value) { SetIdentifier(value); return *this;}
117 private:
118
119 Aws::String m_typeName;
120 bool m_typeNameHasBeenSet = false;
121
122 Aws::String m_typeVersionId;
123 bool m_typeVersionIdHasBeenSet = false;
124
125 Aws::String m_roleArn;
126 bool m_roleArnHasBeenSet = false;
127
128 Aws::String m_identifier;
129 bool m_identifierHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace CloudControlApi
134} // namespace Aws
GetResourceRequest & WithTypeName(Aws::String &&value)
GetResourceRequest & WithTypeVersionId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
GetResourceRequest & WithTypeVersionId(Aws::String &&value)
GetResourceRequest & WithIdentifier(Aws::String &&value)
GetResourceRequest & WithTypeName(const Aws::String &value)
GetResourceRequest & WithRoleArn(const char *value)
AWS_CLOUDCONTROLAPI_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetResourceRequest & WithTypeName(const char *value)
GetResourceRequest & WithRoleArn(Aws::String &&value)
AWS_CLOUDCONTROLAPI_API Aws::String SerializePayload() const override
GetResourceRequest & WithRoleArn(const Aws::String &value)
GetResourceRequest & WithTypeVersionId(const char *value)
GetResourceRequest & WithIdentifier(const Aws::String &value)
GetResourceRequest & WithIdentifier(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String