AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DescribeInstancePatchStatesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ssm/SSMRequest.h>
10#include <aws/ssm/SSM_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace SSM {
16namespace Model {
17
21 public:
22 AWS_SSM_API DescribeInstancePatchStatesRequest() = 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 "DescribeInstancePatchStates"; }
29
30 AWS_SSM_API Aws::String SerializePayload() const override;
31
33
35
39 inline const Aws::Vector<Aws::String>& GetInstanceIds() const { return m_instanceIds; }
40 inline bool InstanceIdsHasBeenSet() const { return m_instanceIdsHasBeenSet; }
41 template <typename InstanceIdsT = Aws::Vector<Aws::String>>
42 void SetInstanceIds(InstanceIdsT&& value) {
43 m_instanceIdsHasBeenSet = true;
44 m_instanceIds = std::forward<InstanceIdsT>(value);
45 }
46 template <typename InstanceIdsT = Aws::Vector<Aws::String>>
48 SetInstanceIds(std::forward<InstanceIdsT>(value));
49 return *this;
50 }
51 template <typename InstanceIdsT = Aws::String>
53 m_instanceIdsHasBeenSet = true;
54 m_instanceIds.emplace_back(std::forward<InstanceIdsT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::String& GetNextToken() const { return m_nextToken; }
65 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
66 template <typename NextTokenT = Aws::String>
67 void SetNextToken(NextTokenT&& value) {
68 m_nextTokenHasBeenSet = true;
69 m_nextToken = std::forward<NextTokenT>(value);
70 }
71 template <typename NextTokenT = Aws::String>
73 SetNextToken(std::forward<NextTokenT>(value));
74 return *this;
75 }
77
79
82 inline int GetMaxResults() const { return m_maxResults; }
83 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
84 inline void SetMaxResults(int value) {
85 m_maxResultsHasBeenSet = true;
86 m_maxResults = value;
87 }
89 SetMaxResults(value);
90 return *this;
91 }
93 private:
94 Aws::Vector<Aws::String> m_instanceIds;
95
96 Aws::String m_nextToken;
97
98 int m_maxResults{0};
99 bool m_instanceIdsHasBeenSet = false;
100 bool m_nextTokenHasBeenSet = false;
101 bool m_maxResultsHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace SSM
106} // namespace Aws
DescribeInstancePatchStatesRequest & WithMaxResults(int value)
DescribeInstancePatchStatesRequest & WithNextToken(NextTokenT &&value)
AWS_SSM_API Aws::String SerializePayload() const override
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeInstancePatchStatesRequest & WithInstanceIds(InstanceIdsT &&value)
DescribeInstancePatchStatesRequest & AddInstanceIds(InstanceIdsT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector