AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = 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 "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 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 CreateResourceRequest& 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 CreateResourceRequest& 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 CreateResourceRequest& 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 CreateResourceRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
109
111
125 inline const Aws::String& GetDesiredState() const { return m_desiredState; }
126 inline bool DesiredStateHasBeenSet() const { return m_desiredStateHasBeenSet; }
127 template<typename DesiredStateT = Aws::String>
128 void SetDesiredState(DesiredStateT&& value) { m_desiredStateHasBeenSet = true; m_desiredState = std::forward<DesiredStateT>(value); }
129 template<typename DesiredStateT = Aws::String>
130 CreateResourceRequest& WithDesiredState(DesiredStateT&& value) { SetDesiredState(std::forward<DesiredStateT>(value)); return *this;}
132 private:
133
134 Aws::String m_typeName;
135 bool m_typeNameHasBeenSet = false;
136
137 Aws::String m_typeVersionId;
138 bool m_typeVersionIdHasBeenSet = false;
139
140 Aws::String m_roleArn;
141 bool m_roleArnHasBeenSet = false;
142
144 bool m_clientTokenHasBeenSet = true;
145
146 Aws::String m_desiredState;
147 bool m_desiredStateHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace CloudControlApi
152} // namespace Aws
AWS_CLOUDCONTROLAPI_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
AWS_CLOUDCONTROLAPI_API CreateResourceRequest()=default
CreateResourceRequest & WithTypeVersionId(TypeVersionIdT &&value)
CreateResourceRequest & WithTypeName(TypeNameT &&value)
CreateResourceRequest & WithRoleArn(RoleArnT &&value)
CreateResourceRequest & WithClientToken(ClientTokenT &&value)
CreateResourceRequest & WithDesiredState(DesiredStateT &&value)
AWS_CLOUDCONTROLAPI_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String