AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeInstanceEventWindowsRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ec2/model/Filter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace Model
19{
20
28 {
29 public:
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "DescribeInstanceEventWindows"; }
37
38 AWS_EC2_API Aws::String SerializePayload() const override;
39
40 protected:
41 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42
43 public:
44
46
52 inline bool GetDryRun() const{ return m_dryRun; }
53 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
54 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
55 inline DescribeInstanceEventWindowsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
57
59
62 inline const Aws::Vector<Aws::String>& GetInstanceEventWindowIds() const{ return m_instanceEventWindowIds; }
63 inline bool InstanceEventWindowIdsHasBeenSet() const { return m_instanceEventWindowIdsHasBeenSet; }
64 inline void SetInstanceEventWindowIds(const Aws::Vector<Aws::String>& value) { m_instanceEventWindowIdsHasBeenSet = true; m_instanceEventWindowIds = value; }
65 inline void SetInstanceEventWindowIds(Aws::Vector<Aws::String>&& value) { m_instanceEventWindowIdsHasBeenSet = true; m_instanceEventWindowIds = std::move(value); }
68 inline DescribeInstanceEventWindowsRequest& AddInstanceEventWindowIds(const Aws::String& value) { m_instanceEventWindowIdsHasBeenSet = true; m_instanceEventWindowIds.push_back(value); return *this; }
69 inline DescribeInstanceEventWindowsRequest& AddInstanceEventWindowIds(Aws::String&& value) { m_instanceEventWindowIdsHasBeenSet = true; m_instanceEventWindowIds.push_back(std::move(value)); return *this; }
70 inline DescribeInstanceEventWindowsRequest& AddInstanceEventWindowIds(const char* value) { m_instanceEventWindowIdsHasBeenSet = true; m_instanceEventWindowIds.push_back(value); return *this; }
72
74
97 inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
98 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
99 inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
100 inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
102 inline DescribeInstanceEventWindowsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
103 inline DescribeInstanceEventWindowsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
104 inline DescribeInstanceEventWindowsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
106
108
114 inline int GetMaxResults() const{ return m_maxResults; }
115 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
116 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
117 inline DescribeInstanceEventWindowsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
119
121
124 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
125 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
126 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
127 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
128 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
129 inline DescribeInstanceEventWindowsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
130 inline DescribeInstanceEventWindowsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
131 inline DescribeInstanceEventWindowsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
133 private:
134
135 bool m_dryRun;
136 bool m_dryRunHasBeenSet = false;
137
138 Aws::Vector<Aws::String> m_instanceEventWindowIds;
139 bool m_instanceEventWindowIdsHasBeenSet = false;
140
141 Aws::Vector<Filter> m_filters;
142 bool m_filtersHasBeenSet = false;
143
144 int m_maxResults;
145 bool m_maxResultsHasBeenSet = false;
146
147 Aws::String m_nextToken;
148 bool m_nextTokenHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace EC2
153} // namespace Aws
DescribeInstanceEventWindowsRequest & AddInstanceEventWindowIds(const char *value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeInstanceEventWindowsRequest & WithInstanceEventWindowIds(Aws::Vector< Aws::String > &&value)
DescribeInstanceEventWindowsRequest & WithNextToken(const char *value)
DescribeInstanceEventWindowsRequest & WithFilters(const Aws::Vector< Filter > &value)
DescribeInstanceEventWindowsRequest & AddInstanceEventWindowIds(const Aws::String &value)
DescribeInstanceEventWindowsRequest & AddFilters(Filter &&value)
DescribeInstanceEventWindowsRequest & WithFilters(Aws::Vector< Filter > &&value)
DescribeInstanceEventWindowsRequest & WithMaxResults(int value)
DescribeInstanceEventWindowsRequest & WithNextToken(Aws::String &&value)
DescribeInstanceEventWindowsRequest & WithInstanceEventWindowIds(const Aws::Vector< Aws::String > &value)
void SetInstanceEventWindowIds(const Aws::Vector< Aws::String > &value)
DescribeInstanceEventWindowsRequest & AddInstanceEventWindowIds(Aws::String &&value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeInstanceEventWindowsRequest & AddFilters(const Filter &value)
DescribeInstanceEventWindowsRequest & WithNextToken(const Aws::String &value)
DescribeInstanceEventWindowsRequest & WithDryRun(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector