AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateDeploymentRequest.h
1
6#pragma once
7#include <aws/greengrass/Greengrass_EXPORTS.h>
8#include <aws/greengrass/GreengrassRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/greengrass/model/DeploymentType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Greengrass
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_GREENGRASS_API CreateDeploymentRequest() = 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 "CreateDeployment"; }
32
33 AWS_GREENGRASS_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetAmznClientToken() const { return m_amznClientToken; }
43 inline bool AmznClientTokenHasBeenSet() const { return m_amznClientTokenHasBeenSet; }
44 template<typename AmznClientTokenT = Aws::String>
45 void SetAmznClientToken(AmznClientTokenT&& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = std::forward<AmznClientTokenT>(value); }
46 template<typename AmznClientTokenT = Aws::String>
47 CreateDeploymentRequest& WithAmznClientToken(AmznClientTokenT&& value) { SetAmznClientToken(std::forward<AmznClientTokenT>(value)); return *this;}
49
51
54 inline const Aws::String& GetDeploymentId() const { return m_deploymentId; }
55 inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
56 template<typename DeploymentIdT = Aws::String>
57 void SetDeploymentId(DeploymentIdT&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::forward<DeploymentIdT>(value); }
58 template<typename DeploymentIdT = Aws::String>
59 CreateDeploymentRequest& WithDeploymentId(DeploymentIdT&& value) { SetDeploymentId(std::forward<DeploymentIdT>(value)); return *this;}
61
63
67 inline DeploymentType GetDeploymentType() const { return m_deploymentType; }
68 inline bool DeploymentTypeHasBeenSet() const { return m_deploymentTypeHasBeenSet; }
69 inline void SetDeploymentType(DeploymentType value) { m_deploymentTypeHasBeenSet = true; m_deploymentType = value; }
72
74
77 inline const Aws::String& GetGroupId() const { return m_groupId; }
78 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
79 template<typename GroupIdT = Aws::String>
80 void SetGroupId(GroupIdT&& value) { m_groupIdHasBeenSet = true; m_groupId = std::forward<GroupIdT>(value); }
81 template<typename GroupIdT = Aws::String>
82 CreateDeploymentRequest& WithGroupId(GroupIdT&& value) { SetGroupId(std::forward<GroupIdT>(value)); return *this;}
84
86
89 inline const Aws::String& GetGroupVersionId() const { return m_groupVersionId; }
90 inline bool GroupVersionIdHasBeenSet() const { return m_groupVersionIdHasBeenSet; }
91 template<typename GroupVersionIdT = Aws::String>
92 void SetGroupVersionId(GroupVersionIdT&& value) { m_groupVersionIdHasBeenSet = true; m_groupVersionId = std::forward<GroupVersionIdT>(value); }
93 template<typename GroupVersionIdT = Aws::String>
94 CreateDeploymentRequest& WithGroupVersionId(GroupVersionIdT&& value) { SetGroupVersionId(std::forward<GroupVersionIdT>(value)); return *this;}
96 private:
97
98 Aws::String m_amznClientToken;
99 bool m_amznClientTokenHasBeenSet = false;
100
101 Aws::String m_deploymentId;
102 bool m_deploymentIdHasBeenSet = false;
103
104 DeploymentType m_deploymentType{DeploymentType::NOT_SET};
105 bool m_deploymentTypeHasBeenSet = false;
106
107 Aws::String m_groupId;
108 bool m_groupIdHasBeenSet = false;
109
110 Aws::String m_groupVersionId;
111 bool m_groupVersionIdHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace Greengrass
116} // 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