AWS SDK for C++  1.9.67
AWS SDK for C++
DescribeInstanceTypesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
12 #include <aws/ec2/model/Filter.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace EC2
18 {
19 namespace Model
20 {
21 
25  {
26  public:
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 "DescribeInstanceTypes"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
48  inline bool GetDryRun() const{ return m_dryRun; }
49 
56  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
57 
64  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
65 
72  inline DescribeInstanceTypesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
73 
74 
80  inline const Aws::Vector<InstanceType>& GetInstanceTypes() const{ return m_instanceTypes; }
81 
87  inline bool InstanceTypesHasBeenSet() const { return m_instanceTypesHasBeenSet; }
88 
94  inline void SetInstanceTypes(const Aws::Vector<InstanceType>& value) { m_instanceTypesHasBeenSet = true; m_instanceTypes = value; }
95 
101  inline void SetInstanceTypes(Aws::Vector<InstanceType>&& value) { m_instanceTypesHasBeenSet = true; m_instanceTypes = std::move(value); }
102 
108  inline DescribeInstanceTypesRequest& WithInstanceTypes(const Aws::Vector<InstanceType>& value) { SetInstanceTypes(value); return *this;}
109 
115  inline DescribeInstanceTypesRequest& WithInstanceTypes(Aws::Vector<InstanceType>&& value) { SetInstanceTypes(std::move(value)); return *this;}
116 
122  inline DescribeInstanceTypesRequest& AddInstanceTypes(const InstanceType& value) { m_instanceTypesHasBeenSet = true; m_instanceTypes.push_back(value); return *this; }
123 
129  inline DescribeInstanceTypesRequest& AddInstanceTypes(InstanceType&& value) { m_instanceTypesHasBeenSet = true; m_instanceTypes.push_back(std::move(value)); return *this; }
130 
131 
227  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
228 
324  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
325 
421  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
422 
518  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
519 
615  inline DescribeInstanceTypesRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
616 
712  inline DescribeInstanceTypesRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
713 
809  inline DescribeInstanceTypesRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
810 
906  inline DescribeInstanceTypesRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
907 
908 
914  inline int GetMaxResults() const{ return m_maxResults; }
915 
921  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
922 
928  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
929 
935  inline DescribeInstanceTypesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
936 
937 
941  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
942 
946  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
947 
951  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
952 
956  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
957 
961  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
962 
966  inline DescribeInstanceTypesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
967 
971  inline DescribeInstanceTypesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
972 
976  inline DescribeInstanceTypesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
977 
978  private:
979 
980  bool m_dryRun;
981  bool m_dryRunHasBeenSet;
982 
983  Aws::Vector<InstanceType> m_instanceTypes;
984  bool m_instanceTypesHasBeenSet;
985 
986  Aws::Vector<Filter> m_filters;
987  bool m_filtersHasBeenSet;
988 
989  int m_maxResults;
990  bool m_maxResultsHasBeenSet;
991 
992  Aws::String m_nextToken;
993  bool m_nextTokenHasBeenSet;
994  };
995 
996 } // namespace Model
997 } // namespace EC2
998 } // namespace Aws
Aws::EC2::Model::DescribeInstanceTypesRequest::AddFilters
DescribeInstanceTypesRequest & AddFilters(const Filter &value)
Definition: DescribeInstanceTypesRequest.h:809
Aws::EC2::Model::DescribeInstanceTypesRequest::WithInstanceTypes
DescribeInstanceTypesRequest & WithInstanceTypes(const Aws::Vector< InstanceType > &value)
Definition: DescribeInstanceTypesRequest.h:108
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeInstanceTypesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeInstanceTypesRequest.h:956
Aws::EC2::Model::DescribeInstanceTypesRequest::SetInstanceTypes
void SetInstanceTypes(Aws::Vector< InstanceType > &&value)
Definition: DescribeInstanceTypesRequest.h:101
Aws::EC2::Model::DescribeInstanceTypesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeInstanceTypesRequest.h:961
Aws::EC2::Model::DescribeInstanceTypesRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeInstanceTypesRequest.h:64
Aws::EC2::Model::DescribeInstanceTypesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeInstanceTypesRequest.h:33
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeInstanceTypesRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeInstanceTypesRequest.h:324
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeInstanceTypesRequest::GetInstanceTypes
const Aws::Vector< InstanceType > & GetInstanceTypes() const
Definition: DescribeInstanceTypesRequest.h:80
AWSVector.h
Filter.h
Aws::EC2::Model::DescribeInstanceTypesRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeInstanceTypesRequest.h:421
Aws::EC2::Model::DescribeInstanceTypesRequest
Definition: DescribeInstanceTypesRequest.h:25
Aws::EC2::Model::DescribeInstanceTypesRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeInstanceTypesRequest.h:914
Aws::EC2::Model::DescribeInstanceTypesRequest::WithNextToken
DescribeInstanceTypesRequest & WithNextToken(Aws::String &&value)
Definition: DescribeInstanceTypesRequest.h:971
Aws::EC2::Model::DescribeInstanceTypesRequest::SerializePayload
Aws::String SerializePayload() const override
EC2Request.h
Aws::EC2::Model::DescribeInstanceTypesRequest::AddFilters
DescribeInstanceTypesRequest & AddFilters(Filter &&value)
Definition: DescribeInstanceTypesRequest.h:906
Aws::EC2::Model::DescribeInstanceTypesRequest::SetInstanceTypes
void SetInstanceTypes(const Aws::Vector< InstanceType > &value)
Definition: DescribeInstanceTypesRequest.h:94
Aws::EC2::Model::DescribeInstanceTypesRequest::WithNextToken
DescribeInstanceTypesRequest & WithNextToken(const Aws::String &value)
Definition: DescribeInstanceTypesRequest.h:966
Aws::EC2::Model::DescribeInstanceTypesRequest::WithInstanceTypes
DescribeInstanceTypesRequest & WithInstanceTypes(Aws::Vector< InstanceType > &&value)
Definition: DescribeInstanceTypesRequest.h:115
AWSString.h
Aws::EC2::Model::DescribeInstanceTypesRequest::InstanceTypesHasBeenSet
bool InstanceTypesHasBeenSet() const
Definition: DescribeInstanceTypesRequest.h:87
InstanceType.h
Aws::EC2::Model::DescribeInstanceTypesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeInstanceTypesRequest.h:951
Aws::EC2::Model::DescribeInstanceTypesRequest::WithFilters
DescribeInstanceTypesRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeInstanceTypesRequest.h:615
Aws::EC2::Model::DescribeInstanceTypesRequest::WithDryRun
DescribeInstanceTypesRequest & WithDryRun(bool value)
Definition: DescribeInstanceTypesRequest.h:72
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeInstanceTypesRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeInstanceTypesRequest.h:48
Aws::EC2::Model::DescribeInstanceTypesRequest::WithFilters
DescribeInstanceTypesRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeInstanceTypesRequest.h:712
Aws::EC2::Model::DescribeInstanceTypesRequest::AddInstanceTypes
DescribeInstanceTypesRequest & AddInstanceTypes(const InstanceType &value)
Definition: DescribeInstanceTypesRequest.h:122
Aws::EC2::Model::DescribeInstanceTypesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeInstanceTypesRequest.h:928
Aws::EC2::Model::DescribeInstanceTypesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeInstanceTypesRequest.h:946
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DescribeInstanceTypesRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeInstanceTypesRequest.h:227
Aws::EC2::Model::DescribeInstanceTypesRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeInstanceTypesRequest.h:56
Aws::EC2::Model::DescribeInstanceTypesRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeInstanceTypesRequest::WithNextToken
DescribeInstanceTypesRequest & WithNextToken(const char *value)
Definition: DescribeInstanceTypesRequest.h:976
Aws::EC2::Model::DescribeInstanceTypesRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeInstanceTypesRequest.h:518
EC2_EXPORTS.h
Aws::EC2::Model::DescribeInstanceTypesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeInstanceTypesRequest.h:921
Aws::EC2::Model::InstanceType
InstanceType
Definition: InstanceType.h:17
Aws::EC2::Model::DescribeInstanceTypesRequest::AddInstanceTypes
DescribeInstanceTypesRequest & AddInstanceTypes(InstanceType &&value)
Definition: DescribeInstanceTypesRequest.h:129
Aws::EC2::Model::DescribeInstanceTypesRequest::WithMaxResults
DescribeInstanceTypesRequest & WithMaxResults(int value)
Definition: DescribeInstanceTypesRequest.h:935
Aws::EC2::Model::DescribeInstanceTypesRequest::DescribeInstanceTypesRequest
DescribeInstanceTypesRequest()
Aws::EC2::Model::DescribeInstanceTypesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeInstanceTypesRequest.h:941