AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResetImageAttributeRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/model/ResetImageAttributeName.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace EC2
16{
17namespace Model
18{
19
27 {
28 public:
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "ResetImageAttribute"; }
36
37 AWS_EC2_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
45
49 inline const ResetImageAttributeName& GetAttribute() const{ return m_attribute; }
50 inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
51 inline void SetAttribute(const ResetImageAttributeName& value) { m_attributeHasBeenSet = true; m_attribute = value; }
52 inline void SetAttribute(ResetImageAttributeName&& value) { m_attributeHasBeenSet = true; m_attribute = std::move(value); }
54 inline ResetImageAttributeRequest& WithAttribute(ResetImageAttributeName&& value) { SetAttribute(std::move(value)); return *this;}
56
58
61 inline const Aws::String& GetImageId() const{ return m_imageId; }
62 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
63 inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
64 inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
65 inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); }
66 inline ResetImageAttributeRequest& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
67 inline ResetImageAttributeRequest& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
68 inline ResetImageAttributeRequest& WithImageId(const char* value) { SetImageId(value); return *this;}
70
72
78 inline bool GetDryRun() const{ return m_dryRun; }
79 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
80 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
81 inline ResetImageAttributeRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
83 private:
84
85 ResetImageAttributeName m_attribute;
86 bool m_attributeHasBeenSet = false;
87
88 Aws::String m_imageId;
89 bool m_imageIdHasBeenSet = false;
90
91 bool m_dryRun;
92 bool m_dryRunHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace EC2
97} // namespace Aws
virtual const char * GetServiceRequestName() const override
ResetImageAttributeRequest & WithImageId(const Aws::String &value)
ResetImageAttributeRequest & WithImageId(const char *value)
ResetImageAttributeRequest & WithImageId(Aws::String &&value)
AWS_EC2_API Aws::String SerializePayload() const override
ResetImageAttributeRequest & WithDryRun(bool value)
void SetAttribute(const ResetImageAttributeName &value)
void SetAttribute(ResetImageAttributeName &&value)
ResetImageAttributeRequest & WithAttribute(ResetImageAttributeName &&value)
const ResetImageAttributeName & GetAttribute() const
ResetImageAttributeRequest & WithAttribute(const ResetImageAttributeName &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String