AWS SDK for C++  1.8.95
AWS SDK for C++
DescribeNetworkInterfacesRequest.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 "DescribeNetworkInterfaces"; }
37 
38  Aws::String SerializePayload() const override;
39 
40  protected:
41  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42 
43  public:
44 
116  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
117 
189  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
190 
262  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
263 
335  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
336 
408  inline DescribeNetworkInterfacesRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
409 
481  inline DescribeNetworkInterfacesRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
482 
554  inline DescribeNetworkInterfacesRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
555 
627  inline DescribeNetworkInterfacesRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
628 
629 
636  inline bool GetDryRun() const{ return m_dryRun; }
637 
644  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
645 
652  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
653 
660  inline DescribeNetworkInterfacesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
661 
662 
667  inline const Aws::Vector<Aws::String>& GetNetworkInterfaceIds() const{ return m_networkInterfaceIds; }
668 
673  inline bool NetworkInterfaceIdsHasBeenSet() const { return m_networkInterfaceIdsHasBeenSet; }
674 
679  inline void SetNetworkInterfaceIds(const Aws::Vector<Aws::String>& value) { m_networkInterfaceIdsHasBeenSet = true; m_networkInterfaceIds = value; }
680 
685  inline void SetNetworkInterfaceIds(Aws::Vector<Aws::String>&& value) { m_networkInterfaceIdsHasBeenSet = true; m_networkInterfaceIds = std::move(value); }
686 
691  inline DescribeNetworkInterfacesRequest& WithNetworkInterfaceIds(const Aws::Vector<Aws::String>& value) { SetNetworkInterfaceIds(value); return *this;}
692 
697  inline DescribeNetworkInterfacesRequest& WithNetworkInterfaceIds(Aws::Vector<Aws::String>&& value) { SetNetworkInterfaceIds(std::move(value)); return *this;}
698 
703  inline DescribeNetworkInterfacesRequest& AddNetworkInterfaceIds(const Aws::String& value) { m_networkInterfaceIdsHasBeenSet = true; m_networkInterfaceIds.push_back(value); return *this; }
704 
709  inline DescribeNetworkInterfacesRequest& AddNetworkInterfaceIds(Aws::String&& value) { m_networkInterfaceIdsHasBeenSet = true; m_networkInterfaceIds.push_back(std::move(value)); return *this; }
710 
715  inline DescribeNetworkInterfacesRequest& AddNetworkInterfaceIds(const char* value) { m_networkInterfaceIdsHasBeenSet = true; m_networkInterfaceIds.push_back(value); return *this; }
716 
717 
721  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
722 
726  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
727 
731  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
732 
736  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
737 
741  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
742 
746  inline DescribeNetworkInterfacesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
747 
751  inline DescribeNetworkInterfacesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
752 
756  inline DescribeNetworkInterfacesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
757 
758 
765  inline int GetMaxResults() const{ return m_maxResults; }
766 
773  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
774 
781  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
782 
789  inline DescribeNetworkInterfacesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
790 
791  private:
792 
793  Aws::Vector<Filter> m_filters;
794  bool m_filtersHasBeenSet;
795 
796  bool m_dryRun;
797  bool m_dryRunHasBeenSet;
798 
799  Aws::Vector<Aws::String> m_networkInterfaceIds;
800  bool m_networkInterfaceIdsHasBeenSet;
801 
802  Aws::String m_nextToken;
803  bool m_nextTokenHasBeenSet;
804 
805  int m_maxResults;
806  bool m_maxResultsHasBeenSet;
807  };
808 
809 } // namespace Model
810 } // namespace EC2
811 } // namespace Aws
void SetNetworkInterfaceIds(Aws::Vector< Aws::String > &&value)
DescribeNetworkInterfacesRequest & WithNetworkInterfaceIds(Aws::Vector< Aws::String > &&value)
DescribeNetworkInterfacesRequest & AddNetworkInterfaceIds(Aws::String &&value)
DescribeNetworkInterfacesRequest & WithFilters(const Aws::Vector< Filter > &value)
const Aws::Vector< Aws::String > & GetNetworkInterfaceIds() const
void SetNetworkInterfaceIds(const Aws::Vector< Aws::String > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
DescribeNetworkInterfacesRequest & AddFilters(Filter &&value)
DescribeNetworkInterfacesRequest & WithNextToken(Aws::String &&value)
DescribeNetworkInterfacesRequest & WithNextToken(const char *value)
DescribeNetworkInterfacesRequest & WithNextToken(const Aws::String &value)
DescribeNetworkInterfacesRequest & AddFilters(const Filter &value)
DescribeNetworkInterfacesRequest & WithDryRun(bool value)
DescribeNetworkInterfacesRequest & AddNetworkInterfaceIds(const Aws::String &value)
DescribeNetworkInterfacesRequest & WithMaxResults(int value)
DescribeNetworkInterfacesRequest & WithNetworkInterfaceIds(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeNetworkInterfacesRequest & WithFilters(Aws::Vector< Filter > &&value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
DescribeNetworkInterfacesRequest & AddNetworkInterfaceIds(const char *value)