AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeSavingsPlansRequest.h
1
6#pragma once
7#include <aws/savingsplans/SavingsPlans_EXPORTS.h>
8#include <aws/savingsplans/SavingsPlansRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/savingsplans/model/SavingsPlanState.h>
12#include <aws/savingsplans/model/SavingsPlanFilter.h>
13#include <utility>
14
15namespace Aws
16{
17namespace SavingsPlans
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SAVINGSPLANS_API DescribeSavingsPlansRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "DescribeSavingsPlans"; }
34
35 AWS_SAVINGSPLANS_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::Vector<Aws::String>& GetSavingsPlanArns() const{ return m_savingsPlanArns; }
43 inline bool SavingsPlanArnsHasBeenSet() const { return m_savingsPlanArnsHasBeenSet; }
44 inline void SetSavingsPlanArns(const Aws::Vector<Aws::String>& value) { m_savingsPlanArnsHasBeenSet = true; m_savingsPlanArns = value; }
45 inline void SetSavingsPlanArns(Aws::Vector<Aws::String>&& value) { m_savingsPlanArnsHasBeenSet = true; m_savingsPlanArns = std::move(value); }
48 inline DescribeSavingsPlansRequest& AddSavingsPlanArns(const Aws::String& value) { m_savingsPlanArnsHasBeenSet = true; m_savingsPlanArns.push_back(value); return *this; }
49 inline DescribeSavingsPlansRequest& AddSavingsPlanArns(Aws::String&& value) { m_savingsPlanArnsHasBeenSet = true; m_savingsPlanArns.push_back(std::move(value)); return *this; }
50 inline DescribeSavingsPlansRequest& AddSavingsPlanArns(const char* value) { m_savingsPlanArnsHasBeenSet = true; m_savingsPlanArns.push_back(value); return *this; }
52
54
57 inline const Aws::Vector<Aws::String>& GetSavingsPlanIds() const{ return m_savingsPlanIds; }
58 inline bool SavingsPlanIdsHasBeenSet() const { return m_savingsPlanIdsHasBeenSet; }
59 inline void SetSavingsPlanIds(const Aws::Vector<Aws::String>& value) { m_savingsPlanIdsHasBeenSet = true; m_savingsPlanIds = value; }
60 inline void SetSavingsPlanIds(Aws::Vector<Aws::String>&& value) { m_savingsPlanIdsHasBeenSet = true; m_savingsPlanIds = std::move(value); }
63 inline DescribeSavingsPlansRequest& AddSavingsPlanIds(const Aws::String& value) { m_savingsPlanIdsHasBeenSet = true; m_savingsPlanIds.push_back(value); return *this; }
64 inline DescribeSavingsPlansRequest& AddSavingsPlanIds(Aws::String&& value) { m_savingsPlanIdsHasBeenSet = true; m_savingsPlanIds.push_back(std::move(value)); return *this; }
65 inline DescribeSavingsPlansRequest& AddSavingsPlanIds(const char* value) { m_savingsPlanIdsHasBeenSet = true; m_savingsPlanIds.push_back(value); return *this; }
67
69
72 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
73 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
74 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
75 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
76 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
77 inline DescribeSavingsPlansRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
78 inline DescribeSavingsPlansRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
79 inline DescribeSavingsPlansRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
81
83
87 inline int GetMaxResults() const{ return m_maxResults; }
88 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
89 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
90 inline DescribeSavingsPlansRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
92
94
97 inline const Aws::Vector<SavingsPlanState>& GetStates() const{ return m_states; }
98 inline bool StatesHasBeenSet() const { return m_statesHasBeenSet; }
99 inline void SetStates(const Aws::Vector<SavingsPlanState>& value) { m_statesHasBeenSet = true; m_states = value; }
100 inline void SetStates(Aws::Vector<SavingsPlanState>&& value) { m_statesHasBeenSet = true; m_states = std::move(value); }
102 inline DescribeSavingsPlansRequest& WithStates(Aws::Vector<SavingsPlanState>&& value) { SetStates(std::move(value)); return *this;}
103 inline DescribeSavingsPlansRequest& AddStates(const SavingsPlanState& value) { m_statesHasBeenSet = true; m_states.push_back(value); return *this; }
104 inline DescribeSavingsPlansRequest& AddStates(SavingsPlanState&& value) { m_statesHasBeenSet = true; m_states.push_back(std::move(value)); return *this; }
106
108
111 inline const Aws::Vector<SavingsPlanFilter>& GetFilters() const{ return m_filters; }
112 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
113 inline void SetFilters(const Aws::Vector<SavingsPlanFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
114 inline void SetFilters(Aws::Vector<SavingsPlanFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
116 inline DescribeSavingsPlansRequest& WithFilters(Aws::Vector<SavingsPlanFilter>&& value) { SetFilters(std::move(value)); return *this;}
117 inline DescribeSavingsPlansRequest& AddFilters(const SavingsPlanFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
118 inline DescribeSavingsPlansRequest& AddFilters(SavingsPlanFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
120 private:
121
122 Aws::Vector<Aws::String> m_savingsPlanArns;
123 bool m_savingsPlanArnsHasBeenSet = false;
124
125 Aws::Vector<Aws::String> m_savingsPlanIds;
126 bool m_savingsPlanIdsHasBeenSet = false;
127
128 Aws::String m_nextToken;
129 bool m_nextTokenHasBeenSet = false;
130
131 int m_maxResults;
132 bool m_maxResultsHasBeenSet = false;
133
135 bool m_statesHasBeenSet = false;
136
138 bool m_filtersHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace SavingsPlans
143} // namespace Aws
const Aws::Vector< Aws::String > & GetSavingsPlanArns() const
DescribeSavingsPlansRequest & WithNextToken(Aws::String &&value)
DescribeSavingsPlansRequest & AddSavingsPlanIds(const Aws::String &value)
DescribeSavingsPlansRequest & WithFilters(const Aws::Vector< SavingsPlanFilter > &value)
DescribeSavingsPlansRequest & WithSavingsPlanIds(const Aws::Vector< Aws::String > &value)
DescribeSavingsPlansRequest & WithSavingsPlanArns(const Aws::Vector< Aws::String > &value)
DescribeSavingsPlansRequest & AddFilters(SavingsPlanFilter &&value)
void SetStates(Aws::Vector< SavingsPlanState > &&value)
DescribeSavingsPlansRequest & AddSavingsPlanIds(const char *value)
DescribeSavingsPlansRequest & WithNextToken(const Aws::String &value)
const Aws::Vector< SavingsPlanFilter > & GetFilters() const
AWS_SAVINGSPLANS_API Aws::String SerializePayload() const override
const Aws::Vector< SavingsPlanState > & GetStates() const
DescribeSavingsPlansRequest & WithSavingsPlanArns(Aws::Vector< Aws::String > &&value)
void SetSavingsPlanIds(const Aws::Vector< Aws::String > &value)
DescribeSavingsPlansRequest & AddSavingsPlanIds(Aws::String &&value)
void SetStates(const Aws::Vector< SavingsPlanState > &value)
DescribeSavingsPlansRequest & WithSavingsPlanIds(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetSavingsPlanIds() const
DescribeSavingsPlansRequest & AddFilters(const SavingsPlanFilter &value)
void SetFilters(const Aws::Vector< SavingsPlanFilter > &value)
void SetFilters(Aws::Vector< SavingsPlanFilter > &&value)
void SetSavingsPlanArns(Aws::Vector< Aws::String > &&value)
DescribeSavingsPlansRequest & AddSavingsPlanArns(Aws::String &&value)
DescribeSavingsPlansRequest & WithFilters(Aws::Vector< SavingsPlanFilter > &&value)
DescribeSavingsPlansRequest & WithNextToken(const char *value)
DescribeSavingsPlansRequest & AddSavingsPlanArns(const char *value)
DescribeSavingsPlansRequest & AddStates(const SavingsPlanState &value)
DescribeSavingsPlansRequest & AddSavingsPlanArns(const Aws::String &value)
DescribeSavingsPlansRequest & WithStates(const Aws::Vector< SavingsPlanState > &value)
DescribeSavingsPlansRequest & WithStates(Aws::Vector< SavingsPlanState > &&value)
DescribeSavingsPlansRequest & AddStates(SavingsPlanState &&value)
void SetSavingsPlanArns(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector