AWS SDK for C++  1.9.1
AWS SDK for C++
GetDimensionValuesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <aws/ce/model/Dimension.h>
12 #include <aws/ce/model/Context.h>
16 #include <utility>
17 
18 namespace Aws
19 {
20 namespace CostExplorer
21 {
22 namespace Model
23 {
24 
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 "GetDimensionValues"; }
37 
38  Aws::String SerializePayload() const override;
39 
41 
42 
46  inline const Aws::String& GetSearchString() const{ return m_searchString; }
47 
51  inline bool SearchStringHasBeenSet() const { return m_searchStringHasBeenSet; }
52 
56  inline void SetSearchString(const Aws::String& value) { m_searchStringHasBeenSet = true; m_searchString = value; }
57 
61  inline void SetSearchString(Aws::String&& value) { m_searchStringHasBeenSet = true; m_searchString = std::move(value); }
62 
66  inline void SetSearchString(const char* value) { m_searchStringHasBeenSet = true; m_searchString.assign(value); }
67 
71  inline GetDimensionValuesRequest& WithSearchString(const Aws::String& value) { SetSearchString(value); return *this;}
72 
76  inline GetDimensionValuesRequest& WithSearchString(Aws::String&& value) { SetSearchString(std::move(value)); return *this;}
77 
81  inline GetDimensionValuesRequest& WithSearchString(const char* value) { SetSearchString(value); return *this;}
82 
83 
91  inline const DateInterval& GetTimePeriod() const{ return m_timePeriod; }
92 
100  inline bool TimePeriodHasBeenSet() const { return m_timePeriodHasBeenSet; }
101 
109  inline void SetTimePeriod(const DateInterval& value) { m_timePeriodHasBeenSet = true; m_timePeriod = value; }
110 
118  inline void SetTimePeriod(DateInterval&& value) { m_timePeriodHasBeenSet = true; m_timePeriod = std::move(value); }
119 
127  inline GetDimensionValuesRequest& WithTimePeriod(const DateInterval& value) { SetTimePeriod(value); return *this;}
128 
136  inline GetDimensionValuesRequest& WithTimePeriod(DateInterval&& value) { SetTimePeriod(std::move(value)); return *this;}
137 
138 
144  inline const Dimension& GetDimension() const{ return m_dimension; }
145 
151  inline bool DimensionHasBeenSet() const { return m_dimensionHasBeenSet; }
152 
158  inline void SetDimension(const Dimension& value) { m_dimensionHasBeenSet = true; m_dimension = value; }
159 
165  inline void SetDimension(Dimension&& value) { m_dimensionHasBeenSet = true; m_dimension = std::move(value); }
166 
172  inline GetDimensionValuesRequest& WithDimension(const Dimension& value) { SetDimension(value); return *this;}
173 
179  inline GetDimensionValuesRequest& WithDimension(Dimension&& value) { SetDimension(std::move(value)); return *this;}
180 
181 
243  inline const Context& GetContext() const{ return m_context; }
244 
306  inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
307 
369  inline void SetContext(const Context& value) { m_contextHasBeenSet = true; m_context = value; }
370 
432  inline void SetContext(Context&& value) { m_contextHasBeenSet = true; m_context = std::move(value); }
433 
495  inline GetDimensionValuesRequest& WithContext(const Context& value) { SetContext(value); return *this;}
496 
558  inline GetDimensionValuesRequest& WithContext(Context&& value) { SetContext(std::move(value)); return *this;}
559 
560 
561 
562  inline const Expression& GetFilter() const{ return m_filter; }
563 
564 
565  inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
566 
567 
568  inline void SetFilter(const Expression& value) { m_filterHasBeenSet = true; m_filter = value; }
569 
570 
571  inline void SetFilter(Expression&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
572 
573 
574  inline GetDimensionValuesRequest& WithFilter(const Expression& value) { SetFilter(value); return *this;}
575 
576 
577  inline GetDimensionValuesRequest& WithFilter(Expression&& value) { SetFilter(std::move(value)); return *this;}
578 
579 
594  inline const Aws::Vector<SortDefinition>& GetSortBy() const{ return m_sortBy; }
595 
610  inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
611 
626  inline void SetSortBy(const Aws::Vector<SortDefinition>& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
627 
642  inline void SetSortBy(Aws::Vector<SortDefinition>&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
643 
658  inline GetDimensionValuesRequest& WithSortBy(const Aws::Vector<SortDefinition>& value) { SetSortBy(value); return *this;}
659 
674  inline GetDimensionValuesRequest& WithSortBy(Aws::Vector<SortDefinition>&& value) { SetSortBy(std::move(value)); return *this;}
675 
690  inline GetDimensionValuesRequest& AddSortBy(const SortDefinition& value) { m_sortByHasBeenSet = true; m_sortBy.push_back(value); return *this; }
691 
706  inline GetDimensionValuesRequest& AddSortBy(SortDefinition&& value) { m_sortByHasBeenSet = true; m_sortBy.push_back(std::move(value)); return *this; }
707 
708 
716  inline int GetMaxResults() const{ return m_maxResults; }
717 
725  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
726 
734  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
735 
743  inline GetDimensionValuesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
744 
745 
751  inline const Aws::String& GetNextPageToken() const{ return m_nextPageToken; }
752 
758  inline bool NextPageTokenHasBeenSet() const { return m_nextPageTokenHasBeenSet; }
759 
765  inline void SetNextPageToken(const Aws::String& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = value; }
766 
772  inline void SetNextPageToken(Aws::String&& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = std::move(value); }
773 
779  inline void SetNextPageToken(const char* value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken.assign(value); }
780 
786  inline GetDimensionValuesRequest& WithNextPageToken(const Aws::String& value) { SetNextPageToken(value); return *this;}
787 
793  inline GetDimensionValuesRequest& WithNextPageToken(Aws::String&& value) { SetNextPageToken(std::move(value)); return *this;}
794 
800  inline GetDimensionValuesRequest& WithNextPageToken(const char* value) { SetNextPageToken(value); return *this;}
801 
802  private:
803 
804  Aws::String m_searchString;
805  bool m_searchStringHasBeenSet;
806 
807  DateInterval m_timePeriod;
808  bool m_timePeriodHasBeenSet;
809 
810  Dimension m_dimension;
811  bool m_dimensionHasBeenSet;
812 
813  Context m_context;
814  bool m_contextHasBeenSet;
815 
816  Expression m_filter;
817  bool m_filterHasBeenSet;
818 
820  bool m_sortByHasBeenSet;
821 
822  int m_maxResults;
823  bool m_maxResultsHasBeenSet;
824 
825  Aws::String m_nextPageToken;
826  bool m_nextPageTokenHasBeenSet;
827  };
828 
829 } // namespace Model
830 } // namespace CostExplorer
831 } // namespace Aws
Aws::CostExplorer::Model::GetDimensionValuesRequest::SetSearchString
void SetSearchString(const Aws::String &value)
Definition: GetDimensionValuesRequest.h:56
Aws::CostExplorer::Model::Context
Context
Definition: Context.h:17
Aws::CostExplorer::CostExplorerRequest
Definition: CostExplorerRequest.h:17
Aws::CostExplorer::Model::DateInterval
Definition: DateInterval.h:32
Aws::CostExplorer::Model::GetDimensionValuesRequest::SetTimePeriod
void SetTimePeriod(DateInterval &&value)
Definition: GetDimensionValuesRequest.h:118
Aws::CostExplorer::Model::GetDimensionValuesRequest::SetNextPageToken
void SetNextPageToken(const char *value)
Definition: GetDimensionValuesRequest.h:779
Aws::CostExplorer::Model::GetDimensionValuesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: GetDimensionValuesRequest.h:725
Aws::CostExplorer::Model::GetDimensionValuesRequest::WithTimePeriod
GetDimensionValuesRequest & WithTimePeriod(const DateInterval &value)
Definition: GetDimensionValuesRequest.h:127
Aws::CostExplorer::Model::GetDimensionValuesRequest::WithFilter
GetDimensionValuesRequest & WithFilter(Expression &&value)
Definition: GetDimensionValuesRequest.h:577
Aws::CostExplorer::Model::GetDimensionValuesRequest::SetSortBy
void SetSortBy(const Aws::Vector< SortDefinition > &value)
Definition: GetDimensionValuesRequest.h:626
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CostExplorer::Model::GetDimensionValuesRequest::SetDimension
void SetDimension(const Dimension &value)
Definition: GetDimensionValuesRequest.h:158
Aws::CostExplorer::Model::GetDimensionValuesRequest::SetContext
void SetContext(const Context &value)
Definition: GetDimensionValuesRequest.h:369
Aws::CostExplorer::Model::GetDimensionValuesRequest::GetMaxResults
int GetMaxResults() const
Definition: GetDimensionValuesRequest.h:716
Aws::CostExplorer::Model::GetDimensionValuesRequest::WithSortBy
GetDimensionValuesRequest & WithSortBy(const Aws::Vector< SortDefinition > &value)
Definition: GetDimensionValuesRequest.h:658
Aws::CostExplorer::Model::Dimension
Dimension
Definition: Dimension.h:17
Aws::CostExplorer::Model::GetDimensionValuesRequest::GetNextPageToken
const Aws::String & GetNextPageToken() const
Definition: GetDimensionValuesRequest.h:751
Aws::CostExplorer::Model::GetDimensionValuesRequest::GetSortBy
const Aws::Vector< SortDefinition > & GetSortBy() const
Definition: GetDimensionValuesRequest.h:594
Aws::CostExplorer::Model::GetDimensionValuesRequest::WithSearchString
GetDimensionValuesRequest & WithSearchString(const char *value)
Definition: GetDimensionValuesRequest.h:81
CostExplorerRequest.h
Aws::CostExplorer::Model::GetDimensionValuesRequest::SerializePayload
Aws::String SerializePayload() const override
DateInterval.h
Aws::CostExplorer::Model::GetDimensionValuesRequest::GetSearchString
const Aws::String & GetSearchString() const
Definition: GetDimensionValuesRequest.h:46
Aws::CostExplorer::Model::GetDimensionValuesRequest::GetDimension
const Dimension & GetDimension() const
Definition: GetDimensionValuesRequest.h:144
Aws::CostExplorer::Model::Expression
Definition: Expression.h:69
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CostExplorer::Model::GetDimensionValuesRequest::NextPageTokenHasBeenSet
bool NextPageTokenHasBeenSet() const
Definition: GetDimensionValuesRequest.h:758
Aws::CostExplorer::Model::GetDimensionValuesRequest::WithSearchString
GetDimensionValuesRequest & WithSearchString(const Aws::String &value)
Definition: GetDimensionValuesRequest.h:71
Aws::CostExplorer::Model::GetDimensionValuesRequest::SetDimension
void SetDimension(Dimension &&value)
Definition: GetDimensionValuesRequest.h:165
AWSVector.h
Aws::CostExplorer::Model::GetDimensionValuesRequest::SearchStringHasBeenSet
bool SearchStringHasBeenSet() const
Definition: GetDimensionValuesRequest.h:51
Aws::CostExplorer::Model::GetDimensionValuesRequest::WithMaxResults
GetDimensionValuesRequest & WithMaxResults(int value)
Definition: GetDimensionValuesRequest.h:743
Aws::CostExplorer::Model::GetDimensionValuesRequest
Definition: GetDimensionValuesRequest.h:28
Aws::CostExplorer::Model::GetDimensionValuesRequest::WithNextPageToken
GetDimensionValuesRequest & WithNextPageToken(const Aws::String &value)
Definition: GetDimensionValuesRequest.h:786
SortDefinition.h
Aws::CostExplorer::Model::GetDimensionValuesRequest::AddSortBy
GetDimensionValuesRequest & AddSortBy(SortDefinition &&value)
Definition: GetDimensionValuesRequest.h:706
CostExplorer_EXPORTS.h
Aws::CostExplorer::Model::GetDimensionValuesRequest::SetNextPageToken
void SetNextPageToken(const Aws::String &value)
Definition: GetDimensionValuesRequest.h:765
Aws::CostExplorer::Model::GetDimensionValuesRequest::TimePeriodHasBeenSet
bool TimePeriodHasBeenSet() const
Definition: GetDimensionValuesRequest.h:100
Aws::CostExplorer::Model::GetDimensionValuesRequest::WithNextPageToken
GetDimensionValuesRequest & WithNextPageToken(Aws::String &&value)
Definition: GetDimensionValuesRequest.h:793
Aws::CostExplorer::Model::GetDimensionValuesRequest::SetFilter
void SetFilter(const Expression &value)
Definition: GetDimensionValuesRequest.h:568
Aws::CostExplorer::Model::GetDimensionValuesRequest::SetSearchString
void SetSearchString(const char *value)
Definition: GetDimensionValuesRequest.h:66
Aws::CostExplorer::Model::GetDimensionValuesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Dimension.h
Aws::CostExplorer::Model::GetDimensionValuesRequest::ContextHasBeenSet
bool ContextHasBeenSet() const
Definition: GetDimensionValuesRequest.h:306
Aws::CostExplorer::Model::GetDimensionValuesRequest::WithSearchString
GetDimensionValuesRequest & WithSearchString(Aws::String &&value)
Definition: GetDimensionValuesRequest.h:76
Aws::CostExplorer::Model::GetDimensionValuesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: GetDimensionValuesRequest.h:734
Aws::CostExplorer::Model::GetDimensionValuesRequest::GetFilter
const Expression & GetFilter() const
Definition: GetDimensionValuesRequest.h:562
Aws::CostExplorer::Model::GetDimensionValuesRequest::GetDimensionValuesRequest
GetDimensionValuesRequest()
AWSString.h
AWS_COSTEXPLORER_API
#define AWS_COSTEXPLORER_API
Definition: CostExplorer_EXPORTS.h:28
Aws::CostExplorer::Model::GetDimensionValuesRequest::WithNextPageToken
GetDimensionValuesRequest & WithNextPageToken(const char *value)
Definition: GetDimensionValuesRequest.h:800
Aws::CostExplorer::Model::GetDimensionValuesRequest::SetTimePeriod
void SetTimePeriod(const DateInterval &value)
Definition: GetDimensionValuesRequest.h:109
Aws::CostExplorer::Model::GetDimensionValuesRequest::WithFilter
GetDimensionValuesRequest & WithFilter(const Expression &value)
Definition: GetDimensionValuesRequest.h:574
Aws::CostExplorer::Model::GetDimensionValuesRequest::DimensionHasBeenSet
bool DimensionHasBeenSet() const
Definition: GetDimensionValuesRequest.h:151
Context.h
Aws
Definition: AccessManagementClient.h:15
Aws::CostExplorer::Model::GetDimensionValuesRequest::WithContext
GetDimensionValuesRequest & WithContext(const Context &value)
Definition: GetDimensionValuesRequest.h:495
Aws::CostExplorer::Model::GetDimensionValuesRequest::SetContext
void SetContext(Context &&value)
Definition: GetDimensionValuesRequest.h:432
Aws::CostExplorer::Model::GetDimensionValuesRequest::AddSortBy
GetDimensionValuesRequest & AddSortBy(const SortDefinition &value)
Definition: GetDimensionValuesRequest.h:690
Aws::CostExplorer::Model::GetDimensionValuesRequest::SetSearchString
void SetSearchString(Aws::String &&value)
Definition: GetDimensionValuesRequest.h:61
Aws::CostExplorer::Model::GetDimensionValuesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetDimensionValuesRequest.h:36
Aws::CostExplorer::Model::GetDimensionValuesRequest::SetSortBy
void SetSortBy(Aws::Vector< SortDefinition > &&value)
Definition: GetDimensionValuesRequest.h:642
Aws::CostExplorer::Model::GetDimensionValuesRequest::WithDimension
GetDimensionValuesRequest & WithDimension(Dimension &&value)
Definition: GetDimensionValuesRequest.h:179
Aws::CostExplorer::Model::SortDefinition
Definition: SortDefinition.h:33
Aws::CostExplorer::Model::GetDimensionValuesRequest::SetFilter
void SetFilter(Expression &&value)
Definition: GetDimensionValuesRequest.h:571
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CostExplorer::Model::GetDimensionValuesRequest::WithSortBy
GetDimensionValuesRequest & WithSortBy(Aws::Vector< SortDefinition > &&value)
Definition: GetDimensionValuesRequest.h:674
Expression.h
Aws::CostExplorer::Model::GetDimensionValuesRequest::FilterHasBeenSet
bool FilterHasBeenSet() const
Definition: GetDimensionValuesRequest.h:565
Aws::CostExplorer::Model::GetDimensionValuesRequest::WithTimePeriod
GetDimensionValuesRequest & WithTimePeriod(DateInterval &&value)
Definition: GetDimensionValuesRequest.h:136
Aws::CostExplorer::Model::GetDimensionValuesRequest::GetContext
const Context & GetContext() const
Definition: GetDimensionValuesRequest.h:243
Aws::CostExplorer::Model::GetDimensionValuesRequest::WithDimension
GetDimensionValuesRequest & WithDimension(const Dimension &value)
Definition: GetDimensionValuesRequest.h:172
Aws::CostExplorer::Model::GetDimensionValuesRequest::GetTimePeriod
const DateInterval & GetTimePeriod() const
Definition: GetDimensionValuesRequest.h:91
Aws::CostExplorer::Model::GetDimensionValuesRequest::WithContext
GetDimensionValuesRequest & WithContext(Context &&value)
Definition: GetDimensionValuesRequest.h:558
Aws::CostExplorer::Model::GetDimensionValuesRequest::SetNextPageToken
void SetNextPageToken(Aws::String &&value)
Definition: GetDimensionValuesRequest.h:772
Aws::CostExplorer::Model::GetDimensionValuesRequest::SortByHasBeenSet
bool SortByHasBeenSet() const
Definition: GetDimensionValuesRequest.h:610