AWS SDK for C++  1.8.23
AWS SDK for C++
DescribeSpotInstanceRequestsRequest.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>
11 #include <aws/ec2/model/Filter.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace EC2
17 {
18 namespace Model
19 {
20 
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 "DescribeSpotInstanceRequests"; }
37 
38  Aws::String SerializePayload() const override;
39 
40  protected:
41  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42 
43  public:
44 
120  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
121 
197  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
198 
274  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
275 
351  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
352 
428  inline DescribeSpotInstanceRequestsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
429 
505  inline DescribeSpotInstanceRequestsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
506 
582  inline DescribeSpotInstanceRequestsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
583 
659  inline DescribeSpotInstanceRequestsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
660 
661 
668  inline bool GetDryRun() const{ return m_dryRun; }
669 
676  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
677 
684  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
685 
692  inline DescribeSpotInstanceRequestsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
693 
694 
698  inline const Aws::Vector<Aws::String>& GetSpotInstanceRequestIds() const{ return m_spotInstanceRequestIds; }
699 
703  inline bool SpotInstanceRequestIdsHasBeenSet() const { return m_spotInstanceRequestIdsHasBeenSet; }
704 
708  inline void SetSpotInstanceRequestIds(const Aws::Vector<Aws::String>& value) { m_spotInstanceRequestIdsHasBeenSet = true; m_spotInstanceRequestIds = value; }
709 
713  inline void SetSpotInstanceRequestIds(Aws::Vector<Aws::String>&& value) { m_spotInstanceRequestIdsHasBeenSet = true; m_spotInstanceRequestIds = std::move(value); }
714 
718  inline DescribeSpotInstanceRequestsRequest& WithSpotInstanceRequestIds(const Aws::Vector<Aws::String>& value) { SetSpotInstanceRequestIds(value); return *this;}
719 
723  inline DescribeSpotInstanceRequestsRequest& WithSpotInstanceRequestIds(Aws::Vector<Aws::String>&& value) { SetSpotInstanceRequestIds(std::move(value)); return *this;}
724 
728  inline DescribeSpotInstanceRequestsRequest& AddSpotInstanceRequestIds(const Aws::String& value) { m_spotInstanceRequestIdsHasBeenSet = true; m_spotInstanceRequestIds.push_back(value); return *this; }
729 
733  inline DescribeSpotInstanceRequestsRequest& AddSpotInstanceRequestIds(Aws::String&& value) { m_spotInstanceRequestIdsHasBeenSet = true; m_spotInstanceRequestIds.push_back(std::move(value)); return *this; }
734 
738  inline DescribeSpotInstanceRequestsRequest& AddSpotInstanceRequestIds(const char* value) { m_spotInstanceRequestIdsHasBeenSet = true; m_spotInstanceRequestIds.push_back(value); return *this; }
739 
740 
745  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
746 
751  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
752 
757  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
758 
763  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
764 
769  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
770 
775  inline DescribeSpotInstanceRequestsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
776 
781  inline DescribeSpotInstanceRequestsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
782 
787  inline DescribeSpotInstanceRequestsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
788 
789 
795  inline int GetMaxResults() const{ return m_maxResults; }
796 
802  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
803 
809  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
810 
816  inline DescribeSpotInstanceRequestsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
817 
818  private:
819 
820  Aws::Vector<Filter> m_filters;
821  bool m_filtersHasBeenSet;
822 
823  bool m_dryRun;
824  bool m_dryRunHasBeenSet;
825 
826  Aws::Vector<Aws::String> m_spotInstanceRequestIds;
827  bool m_spotInstanceRequestIdsHasBeenSet;
828 
829  Aws::String m_nextToken;
830  bool m_nextTokenHasBeenSet;
831 
832  int m_maxResults;
833  bool m_maxResultsHasBeenSet;
834  };
835 
836 } // namespace Model
837 } // namespace EC2
838 } // namespace Aws
DescribeSpotInstanceRequestsRequest & WithSpotInstanceRequestIds(const Aws::Vector< Aws::String > &value)
DescribeSpotInstanceRequestsRequest & AddFilters(const Filter &value)
DescribeSpotInstanceRequestsRequest & WithDryRun(bool value)
DescribeSpotInstanceRequestsRequest & WithSpotInstanceRequestIds(Aws::Vector< Aws::String > &&value)
DescribeSpotInstanceRequestsRequest & AddSpotInstanceRequestIds(const Aws::String &value)
void SetSpotInstanceRequestIds(const Aws::Vector< Aws::String > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
DescribeSpotInstanceRequestsRequest & WithNextToken(const char *value)
DescribeSpotInstanceRequestsRequest & AddSpotInstanceRequestIds(Aws::String &&value)
DescribeSpotInstanceRequestsRequest & WithFilters(const Aws::Vector< Filter > &value)
DescribeSpotInstanceRequestsRequest & WithNextToken(Aws::String &&value)
DescribeSpotInstanceRequestsRequest & WithFilters(Aws::Vector< Filter > &&value)
DescribeSpotInstanceRequestsRequest & AddSpotInstanceRequestIds(const char *value)
DescribeSpotInstanceRequestsRequest & WithNextToken(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::Vector< Aws::String > & GetSpotInstanceRequestIds() const
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
DescribeSpotInstanceRequestsRequest & AddFilters(Filter &&value)
DescribeSpotInstanceRequestsRequest & WithMaxResults(int value)