AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListBillingViewsRequest.h
1
6#pragma once
7#include <aws/billing/Billing_EXPORTS.h>
8#include <aws/billing/BillingRequest.h>
9#include <aws/billing/model/ActiveTimeRange.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/billing/model/BillingViewType.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Billing
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_BILLING_API ListBillingViewsRequest() = default;
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 "ListBillingViews"; }
34
35 AWS_BILLING_API Aws::String SerializePayload() const override;
36
38
39
41
47 inline const ActiveTimeRange& GetActiveTimeRange() const { return m_activeTimeRange; }
48 inline bool ActiveTimeRangeHasBeenSet() const { return m_activeTimeRangeHasBeenSet; }
49 template<typename ActiveTimeRangeT = ActiveTimeRange>
50 void SetActiveTimeRange(ActiveTimeRangeT&& value) { m_activeTimeRangeHasBeenSet = true; m_activeTimeRange = std::forward<ActiveTimeRangeT>(value); }
51 template<typename ActiveTimeRangeT = ActiveTimeRange>
52 ListBillingViewsRequest& WithActiveTimeRange(ActiveTimeRangeT&& value) { SetActiveTimeRange(std::forward<ActiveTimeRangeT>(value)); return *this;}
54
56
60 inline const Aws::Vector<Aws::String>& GetArns() const { return m_arns; }
61 inline bool ArnsHasBeenSet() const { return m_arnsHasBeenSet; }
62 template<typename ArnsT = Aws::Vector<Aws::String>>
63 void SetArns(ArnsT&& value) { m_arnsHasBeenSet = true; m_arns = std::forward<ArnsT>(value); }
64 template<typename ArnsT = Aws::Vector<Aws::String>>
65 ListBillingViewsRequest& WithArns(ArnsT&& value) { SetArns(std::forward<ArnsT>(value)); return *this;}
66 template<typename ArnsT = Aws::String>
67 ListBillingViewsRequest& AddArns(ArnsT&& value) { m_arnsHasBeenSet = true; m_arns.emplace_back(std::forward<ArnsT>(value)); return *this; }
69
71
74 inline const Aws::Vector<BillingViewType>& GetBillingViewTypes() const { return m_billingViewTypes; }
75 inline bool BillingViewTypesHasBeenSet() const { return m_billingViewTypesHasBeenSet; }
76 template<typename BillingViewTypesT = Aws::Vector<BillingViewType>>
77 void SetBillingViewTypes(BillingViewTypesT&& value) { m_billingViewTypesHasBeenSet = true; m_billingViewTypes = std::forward<BillingViewTypesT>(value); }
78 template<typename BillingViewTypesT = Aws::Vector<BillingViewType>>
79 ListBillingViewsRequest& WithBillingViewTypes(BillingViewTypesT&& value) { SetBillingViewTypes(std::forward<BillingViewTypesT>(value)); return *this;}
80 inline ListBillingViewsRequest& AddBillingViewTypes(BillingViewType value) { m_billingViewTypesHasBeenSet = true; m_billingViewTypes.push_back(value); return *this; }
82
84
87 inline const Aws::String& GetOwnerAccountId() const { return m_ownerAccountId; }
88 inline bool OwnerAccountIdHasBeenSet() const { return m_ownerAccountIdHasBeenSet; }
89 template<typename OwnerAccountIdT = Aws::String>
90 void SetOwnerAccountId(OwnerAccountIdT&& value) { m_ownerAccountIdHasBeenSet = true; m_ownerAccountId = std::forward<OwnerAccountIdT>(value); }
91 template<typename OwnerAccountIdT = Aws::String>
92 ListBillingViewsRequest& WithOwnerAccountId(OwnerAccountIdT&& value) { SetOwnerAccountId(std::forward<OwnerAccountIdT>(value)); return *this;}
94
96
99 inline int GetMaxResults() const { return m_maxResults; }
100 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
101 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
102 inline ListBillingViewsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
104
106
110 inline const Aws::String& GetNextToken() const { return m_nextToken; }
111 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
112 template<typename NextTokenT = Aws::String>
113 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
114 template<typename NextTokenT = Aws::String>
115 ListBillingViewsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
117 private:
118
119 ActiveTimeRange m_activeTimeRange;
120 bool m_activeTimeRangeHasBeenSet = false;
121
123 bool m_arnsHasBeenSet = false;
124
125 Aws::Vector<BillingViewType> m_billingViewTypes;
126 bool m_billingViewTypesHasBeenSet = false;
127
128 Aws::String m_ownerAccountId;
129 bool m_ownerAccountIdHasBeenSet = false;
130
131 int m_maxResults{0};
132 bool m_maxResultsHasBeenSet = false;
133
134 Aws::String m_nextToken;
135 bool m_nextTokenHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace Billing
140} // namespace Aws
void SetBillingViewTypes(BillingViewTypesT &&value)
ListBillingViewsRequest & WithOwnerAccountId(OwnerAccountIdT &&value)
ListBillingViewsRequest & WithNextToken(NextTokenT &&value)
const Aws::Vector< BillingViewType > & GetBillingViewTypes() const
ListBillingViewsRequest & WithActiveTimeRange(ActiveTimeRangeT &&value)
AWS_BILLING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_BILLING_API ListBillingViewsRequest()=default
ListBillingViewsRequest & AddArns(ArnsT &&value)
ListBillingViewsRequest & WithMaxResults(int value)
AWS_BILLING_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetArns() const
ListBillingViewsRequest & WithArns(ArnsT &&value)
ListBillingViewsRequest & WithBillingViewTypes(BillingViewTypesT &&value)
ListBillingViewsRequest & AddBillingViewTypes(BillingViewType 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