AWS SDK for C++  1.9.123
AWS SDK for C++
GetDeploymentRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace GreengrassV2
15 {
16 namespace Model
17 {
18 
22  {
23  public:
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 "GetDeployment"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
38  inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; }
39 
43  inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
44 
48  inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
49 
53  inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); }
54 
58  inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); }
59 
63  inline GetDeploymentRequest& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
64 
68  inline GetDeploymentRequest& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;}
69 
73  inline GetDeploymentRequest& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
74 
75  private:
76 
77  Aws::String m_deploymentId;
78  bool m_deploymentIdHasBeenSet;
79  };
80 
81 } // namespace Model
82 } // namespace GreengrassV2
83 } // namespace Aws
Aws::GreengrassV2::Model::GetDeploymentRequest::GetDeploymentId
const Aws::String & GetDeploymentId() const
Definition: GetDeploymentRequest.h:38
Aws::GreengrassV2::Model::GetDeploymentRequest::SetDeploymentId
void SetDeploymentId(Aws::String &&value)
Definition: GetDeploymentRequest.h:53
Aws::GreengrassV2::Model::GetDeploymentRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetDeploymentRequest.h:30
GreengrassV2Request.h
Aws::GreengrassV2::Model::GetDeploymentRequest::SetDeploymentId
void SetDeploymentId(const Aws::String &value)
Definition: GetDeploymentRequest.h:48
GreengrassV2_EXPORTS.h
AWS_GREENGRASSV2_API
#define AWS_GREENGRASSV2_API
Definition: GreengrassV2_EXPORTS.h:28
Aws::GreengrassV2::Model::GetDeploymentRequest
Definition: GetDeploymentRequest.h:22
Aws::GreengrassV2::Model::GetDeploymentRequest::WithDeploymentId
GetDeploymentRequest & WithDeploymentId(const Aws::String &value)
Definition: GetDeploymentRequest.h:63
Aws::GreengrassV2::Model::GetDeploymentRequest::GetDeploymentRequest
GetDeploymentRequest()
Aws::GreengrassV2::GreengrassV2Request
Definition: GreengrassV2Request.h:17
AWSString.h
Aws::GreengrassV2::Model::GetDeploymentRequest::WithDeploymentId
GetDeploymentRequest & WithDeploymentId(const char *value)
Definition: GetDeploymentRequest.h:73
Aws
Definition: AccessManagementClient.h:15
Aws::GreengrassV2::Model::GetDeploymentRequest::DeploymentIdHasBeenSet
bool DeploymentIdHasBeenSet() const
Definition: GetDeploymentRequest.h:43
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GreengrassV2::Model::GetDeploymentRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::GreengrassV2::Model::GetDeploymentRequest::SetDeploymentId
void SetDeploymentId(const char *value)
Definition: GetDeploymentRequest.h:58
Aws::GreengrassV2::Model::GetDeploymentRequest::WithDeploymentId
GetDeploymentRequest & WithDeploymentId(Aws::String &&value)
Definition: GetDeploymentRequest.h:68