AWS SDK for C++  1.8.129
AWS SDK for C++
GetDeployablePatchSnapshotForInstanceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ssm/SSM_EXPORTS.h>
8 #include <aws/ssm/SSMRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace SSM
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 "GetDeployablePatchSnapshotForInstance"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
41  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
42 
47  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
48 
53  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
54 
59  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
60 
65  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
66 
71  inline GetDeployablePatchSnapshotForInstanceRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
72 
77  inline GetDeployablePatchSnapshotForInstanceRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
78 
83  inline GetDeployablePatchSnapshotForInstanceRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
84 
85 
89  inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
90 
94  inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
95 
99  inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
100 
104  inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); }
105 
109  inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
110 
114  inline GetDeployablePatchSnapshotForInstanceRequest& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
115 
119  inline GetDeployablePatchSnapshotForInstanceRequest& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
120 
124  inline GetDeployablePatchSnapshotForInstanceRequest& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
125 
126  private:
127 
128  Aws::String m_instanceId;
129  bool m_instanceIdHasBeenSet;
130 
131  Aws::String m_snapshotId;
132  bool m_snapshotIdHasBeenSet;
133  };
134 
135 } // namespace Model
136 } // namespace SSM
137 } // namespace Aws
Aws::SSM::Model::GetDeployablePatchSnapshotForInstanceRequest::WithSnapshotId
GetDeployablePatchSnapshotForInstanceRequest & WithSnapshotId(const Aws::String &value)
Definition: GetDeployablePatchSnapshotForInstanceRequest.h:114
Aws::SSM::Model::GetDeployablePatchSnapshotForInstanceRequest
Definition: GetDeployablePatchSnapshotForInstanceRequest.h:22
Aws::SSM::Model::GetDeployablePatchSnapshotForInstanceRequest::GetSnapshotId
const Aws::String & GetSnapshotId() const
Definition: GetDeployablePatchSnapshotForInstanceRequest.h:89
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
AWS_SSM_API
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:28
Aws::SSM::Model::GetDeployablePatchSnapshotForInstanceRequest::WithInstanceId
GetDeployablePatchSnapshotForInstanceRequest & WithInstanceId(const char *value)
Definition: GetDeployablePatchSnapshotForInstanceRequest.h:83
Aws::SSM::Model::GetDeployablePatchSnapshotForInstanceRequest::WithSnapshotId
GetDeployablePatchSnapshotForInstanceRequest & WithSnapshotId(Aws::String &&value)
Definition: GetDeployablePatchSnapshotForInstanceRequest.h:119
Aws::SSM::Model::GetDeployablePatchSnapshotForInstanceRequest::WithSnapshotId
GetDeployablePatchSnapshotForInstanceRequest & WithSnapshotId(const char *value)
Definition: GetDeployablePatchSnapshotForInstanceRequest.h:124
Aws::SSM::Model::GetDeployablePatchSnapshotForInstanceRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: GetDeployablePatchSnapshotForInstanceRequest.h:41
Aws::SSM::Model::GetDeployablePatchSnapshotForInstanceRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: GetDeployablePatchSnapshotForInstanceRequest.h:59
SSM_EXPORTS.h
Aws::SSM::Model::GetDeployablePatchSnapshotForInstanceRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: GetDeployablePatchSnapshotForInstanceRequest.h:65
Aws::SSM::Model::GetDeployablePatchSnapshotForInstanceRequest::GetDeployablePatchSnapshotForInstanceRequest
GetDeployablePatchSnapshotForInstanceRequest()
Aws::SSM::Model::GetDeployablePatchSnapshotForInstanceRequest::SetSnapshotId
void SetSnapshotId(Aws::String &&value)
Definition: GetDeployablePatchSnapshotForInstanceRequest.h:104
Aws::SSM::Model::GetDeployablePatchSnapshotForInstanceRequest::SetSnapshotId
void SetSnapshotId(const Aws::String &value)
Definition: GetDeployablePatchSnapshotForInstanceRequest.h:99
Aws::SSM::Model::GetDeployablePatchSnapshotForInstanceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SSM::Model::GetDeployablePatchSnapshotForInstanceRequest::SetSnapshotId
void SetSnapshotId(const char *value)
Definition: GetDeployablePatchSnapshotForInstanceRequest.h:109
Aws::SSM::Model::GetDeployablePatchSnapshotForInstanceRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWSString.h
Aws::SMS::Model::AppValidationStrategy::NOT_SET
@ NOT_SET
Aws::SSM::Model::GetDeployablePatchSnapshotForInstanceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetDeployablePatchSnapshotForInstanceRequest.h:30
Aws::SSM::Model::GetDeployablePatchSnapshotForInstanceRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: GetDeployablePatchSnapshotForInstanceRequest.h:47
Aws::SSM::Model::GetDeployablePatchSnapshotForInstanceRequest::SnapshotIdHasBeenSet
bool SnapshotIdHasBeenSet() const
Definition: GetDeployablePatchSnapshotForInstanceRequest.h:94
Aws::SSM::Model::GetDeployablePatchSnapshotForInstanceRequest::WithInstanceId
GetDeployablePatchSnapshotForInstanceRequest & WithInstanceId(Aws::String &&value)
Definition: GetDeployablePatchSnapshotForInstanceRequest.h:77
Aws
Definition: AccessManagementClient.h:15
Aws::SSM::Model::GetDeployablePatchSnapshotForInstanceRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: GetDeployablePatchSnapshotForInstanceRequest.h:53
Aws::SSM::Model::GetDeployablePatchSnapshotForInstanceRequest::WithInstanceId
GetDeployablePatchSnapshotForInstanceRequest & WithInstanceId(const Aws::String &value)
Definition: GetDeployablePatchSnapshotForInstanceRequest.h:71
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SSM::SSMRequest
Definition: SSMRequest.h:17
SSMRequest.h