AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeMaintenanceWindowScheduleRequest.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/MaintenanceWindowResourceType.h>
12#include <aws/ssm/model/Target.h>
13#include <aws/ssm/model/PatchOrchestratorFilter.h>
14#include <utility>
15
16namespace Aws
17{
18namespace SSM
19{
20namespace Model
21{
22
26 {
27 public:
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "DescribeMaintenanceWindowSchedule"; }
35
36 AWS_SSM_API Aws::String SerializePayload() const override;
37
39
40
42
45 inline const Aws::String& GetWindowId() const{ return m_windowId; }
46 inline bool WindowIdHasBeenSet() const { return m_windowIdHasBeenSet; }
47 inline void SetWindowId(const Aws::String& value) { m_windowIdHasBeenSet = true; m_windowId = value; }
48 inline void SetWindowId(Aws::String&& value) { m_windowIdHasBeenSet = true; m_windowId = std::move(value); }
49 inline void SetWindowId(const char* value) { m_windowIdHasBeenSet = true; m_windowId.assign(value); }
51 inline DescribeMaintenanceWindowScheduleRequest& WithWindowId(Aws::String&& value) { SetWindowId(std::move(value)); return *this;}
52 inline DescribeMaintenanceWindowScheduleRequest& WithWindowId(const char* value) { SetWindowId(value); return *this;}
54
56
59 inline const Aws::Vector<Target>& GetTargets() const{ return m_targets; }
60 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
61 inline void SetTargets(const Aws::Vector<Target>& value) { m_targetsHasBeenSet = true; m_targets = value; }
62 inline void SetTargets(Aws::Vector<Target>&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
64 inline DescribeMaintenanceWindowScheduleRequest& WithTargets(Aws::Vector<Target>&& value) { SetTargets(std::move(value)); return *this;}
65 inline DescribeMaintenanceWindowScheduleRequest& AddTargets(const Target& value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; }
66 inline DescribeMaintenanceWindowScheduleRequest& AddTargets(Target&& value) { m_targetsHasBeenSet = true; m_targets.push_back(std::move(value)); return *this; }
68
70
74 inline const MaintenanceWindowResourceType& GetResourceType() const{ return m_resourceType; }
75 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
76 inline void SetResourceType(const MaintenanceWindowResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
77 inline void SetResourceType(MaintenanceWindowResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
81
83
88 inline const Aws::Vector<PatchOrchestratorFilter>& GetFilters() const{ return m_filters; }
89 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
90 inline void SetFilters(const Aws::Vector<PatchOrchestratorFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
91 inline void SetFilters(Aws::Vector<PatchOrchestratorFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
94 inline DescribeMaintenanceWindowScheduleRequest& AddFilters(const PatchOrchestratorFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
95 inline DescribeMaintenanceWindowScheduleRequest& AddFilters(PatchOrchestratorFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
97
99
104 inline int GetMaxResults() const{ return m_maxResults; }
105 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
106 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
109
111
115 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
116 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
117 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
118 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
119 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
121 inline DescribeMaintenanceWindowScheduleRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
122 inline DescribeMaintenanceWindowScheduleRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
124 private:
125
126 Aws::String m_windowId;
127 bool m_windowIdHasBeenSet = false;
128
129 Aws::Vector<Target> m_targets;
130 bool m_targetsHasBeenSet = false;
131
132 MaintenanceWindowResourceType m_resourceType;
133 bool m_resourceTypeHasBeenSet = false;
134
136 bool m_filtersHasBeenSet = false;
137
138 int m_maxResults;
139 bool m_maxResultsHasBeenSet = false;
140
141 Aws::String m_nextToken;
142 bool m_nextTokenHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace SSM
147} // namespace Aws
DescribeMaintenanceWindowScheduleRequest & WithResourceType(MaintenanceWindowResourceType &&value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeMaintenanceWindowScheduleRequest & WithFilters(const Aws::Vector< PatchOrchestratorFilter > &value)
DescribeMaintenanceWindowScheduleRequest & AddFilters(const PatchOrchestratorFilter &value)
void SetFilters(const Aws::Vector< PatchOrchestratorFilter > &value)
DescribeMaintenanceWindowScheduleRequest & WithTargets(Aws::Vector< Target > &&value)
DescribeMaintenanceWindowScheduleRequest & WithNextToken(const char *value)
AWS_SSM_API Aws::String SerializePayload() const override
DescribeMaintenanceWindowScheduleRequest & WithResourceType(const MaintenanceWindowResourceType &value)
DescribeMaintenanceWindowScheduleRequest & WithWindowId(Aws::String &&value)
DescribeMaintenanceWindowScheduleRequest & AddTargets(const Target &value)
DescribeMaintenanceWindowScheduleRequest & AddFilters(PatchOrchestratorFilter &&value)
const Aws::Vector< PatchOrchestratorFilter > & GetFilters() const
DescribeMaintenanceWindowScheduleRequest & WithTargets(const Aws::Vector< Target > &value)
DescribeMaintenanceWindowScheduleRequest & WithNextToken(const Aws::String &value)
DescribeMaintenanceWindowScheduleRequest & WithNextToken(Aws::String &&value)
DescribeMaintenanceWindowScheduleRequest & AddTargets(Target &&value)
DescribeMaintenanceWindowScheduleRequest & WithFilters(Aws::Vector< PatchOrchestratorFilter > &&value)
DescribeMaintenanceWindowScheduleRequest & WithWindowId(const Aws::String &value)
DescribeMaintenanceWindowScheduleRequest & WithWindowId(const char *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