AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ResetSnapshotAttributeRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/model/SnapshotAttributeName.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace EC2
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_EC2_API ResetSnapshotAttributeRequest() = default;
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_EC2_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37
38 public:
39
41
45 inline SnapshotAttributeName GetAttribute() const { return m_attribute; }
46 inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
47 inline void SetAttribute(SnapshotAttributeName value) { m_attributeHasBeenSet = true; m_attribute = value; }
50
52
55 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
56 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
57 template<typename SnapshotIdT = Aws::String>
58 void SetSnapshotId(SnapshotIdT&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::forward<SnapshotIdT>(value); }
59 template<typename SnapshotIdT = Aws::String>
60 ResetSnapshotAttributeRequest& WithSnapshotId(SnapshotIdT&& value) { SetSnapshotId(std::forward<SnapshotIdT>(value)); return *this;}
62
64
70 inline bool GetDryRun() const { return m_dryRun; }
71 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
72 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
73 inline ResetSnapshotAttributeRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
75 private:
76
78 bool m_attributeHasBeenSet = false;
79
80 Aws::String m_snapshotId;
81 bool m_snapshotIdHasBeenSet = false;
82
83 bool m_dryRun{false};
84 bool m_dryRunHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace EC2
89} // namespace Aws
ResetSnapshotAttributeRequest & WithDryRun(bool value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_EC2_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
ResetSnapshotAttributeRequest & WithSnapshotId(SnapshotIdT &&value)
ResetSnapshotAttributeRequest & WithAttribute(SnapshotAttributeName value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String