AWS SDK for C++  1.9.1
AWS SDK for C++
GetAnomalySubscriptionsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace CostExplorer
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "GetAnomalySubscriptions"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::Vector<Aws::String>& GetSubscriptionArnList() const{ return m_subscriptionArnList; }
42 
46  inline bool SubscriptionArnListHasBeenSet() const { return m_subscriptionArnListHasBeenSet; }
47 
51  inline void SetSubscriptionArnList(const Aws::Vector<Aws::String>& value) { m_subscriptionArnListHasBeenSet = true; m_subscriptionArnList = value; }
52 
56  inline void SetSubscriptionArnList(Aws::Vector<Aws::String>&& value) { m_subscriptionArnListHasBeenSet = true; m_subscriptionArnList = std::move(value); }
57 
61  inline GetAnomalySubscriptionsRequest& WithSubscriptionArnList(const Aws::Vector<Aws::String>& value) { SetSubscriptionArnList(value); return *this;}
62 
66  inline GetAnomalySubscriptionsRequest& WithSubscriptionArnList(Aws::Vector<Aws::String>&& value) { SetSubscriptionArnList(std::move(value)); return *this;}
67 
71  inline GetAnomalySubscriptionsRequest& AddSubscriptionArnList(const Aws::String& value) { m_subscriptionArnListHasBeenSet = true; m_subscriptionArnList.push_back(value); return *this; }
72 
76  inline GetAnomalySubscriptionsRequest& AddSubscriptionArnList(Aws::String&& value) { m_subscriptionArnListHasBeenSet = true; m_subscriptionArnList.push_back(std::move(value)); return *this; }
77 
81  inline GetAnomalySubscriptionsRequest& AddSubscriptionArnList(const char* value) { m_subscriptionArnListHasBeenSet = true; m_subscriptionArnList.push_back(value); return *this; }
82 
83 
87  inline const Aws::String& GetMonitorArn() const{ return m_monitorArn; }
88 
92  inline bool MonitorArnHasBeenSet() const { return m_monitorArnHasBeenSet; }
93 
97  inline void SetMonitorArn(const Aws::String& value) { m_monitorArnHasBeenSet = true; m_monitorArn = value; }
98 
102  inline void SetMonitorArn(Aws::String&& value) { m_monitorArnHasBeenSet = true; m_monitorArn = std::move(value); }
103 
107  inline void SetMonitorArn(const char* value) { m_monitorArnHasBeenSet = true; m_monitorArn.assign(value); }
108 
112  inline GetAnomalySubscriptionsRequest& WithMonitorArn(const Aws::String& value) { SetMonitorArn(value); return *this;}
113 
117  inline GetAnomalySubscriptionsRequest& WithMonitorArn(Aws::String&& value) { SetMonitorArn(std::move(value)); return *this;}
118 
122  inline GetAnomalySubscriptionsRequest& WithMonitorArn(const char* value) { SetMonitorArn(value); return *this;}
123 
124 
130  inline const Aws::String& GetNextPageToken() const{ return m_nextPageToken; }
131 
137  inline bool NextPageTokenHasBeenSet() const { return m_nextPageTokenHasBeenSet; }
138 
144  inline void SetNextPageToken(const Aws::String& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = value; }
145 
151  inline void SetNextPageToken(Aws::String&& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = std::move(value); }
152 
158  inline void SetNextPageToken(const char* value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken.assign(value); }
159 
165  inline GetAnomalySubscriptionsRequest& WithNextPageToken(const Aws::String& value) { SetNextPageToken(value); return *this;}
166 
172  inline GetAnomalySubscriptionsRequest& WithNextPageToken(Aws::String&& value) { SetNextPageToken(std::move(value)); return *this;}
173 
179  inline GetAnomalySubscriptionsRequest& WithNextPageToken(const char* value) { SetNextPageToken(value); return *this;}
180 
181 
185  inline int GetMaxResults() const{ return m_maxResults; }
186 
190  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
191 
195  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
196 
200  inline GetAnomalySubscriptionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
201 
202  private:
203 
204  Aws::Vector<Aws::String> m_subscriptionArnList;
205  bool m_subscriptionArnListHasBeenSet;
206 
207  Aws::String m_monitorArn;
208  bool m_monitorArnHasBeenSet;
209 
210  Aws::String m_nextPageToken;
211  bool m_nextPageTokenHasBeenSet;
212 
213  int m_maxResults;
214  bool m_maxResultsHasBeenSet;
215  };
216 
217 } // namespace Model
218 } // namespace CostExplorer
219 } // namespace Aws
Aws::CostExplorer::CostExplorerRequest
Definition: CostExplorerRequest.h:17
Aws::CostExplorer::Model::GetAnomalySubscriptionsRequest::AddSubscriptionArnList
GetAnomalySubscriptionsRequest & AddSubscriptionArnList(const char *value)
Definition: GetAnomalySubscriptionsRequest.h:81
Aws::CostExplorer::Model::GetAnomalySubscriptionsRequest::SetNextPageToken
void SetNextPageToken(Aws::String &&value)
Definition: GetAnomalySubscriptionsRequest.h:151
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CostExplorer::Model::GetAnomalySubscriptionsRequest::MonitorArnHasBeenSet
bool MonitorArnHasBeenSet() const
Definition: GetAnomalySubscriptionsRequest.h:92
Aws::CostExplorer::Model::GetAnomalySubscriptionsRequest::AddSubscriptionArnList
GetAnomalySubscriptionsRequest & AddSubscriptionArnList(const Aws::String &value)
Definition: GetAnomalySubscriptionsRequest.h:71
CostExplorerRequest.h
Aws::CostExplorer::Model::GetAnomalySubscriptionsRequest::SetMonitorArn
void SetMonitorArn(const char *value)
Definition: GetAnomalySubscriptionsRequest.h:107
Aws::CostExplorer::Model::GetAnomalySubscriptionsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::CostExplorer::Model::GetAnomalySubscriptionsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CostExplorer::Model::GetAnomalySubscriptionsRequest::GetSubscriptionArnList
const Aws::Vector< Aws::String > & GetSubscriptionArnList() const
Definition: GetAnomalySubscriptionsRequest.h:41
CostExplorer_EXPORTS.h
Aws::CostExplorer::Model::GetAnomalySubscriptionsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: GetAnomalySubscriptionsRequest.h:190
Aws::CostExplorer::Model::GetAnomalySubscriptionsRequest::GetMonitorArn
const Aws::String & GetMonitorArn() const
Definition: GetAnomalySubscriptionsRequest.h:87
Aws::CostExplorer::Model::GetAnomalySubscriptionsRequest::WithSubscriptionArnList
GetAnomalySubscriptionsRequest & WithSubscriptionArnList(Aws::Vector< Aws::String > &&value)
Definition: GetAnomalySubscriptionsRequest.h:66
Aws::CostExplorer::Model::GetAnomalySubscriptionsRequest::WithNextPageToken
GetAnomalySubscriptionsRequest & WithNextPageToken(const Aws::String &value)
Definition: GetAnomalySubscriptionsRequest.h:165
Aws::CostExplorer::Model::GetAnomalySubscriptionsRequest::SetMonitorArn
void SetMonitorArn(Aws::String &&value)
Definition: GetAnomalySubscriptionsRequest.h:102
Aws::CostExplorer::Model::GetAnomalySubscriptionsRequest::WithSubscriptionArnList
GetAnomalySubscriptionsRequest & WithSubscriptionArnList(const Aws::Vector< Aws::String > &value)
Definition: GetAnomalySubscriptionsRequest.h:61
AWSString.h
Aws::CostExplorer::Model::GetAnomalySubscriptionsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: GetAnomalySubscriptionsRequest.h:195
Aws::CostExplorer::Model::GetAnomalySubscriptionsRequest::GetAnomalySubscriptionsRequest
GetAnomalySubscriptionsRequest()
AWS_COSTEXPLORER_API
#define AWS_COSTEXPLORER_API
Definition: CostExplorer_EXPORTS.h:28
Aws::CostExplorer::Model::GetAnomalySubscriptionsRequest::SetNextPageToken
void SetNextPageToken(const Aws::String &value)
Definition: GetAnomalySubscriptionsRequest.h:144
Aws::CostExplorer::Model::GetAnomalySubscriptionsRequest
Definition: GetAnomalySubscriptionsRequest.h:23
Aws::CostExplorer::Model::GetAnomalySubscriptionsRequest::SetSubscriptionArnList
void SetSubscriptionArnList(Aws::Vector< Aws::String > &&value)
Definition: GetAnomalySubscriptionsRequest.h:56
Aws::CostExplorer::Model::GetAnomalySubscriptionsRequest::WithNextPageToken
GetAnomalySubscriptionsRequest & WithNextPageToken(const char *value)
Definition: GetAnomalySubscriptionsRequest.h:179
Aws::CostExplorer::Model::GetAnomalySubscriptionsRequest::GetMaxResults
int GetMaxResults() const
Definition: GetAnomalySubscriptionsRequest.h:185
Aws::CostExplorer::Model::GetAnomalySubscriptionsRequest::WithMonitorArn
GetAnomalySubscriptionsRequest & WithMonitorArn(const Aws::String &value)
Definition: GetAnomalySubscriptionsRequest.h:112
Aws::CostExplorer::Model::GetAnomalySubscriptionsRequest::WithMonitorArn
GetAnomalySubscriptionsRequest & WithMonitorArn(Aws::String &&value)
Definition: GetAnomalySubscriptionsRequest.h:117
Aws::CostExplorer::Model::GetAnomalySubscriptionsRequest::WithMonitorArn
GetAnomalySubscriptionsRequest & WithMonitorArn(const char *value)
Definition: GetAnomalySubscriptionsRequest.h:122
Aws::CostExplorer::Model::GetAnomalySubscriptionsRequest::NextPageTokenHasBeenSet
bool NextPageTokenHasBeenSet() const
Definition: GetAnomalySubscriptionsRequest.h:137
Aws::CostExplorer::Model::GetAnomalySubscriptionsRequest::SubscriptionArnListHasBeenSet
bool SubscriptionArnListHasBeenSet() const
Definition: GetAnomalySubscriptionsRequest.h:46
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CostExplorer::Model::GetAnomalySubscriptionsRequest::GetNextPageToken
const Aws::String & GetNextPageToken() const
Definition: GetAnomalySubscriptionsRequest.h:130
Aws::CostExplorer::Model::GetAnomalySubscriptionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetAnomalySubscriptionsRequest.h:31
Aws::CostExplorer::Model::GetAnomalySubscriptionsRequest::SetSubscriptionArnList
void SetSubscriptionArnList(const Aws::Vector< Aws::String > &value)
Definition: GetAnomalySubscriptionsRequest.h:51
Aws::CostExplorer::Model::GetAnomalySubscriptionsRequest::SetMonitorArn
void SetMonitorArn(const Aws::String &value)
Definition: GetAnomalySubscriptionsRequest.h:97
Aws::CostExplorer::Model::GetAnomalySubscriptionsRequest::SetNextPageToken
void SetNextPageToken(const char *value)
Definition: GetAnomalySubscriptionsRequest.h:158
Aws::CostExplorer::Model::GetAnomalySubscriptionsRequest::WithMaxResults
GetAnomalySubscriptionsRequest & WithMaxResults(int value)
Definition: GetAnomalySubscriptionsRequest.h:200
Aws::CostExplorer::Model::GetAnomalySubscriptionsRequest::AddSubscriptionArnList
GetAnomalySubscriptionsRequest & AddSubscriptionArnList(Aws::String &&value)
Definition: GetAnomalySubscriptionsRequest.h:76
Aws::CostExplorer::Model::GetAnomalySubscriptionsRequest::WithNextPageToken
GetAnomalySubscriptionsRequest & WithNextPageToken(Aws::String &&value)
Definition: GetAnomalySubscriptionsRequest.h:172