AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeInstancePatchesRequest.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/ssm/SSMRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ssm/model/PatchOrchestratorFilter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SSM
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "DescribeInstancePatches"; }
33
34 AWS_SSM_API Aws::String SerializePayload() const override;
35
37
38
40
44 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
45 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
46 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
47 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
48 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
49 inline DescribeInstancePatchesRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
50 inline DescribeInstancePatchesRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
51 inline DescribeInstancePatchesRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
53
55
71 inline const Aws::Vector<PatchOrchestratorFilter>& GetFilters() const{ return m_filters; }
72 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
73 inline void SetFilters(const Aws::Vector<PatchOrchestratorFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
74 inline void SetFilters(Aws::Vector<PatchOrchestratorFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
77 inline DescribeInstancePatchesRequest& AddFilters(const PatchOrchestratorFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
78 inline DescribeInstancePatchesRequest& AddFilters(PatchOrchestratorFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
80
82
86 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
87 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
88 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
89 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
90 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
91 inline DescribeInstancePatchesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
92 inline DescribeInstancePatchesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
93 inline DescribeInstancePatchesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
95
97
100 inline int GetMaxResults() const{ return m_maxResults; }
101 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
102 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
103 inline DescribeInstancePatchesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
105 private:
106
107 Aws::String m_instanceId;
108 bool m_instanceIdHasBeenSet = false;
109
111 bool m_filtersHasBeenSet = false;
112
113 Aws::String m_nextToken;
114 bool m_nextTokenHasBeenSet = false;
115
116 int m_maxResults;
117 bool m_maxResultsHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace SSM
122} // namespace Aws
virtual const char * GetServiceRequestName() const override
DescribeInstancePatchesRequest & AddFilters(const PatchOrchestratorFilter &value)
void SetFilters(Aws::Vector< PatchOrchestratorFilter > &&value)
DescribeInstancePatchesRequest & AddFilters(PatchOrchestratorFilter &&value)
DescribeInstancePatchesRequest & WithFilters(const Aws::Vector< PatchOrchestratorFilter > &value)
AWS_SSM_API Aws::String SerializePayload() const override
DescribeInstancePatchesRequest & WithInstanceId(const Aws::String &value)
DescribeInstancePatchesRequest & WithInstanceId(Aws::String &&value)
DescribeInstancePatchesRequest & WithFilters(Aws::Vector< PatchOrchestratorFilter > &&value)
const Aws::Vector< PatchOrchestratorFilter > & GetFilters() const
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeInstancePatchesRequest & WithNextToken(const char *value)
DescribeInstancePatchesRequest & WithNextToken(Aws::String &&value)
DescribeInstancePatchesRequest & WithNextToken(const Aws::String &value)
DescribeInstancePatchesRequest & WithInstanceId(const char *value)
DescribeInstancePatchesRequest & WithMaxResults(int value)
void SetFilters(const Aws::Vector< PatchOrchestratorFilter > &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