AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
CreateDeploymentRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/greengrass/GreengrassRequest.h>
9#include <aws/greengrass/Greengrass_EXPORTS.h>
10#include <aws/greengrass/model/DeploymentType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Greengrass {
16namespace Model {
17
21 public:
22 AWS_GREENGRASS_API CreateDeploymentRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateDeployment"; }
29
30 AWS_GREENGRASS_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetAmznClientToken() const { return m_amznClientToken; }
39 inline bool AmznClientTokenHasBeenSet() const { return m_amznClientTokenHasBeenSet; }
40 template <typename AmznClientTokenT = Aws::String>
41 void SetAmznClientToken(AmznClientTokenT&& value) {
42 m_amznClientTokenHasBeenSet = true;
43 m_amznClientToken = std::forward<AmznClientTokenT>(value);
44 }
45 template <typename AmznClientTokenT = Aws::String>
46 CreateDeploymentRequest& WithAmznClientToken(AmznClientTokenT&& value) {
47 SetAmznClientToken(std::forward<AmznClientTokenT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetDeploymentId() const { return m_deploymentId; }
57 inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
58 template <typename DeploymentIdT = Aws::String>
59 void SetDeploymentId(DeploymentIdT&& value) {
60 m_deploymentIdHasBeenSet = true;
61 m_deploymentId = std::forward<DeploymentIdT>(value);
62 }
63 template <typename DeploymentIdT = Aws::String>
64 CreateDeploymentRequest& WithDeploymentId(DeploymentIdT&& value) {
65 SetDeploymentId(std::forward<DeploymentIdT>(value));
66 return *this;
67 }
69
71
75 inline DeploymentType GetDeploymentType() const { return m_deploymentType; }
76 inline bool DeploymentTypeHasBeenSet() const { return m_deploymentTypeHasBeenSet; }
77 inline void SetDeploymentType(DeploymentType value) {
78 m_deploymentTypeHasBeenSet = true;
79 m_deploymentType = value;
80 }
82 SetDeploymentType(value);
83 return *this;
84 }
86
88
91 inline const Aws::String& GetGroupId() const { return m_groupId; }
92 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
93 template <typename GroupIdT = Aws::String>
94 void SetGroupId(GroupIdT&& value) {
95 m_groupIdHasBeenSet = true;
96 m_groupId = std::forward<GroupIdT>(value);
97 }
98 template <typename GroupIdT = Aws::String>
100 SetGroupId(std::forward<GroupIdT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::String& GetGroupVersionId() const { return m_groupVersionId; }
110 inline bool GroupVersionIdHasBeenSet() const { return m_groupVersionIdHasBeenSet; }
111 template <typename GroupVersionIdT = Aws::String>
112 void SetGroupVersionId(GroupVersionIdT&& value) {
113 m_groupVersionIdHasBeenSet = true;
114 m_groupVersionId = std::forward<GroupVersionIdT>(value);
115 }
116 template <typename GroupVersionIdT = Aws::String>
117 CreateDeploymentRequest& WithGroupVersionId(GroupVersionIdT&& value) {
118 SetGroupVersionId(std::forward<GroupVersionIdT>(value));
119 return *this;
120 }
122 private:
123 Aws::String m_amznClientToken;
124
125 Aws::String m_deploymentId;
126
127 DeploymentType m_deploymentType{DeploymentType::NOT_SET};
128
129 Aws::String m_groupId;
130
131 Aws::String m_groupVersionId;
132 bool m_amznClientTokenHasBeenSet = false;
133 bool m_deploymentIdHasBeenSet = false;
134 bool m_deploymentTypeHasBeenSet = false;
135 bool m_groupIdHasBeenSet = false;
136 bool m_groupVersionIdHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace Greengrass
141} // namespace Aws
CreateDeploymentRequest & WithDeploymentId(DeploymentIdT &&value)
CreateDeploymentRequest & WithAmznClientToken(AmznClientTokenT &&value)
virtual const char * GetServiceRequestName() const override
AWS_GREENGRASS_API CreateDeploymentRequest()=default
AWS_GREENGRASS_API Aws::String SerializePayload() const override
CreateDeploymentRequest & WithDeploymentType(DeploymentType value)
CreateDeploymentRequest & WithGroupId(GroupIdT &&value)
CreateDeploymentRequest & WithGroupVersionId(GroupVersionIdT &&value)
AWS_GREENGRASS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String