AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateResourceRequest.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 CreateResourceRequest();
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 "CreateResource"; }
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 inline void SetTypeName(const Aws::String& value) { m_typeNameHasBeenSet = true; m_typeName = value; }
45 inline void SetTypeName(Aws::String&& value) { m_typeNameHasBeenSet = true; m_typeName = std::move(value); }
46 inline void SetTypeName(const char* value) { m_typeNameHasBeenSet = true; m_typeName.assign(value); }
47 inline CreateResourceRequest& WithTypeName(const Aws::String& value) { SetTypeName(value); return *this;}
48 inline CreateResourceRequest& WithTypeName(Aws::String&& value) { SetTypeName(std::move(value)); return *this;}
49 inline CreateResourceRequest& WithTypeName(const char* value) { SetTypeName(value); return *this;}
51
53
58 inline const Aws::String& GetTypeVersionId() const{ return m_typeVersionId; }
59 inline bool TypeVersionIdHasBeenSet() const { return m_typeVersionIdHasBeenSet; }
60 inline void SetTypeVersionId(const Aws::String& value) { m_typeVersionIdHasBeenSet = true; m_typeVersionId = value; }
61 inline void SetTypeVersionId(Aws::String&& value) { m_typeVersionIdHasBeenSet = true; m_typeVersionId = std::move(value); }
62 inline void SetTypeVersionId(const char* value) { m_typeVersionIdHasBeenSet = true; m_typeVersionId.assign(value); }
63 inline CreateResourceRequest& WithTypeVersionId(const Aws::String& value) { SetTypeVersionId(value); return *this;}
64 inline CreateResourceRequest& WithTypeVersionId(Aws::String&& value) { SetTypeVersionId(std::move(value)); return *this;}
65 inline CreateResourceRequest& WithTypeVersionId(const char* value) { SetTypeVersionId(value); return *this;}
67
69
84 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
85 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
86 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
87 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
88 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
89 inline CreateResourceRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
90 inline CreateResourceRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
91 inline CreateResourceRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
93
95
108 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
109 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
110 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
111 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
112 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
113 inline CreateResourceRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
114 inline CreateResourceRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
115 inline CreateResourceRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
117
119
133 inline const Aws::String& GetDesiredState() const{ return m_desiredState; }
134 inline bool DesiredStateHasBeenSet() const { return m_desiredStateHasBeenSet; }
135 inline void SetDesiredState(const Aws::String& value) { m_desiredStateHasBeenSet = true; m_desiredState = value; }
136 inline void SetDesiredState(Aws::String&& value) { m_desiredStateHasBeenSet = true; m_desiredState = std::move(value); }
137 inline void SetDesiredState(const char* value) { m_desiredStateHasBeenSet = true; m_desiredState.assign(value); }
138 inline CreateResourceRequest& WithDesiredState(const Aws::String& value) { SetDesiredState(value); return *this;}
139 inline CreateResourceRequest& WithDesiredState(Aws::String&& value) { SetDesiredState(std::move(value)); return *this;}
140 inline CreateResourceRequest& WithDesiredState(const char* value) { SetDesiredState(value); return *this;}
142 private:
143
144 Aws::String m_typeName;
145 bool m_typeNameHasBeenSet = false;
146
147 Aws::String m_typeVersionId;
148 bool m_typeVersionIdHasBeenSet = false;
149
150 Aws::String m_roleArn;
151 bool m_roleArnHasBeenSet = false;
152
153 Aws::String m_clientToken;
154 bool m_clientTokenHasBeenSet = false;
155
156 Aws::String m_desiredState;
157 bool m_desiredStateHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace CloudControlApi
162} // namespace Aws
CreateResourceRequest & WithRoleArn(const char *value)
CreateResourceRequest & WithTypeName(const Aws::String &value)
CreateResourceRequest & WithClientToken(Aws::String &&value)
AWS_CLOUDCONTROLAPI_API Aws::String SerializePayload() const override
CreateResourceRequest & WithTypeVersionId(const Aws::String &value)
CreateResourceRequest & WithClientToken(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateResourceRequest & WithTypeVersionId(const char *value)
CreateResourceRequest & WithClientToken(const char *value)
CreateResourceRequest & WithTypeName(Aws::String &&value)
CreateResourceRequest & WithDesiredState(const Aws::String &value)
CreateResourceRequest & WithRoleArn(const Aws::String &value)
CreateResourceRequest & WithRoleArn(Aws::String &&value)
CreateResourceRequest & WithTypeName(const char *value)
CreateResourceRequest & WithTypeVersionId(Aws::String &&value)
CreateResourceRequest & WithDesiredState(Aws::String &&value)
AWS_CLOUDCONTROLAPI_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateResourceRequest & WithDesiredState(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String