AWS SDK for C++  1.9.125
AWS SDK for C++
ResetSnapshotAttributeRequest.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 "ResetSnapshotAttribute"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
44  inline const SnapshotAttributeName& GetAttribute() const{ return m_attribute; }
45 
50  inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
51 
56  inline void SetAttribute(const SnapshotAttributeName& value) { m_attributeHasBeenSet = true; m_attribute = value; }
57 
62  inline void SetAttribute(SnapshotAttributeName&& value) { m_attributeHasBeenSet = true; m_attribute = std::move(value); }
63 
68  inline ResetSnapshotAttributeRequest& WithAttribute(const SnapshotAttributeName& value) { SetAttribute(value); return *this;}
69 
74  inline ResetSnapshotAttributeRequest& WithAttribute(SnapshotAttributeName&& value) { SetAttribute(std::move(value)); return *this;}
75 
76 
80  inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
81 
85  inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
86 
90  inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
91 
95  inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); }
96 
100  inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
101 
105  inline ResetSnapshotAttributeRequest& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
106 
110  inline ResetSnapshotAttributeRequest& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
111 
115  inline ResetSnapshotAttributeRequest& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
116 
117 
124  inline bool GetDryRun() const{ return m_dryRun; }
125 
132  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
133 
140  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
141 
148  inline ResetSnapshotAttributeRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
149 
150  private:
151 
152  SnapshotAttributeName m_attribute;
153  bool m_attributeHasBeenSet;
154 
155  Aws::String m_snapshotId;
156  bool m_snapshotIdHasBeenSet;
157 
158  bool m_dryRun;
159  bool m_dryRunHasBeenSet;
160  };
161 
162 } // namespace Model
163 } // namespace EC2
164 } // namespace Aws
Aws::EC2::Model::ResetSnapshotAttributeRequest::SetSnapshotId
void SetSnapshotId(Aws::String &&value)
Definition: ResetSnapshotAttributeRequest.h:95
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::ResetSnapshotAttributeRequest::WithDryRun
ResetSnapshotAttributeRequest & WithDryRun(bool value)
Definition: ResetSnapshotAttributeRequest.h:148
Aws::EC2::Model::ResetSnapshotAttributeRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::ResetSnapshotAttributeRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: ResetSnapshotAttributeRequest.h:132
Aws::EC2::Model::ResetSnapshotAttributeRequest::SetAttribute
void SetAttribute(SnapshotAttributeName &&value)
Definition: ResetSnapshotAttributeRequest.h:62
Aws::EC2::Model::ResetSnapshotAttributeRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::ResetSnapshotAttributeRequest::WithAttribute
ResetSnapshotAttributeRequest & WithAttribute(const SnapshotAttributeName &value)
Definition: ResetSnapshotAttributeRequest.h:68
Aws::EC2::Model::ResetSnapshotAttributeRequest::WithSnapshotId
ResetSnapshotAttributeRequest & WithSnapshotId(const char *value)
Definition: ResetSnapshotAttributeRequest.h:115
Aws::EC2::Model::ResetSnapshotAttributeRequest::ResetSnapshotAttributeRequest
ResetSnapshotAttributeRequest()
Aws::EC2::Model::ResetSnapshotAttributeRequest::WithSnapshotId
ResetSnapshotAttributeRequest & WithSnapshotId(const Aws::String &value)
Definition: ResetSnapshotAttributeRequest.h:105
SnapshotAttributeName.h
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ResetSnapshotAttributeRequest::GetAttribute
const SnapshotAttributeName & GetAttribute() const
Definition: ResetSnapshotAttributeRequest.h:44
Aws::EC2::Model::SnapshotAttributeName
SnapshotAttributeName
Definition: SnapshotAttributeName.h:17
Aws::EC2::Model::ResetSnapshotAttributeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ResetSnapshotAttributeRequest.h:31
Aws::EC2::Model::ResetSnapshotAttributeRequest::SetAttribute
void SetAttribute(const SnapshotAttributeName &value)
Definition: ResetSnapshotAttributeRequest.h:56
Aws::EC2::Model::ResetSnapshotAttributeRequest::SetSnapshotId
void SetSnapshotId(const char *value)
Definition: ResetSnapshotAttributeRequest.h:100
Aws::EC2::Model::ResetSnapshotAttributeRequest
Definition: ResetSnapshotAttributeRequest.h:23
Aws::EC2::Model::ResetSnapshotAttributeRequest::SetDryRun
void SetDryRun(bool value)
Definition: ResetSnapshotAttributeRequest.h:140
EC2Request.h
Aws::EC2::Model::ResetSnapshotAttributeRequest::SetSnapshotId
void SetSnapshotId(const Aws::String &value)
Definition: ResetSnapshotAttributeRequest.h:90
Aws::EC2::Model::ResetSnapshotAttributeRequest::WithSnapshotId
ResetSnapshotAttributeRequest & WithSnapshotId(Aws::String &&value)
Definition: ResetSnapshotAttributeRequest.h:110
AWSString.h
Aws::EC2::Model::ResetSnapshotAttributeRequest::WithAttribute
ResetSnapshotAttributeRequest & WithAttribute(SnapshotAttributeName &&value)
Definition: ResetSnapshotAttributeRequest.h:74
Aws::EC2::Model::ResetSnapshotAttributeRequest::GetSnapshotId
const Aws::String & GetSnapshotId() const
Definition: ResetSnapshotAttributeRequest.h:80
Aws
Definition: AccessManagementClient.h:15
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::ResetSnapshotAttributeRequest::SnapshotIdHasBeenSet
bool SnapshotIdHasBeenSet() const
Definition: ResetSnapshotAttributeRequest.h:85
Aws::EC2::Model::ResetSnapshotAttributeRequest::GetDryRun
bool GetDryRun() const
Definition: ResetSnapshotAttributeRequest.h:124
EC2_EXPORTS.h
Aws::EC2::Model::ResetSnapshotAttributeRequest::AttributeHasBeenSet
bool AttributeHasBeenSet() const
Definition: ResetSnapshotAttributeRequest.h:50