AWS SDK for C++  1.9.66
AWS SDK for C++
ResetFpgaImageAttributeRequest.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 "ResetFpgaImageAttribute"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
46  inline bool GetDryRun() const{ return m_dryRun; }
47 
54  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
55 
62  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
63 
70  inline ResetFpgaImageAttributeRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
71 
72 
76  inline const Aws::String& GetFpgaImageId() const{ return m_fpgaImageId; }
77 
81  inline bool FpgaImageIdHasBeenSet() const { return m_fpgaImageIdHasBeenSet; }
82 
86  inline void SetFpgaImageId(const Aws::String& value) { m_fpgaImageIdHasBeenSet = true; m_fpgaImageId = value; }
87 
91  inline void SetFpgaImageId(Aws::String&& value) { m_fpgaImageIdHasBeenSet = true; m_fpgaImageId = std::move(value); }
92 
96  inline void SetFpgaImageId(const char* value) { m_fpgaImageIdHasBeenSet = true; m_fpgaImageId.assign(value); }
97 
101  inline ResetFpgaImageAttributeRequest& WithFpgaImageId(const Aws::String& value) { SetFpgaImageId(value); return *this;}
102 
106  inline ResetFpgaImageAttributeRequest& WithFpgaImageId(Aws::String&& value) { SetFpgaImageId(std::move(value)); return *this;}
107 
111  inline ResetFpgaImageAttributeRequest& WithFpgaImageId(const char* value) { SetFpgaImageId(value); return *this;}
112 
113 
117  inline const ResetFpgaImageAttributeName& GetAttribute() const{ return m_attribute; }
118 
122  inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
123 
127  inline void SetAttribute(const ResetFpgaImageAttributeName& value) { m_attributeHasBeenSet = true; m_attribute = value; }
128 
132  inline void SetAttribute(ResetFpgaImageAttributeName&& value) { m_attributeHasBeenSet = true; m_attribute = std::move(value); }
133 
137  inline ResetFpgaImageAttributeRequest& WithAttribute(const ResetFpgaImageAttributeName& value) { SetAttribute(value); return *this;}
138 
142  inline ResetFpgaImageAttributeRequest& WithAttribute(ResetFpgaImageAttributeName&& value) { SetAttribute(std::move(value)); return *this;}
143 
144  private:
145 
146  bool m_dryRun;
147  bool m_dryRunHasBeenSet;
148 
149  Aws::String m_fpgaImageId;
150  bool m_fpgaImageIdHasBeenSet;
151 
152  ResetFpgaImageAttributeName m_attribute;
153  bool m_attributeHasBeenSet;
154  };
155 
156 } // namespace Model
157 } // namespace EC2
158 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::ResetFpgaImageAttributeRequest::AttributeHasBeenSet
bool AttributeHasBeenSet() const
Definition: ResetFpgaImageAttributeRequest.h:122
Aws::EC2::Model::ResetFpgaImageAttributeRequest::FpgaImageIdHasBeenSet
bool FpgaImageIdHasBeenSet() const
Definition: ResetFpgaImageAttributeRequest.h:81
Aws::EC2::Model::ResetFpgaImageAttributeRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: ResetFpgaImageAttributeRequest.h:54
Aws::EC2::Model::ResetFpgaImageAttributeRequest::WithDryRun
ResetFpgaImageAttributeRequest & WithDryRun(bool value)
Definition: ResetFpgaImageAttributeRequest.h:70
Aws::EC2::Model::ResetFpgaImageAttributeRequest::WithAttribute
ResetFpgaImageAttributeRequest & WithAttribute(const ResetFpgaImageAttributeName &value)
Definition: ResetFpgaImageAttributeRequest.h:137
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ResetFpgaImageAttributeRequest::SetFpgaImageId
void SetFpgaImageId(Aws::String &&value)
Definition: ResetFpgaImageAttributeRequest.h:91
Aws::EC2::Model::ResetFpgaImageAttributeRequest::SetDryRun
void SetDryRun(bool value)
Definition: ResetFpgaImageAttributeRequest.h:62
Aws::EC2::Model::ResetFpgaImageAttributeRequest::SetFpgaImageId
void SetFpgaImageId(const char *value)
Definition: ResetFpgaImageAttributeRequest.h:96
Aws::EC2::Model::ResetFpgaImageAttributeRequest::WithAttribute
ResetFpgaImageAttributeRequest & WithAttribute(ResetFpgaImageAttributeName &&value)
Definition: ResetFpgaImageAttributeRequest.h:142
Aws::EC2::Model::ResetFpgaImageAttributeRequest::WithFpgaImageId
ResetFpgaImageAttributeRequest & WithFpgaImageId(Aws::String &&value)
Definition: ResetFpgaImageAttributeRequest.h:106
Aws::EC2::Model::ResetFpgaImageAttributeRequest::WithFpgaImageId
ResetFpgaImageAttributeRequest & WithFpgaImageId(const char *value)
Definition: ResetFpgaImageAttributeRequest.h:111
Aws::EC2::Model::ResetFpgaImageAttributeRequest::GetAttribute
const ResetFpgaImageAttributeName & GetAttribute() const
Definition: ResetFpgaImageAttributeRequest.h:117
EC2Request.h
Aws::EC2::Model::ResetFpgaImageAttributeRequest::SetFpgaImageId
void SetFpgaImageId(const Aws::String &value)
Definition: ResetFpgaImageAttributeRequest.h:86
AWSString.h
Aws::EC2::Model::ResetFpgaImageAttributeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ResetFpgaImageAttributeRequest.h:31
Aws::EC2::Model::ResetFpgaImageAttributeRequest
Definition: ResetFpgaImageAttributeRequest.h:23
Aws::EC2::Model::ResetFpgaImageAttributeRequest::GetDryRun
bool GetDryRun() const
Definition: ResetFpgaImageAttributeRequest.h:46
Aws
Definition: AccessManagementClient.h:15
ResetFpgaImageAttributeName.h
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::ResetFpgaImageAttributeRequest::SetAttribute
void SetAttribute(ResetFpgaImageAttributeName &&value)
Definition: ResetFpgaImageAttributeRequest.h:132
Aws::EC2::Model::ResetFpgaImageAttributeRequest::SetAttribute
void SetAttribute(const ResetFpgaImageAttributeName &value)
Definition: ResetFpgaImageAttributeRequest.h:127
Aws::EC2::Model::ResetFpgaImageAttributeRequest::WithFpgaImageId
ResetFpgaImageAttributeRequest & WithFpgaImageId(const Aws::String &value)
Definition: ResetFpgaImageAttributeRequest.h:101
EC2_EXPORTS.h
Aws::EC2::Model::ResetFpgaImageAttributeName
ResetFpgaImageAttributeName
Definition: ResetFpgaImageAttributeName.h:17
Aws::EC2::Model::ResetFpgaImageAttributeRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::ResetFpgaImageAttributeRequest::GetFpgaImageId
const Aws::String & GetFpgaImageId() const
Definition: ResetFpgaImageAttributeRequest.h:76
Aws::EC2::Model::ResetFpgaImageAttributeRequest::ResetFpgaImageAttributeRequest
ResetFpgaImageAttributeRequest()
Aws::EC2::Model::ResetFpgaImageAttributeRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override