AWS SDK for C++  1.9.131
AWS SDK for C++
DescribeInstancePatchStatesRequest.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>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace SSM
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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 "DescribeInstancePatchStates"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
42  inline const Aws::Vector<Aws::String>& GetInstanceIds() const{ return m_instanceIds; }
43 
48  inline bool InstanceIdsHasBeenSet() const { return m_instanceIdsHasBeenSet; }
49 
54  inline void SetInstanceIds(const Aws::Vector<Aws::String>& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = value; }
55 
60  inline void SetInstanceIds(Aws::Vector<Aws::String>&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = std::move(value); }
61 
66  inline DescribeInstancePatchStatesRequest& WithInstanceIds(const Aws::Vector<Aws::String>& value) { SetInstanceIds(value); return *this;}
67 
72  inline DescribeInstancePatchStatesRequest& WithInstanceIds(Aws::Vector<Aws::String>&& value) { SetInstanceIds(std::move(value)); return *this;}
73 
78  inline DescribeInstancePatchStatesRequest& AddInstanceIds(const Aws::String& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
79 
84  inline DescribeInstancePatchStatesRequest& AddInstanceIds(Aws::String&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(std::move(value)); return *this; }
85 
90  inline DescribeInstancePatchStatesRequest& AddInstanceIds(const char* value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
91 
92 
97  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
98 
103  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
104 
109  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
110 
115  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
116 
121  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
122 
127  inline DescribeInstancePatchStatesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
128 
133  inline DescribeInstancePatchStatesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
134 
139  inline DescribeInstancePatchStatesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
140 
141 
145  inline int GetMaxResults() const{ return m_maxResults; }
146 
150  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
151 
155  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
156 
160  inline DescribeInstancePatchStatesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
161 
162  private:
163 
164  Aws::Vector<Aws::String> m_instanceIds;
165  bool m_instanceIdsHasBeenSet;
166 
167  Aws::String m_nextToken;
168  bool m_nextTokenHasBeenSet;
169 
170  int m_maxResults;
171  bool m_maxResultsHasBeenSet;
172  };
173 
174 } // namespace Model
175 } // namespace SSM
176 } // namespace Aws
Aws::SSM::Model::DescribeInstancePatchStatesRequest::WithNextToken
DescribeInstancePatchStatesRequest & WithNextToken(const Aws::String &value)
Definition: DescribeInstancePatchStatesRequest.h:127
Aws::SSM::Model::DescribeInstancePatchStatesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeInstancePatchStatesRequest.h:109
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::DescribeInstancePatchStatesRequest::AddInstanceIds
DescribeInstancePatchStatesRequest & AddInstanceIds(const Aws::String &value)
Definition: DescribeInstancePatchStatesRequest.h:78
Aws::SSM::Model::DescribeInstancePatchStatesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeInstancePatchStatesRequest.h:97
Aws::SSM::Model::DescribeInstancePatchStatesRequest::InstanceIdsHasBeenSet
bool InstanceIdsHasBeenSet() const
Definition: DescribeInstancePatchStatesRequest.h:48
Aws::SSM::Model::DescribeInstancePatchStatesRequest::SetInstanceIds
void SetInstanceIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeInstancePatchStatesRequest.h:60
Aws::SSM::Model::DescribeInstancePatchStatesRequest::WithNextToken
DescribeInstancePatchStatesRequest & WithNextToken(const char *value)
Definition: DescribeInstancePatchStatesRequest.h:139
Aws::SSM::Model::DescribeInstancePatchStatesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeInstancePatchStatesRequest.h:150
Aws::SSM::Model::DescribeInstancePatchStatesRequest::WithInstanceIds
DescribeInstancePatchStatesRequest & WithInstanceIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeInstancePatchStatesRequest.h:66
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
SSM_EXPORTS.h
Aws::SSM::Model::DescribeInstancePatchStatesRequest::WithInstanceIds
DescribeInstancePatchStatesRequest & WithInstanceIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeInstancePatchStatesRequest.h:72
Aws::SSM::Model::DescribeInstancePatchStatesRequest::WithNextToken
DescribeInstancePatchStatesRequest & WithNextToken(Aws::String &&value)
Definition: DescribeInstancePatchStatesRequest.h:133
Aws::SSM::Model::DescribeInstancePatchStatesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeInstancePatchStatesRequest.h:121
AWSVector.h
Aws::SSM::Model::DescribeInstancePatchStatesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeInstancePatchStatesRequest.h:155
Aws::SSM::Model::DescribeInstancePatchStatesRequest::SetInstanceIds
void SetInstanceIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeInstancePatchStatesRequest.h:54
Aws::SSM::Model::DescribeInstancePatchStatesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SSM::Model::DescribeInstancePatchStatesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeInstancePatchStatesRequest.h:115
Aws::SSM::Model::DescribeInstancePatchStatesRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeInstancePatchStatesRequest.h:145
AWSString.h
Aws::SMS::Model::AppValidationStrategy::NOT_SET
@ NOT_SET
Aws::SSM::Model::DescribeInstancePatchStatesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SSM::Model::DescribeInstancePatchStatesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeInstancePatchStatesRequest.h:103
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SSM::Model::DescribeInstancePatchStatesRequest::GetInstanceIds
const Aws::Vector< Aws::String > & GetInstanceIds() const
Definition: DescribeInstancePatchStatesRequest.h:42
Aws::SSM::Model::DescribeInstancePatchStatesRequest
Definition: DescribeInstancePatchStatesRequest.h:23
Aws::SSM::Model::DescribeInstancePatchStatesRequest::DescribeInstancePatchStatesRequest
DescribeInstancePatchStatesRequest()
Aws::SSM::Model::DescribeInstancePatchStatesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeInstancePatchStatesRequest.h:31
Aws::SSM::Model::DescribeInstancePatchStatesRequest::WithMaxResults
DescribeInstancePatchStatesRequest & WithMaxResults(int value)
Definition: DescribeInstancePatchStatesRequest.h:160
Aws::SSM::Model::DescribeInstancePatchStatesRequest::AddInstanceIds
DescribeInstancePatchStatesRequest & AddInstanceIds(const char *value)
Definition: DescribeInstancePatchStatesRequest.h:90
Aws::SSM::Model::DescribeInstancePatchStatesRequest::AddInstanceIds
DescribeInstancePatchStatesRequest & AddInstanceIds(Aws::String &&value)
Definition: DescribeInstancePatchStatesRequest.h:84
Aws::SSM::SSMRequest
Definition: SSMRequest.h:17
SSMRequest.h