AWS SDK for C++  1.9.16
AWS SDK for C++
DescribeAccountAttributesRequest.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 <utility>
12 
13 namespace Aws
14 {
15 namespace EC2
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "DescribeAccountAttributes"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
43  inline const Aws::Vector<AccountAttributeName>& GetAttributeNames() const{ return m_attributeNames; }
44 
48  inline bool AttributeNamesHasBeenSet() const { return m_attributeNamesHasBeenSet; }
49 
53  inline void SetAttributeNames(const Aws::Vector<AccountAttributeName>& value) { m_attributeNamesHasBeenSet = true; m_attributeNames = value; }
54 
58  inline void SetAttributeNames(Aws::Vector<AccountAttributeName>&& value) { m_attributeNamesHasBeenSet = true; m_attributeNames = std::move(value); }
59 
63  inline DescribeAccountAttributesRequest& WithAttributeNames(const Aws::Vector<AccountAttributeName>& value) { SetAttributeNames(value); return *this;}
64 
68  inline DescribeAccountAttributesRequest& WithAttributeNames(Aws::Vector<AccountAttributeName>&& value) { SetAttributeNames(std::move(value)); return *this;}
69 
73  inline DescribeAccountAttributesRequest& AddAttributeNames(const AccountAttributeName& value) { m_attributeNamesHasBeenSet = true; m_attributeNames.push_back(value); return *this; }
74 
78  inline DescribeAccountAttributesRequest& AddAttributeNames(AccountAttributeName&& value) { m_attributeNamesHasBeenSet = true; m_attributeNames.push_back(std::move(value)); return *this; }
79 
80 
87  inline bool GetDryRun() const{ return m_dryRun; }
88 
95  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
96 
103  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
104 
111  inline DescribeAccountAttributesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
112 
113  private:
114 
115  Aws::Vector<AccountAttributeName> m_attributeNames;
116  bool m_attributeNamesHasBeenSet;
117 
118  bool m_dryRun;
119  bool m_dryRunHasBeenSet;
120  };
121 
122 } // namespace Model
123 } // namespace EC2
124 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeAccountAttributesRequest::GetAttributeNames
const Aws::Vector< AccountAttributeName > & GetAttributeNames() const
Definition: DescribeAccountAttributesRequest.h:43
AccountAttributeName.h
Aws::EC2::Model::AccountAttributeName
AccountAttributeName
Definition: AccountAttributeName.h:17
Aws::EC2::Model::DescribeAccountAttributesRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeAccountAttributesRequest::AttributeNamesHasBeenSet
bool AttributeNamesHasBeenSet() const
Definition: DescribeAccountAttributesRequest.h:48
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeAccountAttributesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::EC2::Model::DescribeAccountAttributesRequest::AddAttributeNames
DescribeAccountAttributesRequest & AddAttributeNames(const AccountAttributeName &value)
Definition: DescribeAccountAttributesRequest.h:73
EC2Request.h
Aws::EC2::Model::DescribeAccountAttributesRequest::WithAttributeNames
DescribeAccountAttributesRequest & WithAttributeNames(Aws::Vector< AccountAttributeName > &&value)
Definition: DescribeAccountAttributesRequest.h:68
Aws::EC2::Model::DescribeAccountAttributesRequest::SetAttributeNames
void SetAttributeNames(const Aws::Vector< AccountAttributeName > &value)
Definition: DescribeAccountAttributesRequest.h:53
Aws::EC2::Model::DescribeAccountAttributesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeAccountAttributesRequest.h:31
Aws::EC2::Model::DescribeAccountAttributesRequest::WithAttributeNames
DescribeAccountAttributesRequest & WithAttributeNames(const Aws::Vector< AccountAttributeName > &value)
Definition: DescribeAccountAttributesRequest.h:63
Aws::EC2::Model::DescribeAccountAttributesRequest::SetAttributeNames
void SetAttributeNames(Aws::Vector< AccountAttributeName > &&value)
Definition: DescribeAccountAttributesRequest.h:58
Aws::EC2::Model::DescribeAccountAttributesRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeAccountAttributesRequest.h:103
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeAccountAttributesRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeAccountAttributesRequest.h:95
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::DescribeAccountAttributesRequest
Definition: DescribeAccountAttributesRequest.h:23
Aws::EC2::Model::DescribeAccountAttributesRequest::DescribeAccountAttributesRequest
DescribeAccountAttributesRequest()
EC2_EXPORTS.h
Aws::EC2::Model::DescribeAccountAttributesRequest::WithDryRun
DescribeAccountAttributesRequest & WithDryRun(bool value)
Definition: DescribeAccountAttributesRequest.h:111
Aws::EC2::Model::DescribeAccountAttributesRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeAccountAttributesRequest.h:87
Aws::EC2::Model::DescribeAccountAttributesRequest::AddAttributeNames
DescribeAccountAttributesRequest & AddAttributeNames(AccountAttributeName &&value)
Definition: DescribeAccountAttributesRequest.h:78