AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ModifySnapshotTierRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/TargetStorageTier.h>
11#include <utility>
12
13namespace Aws
14{
15namespace EC2
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_EC2_API ModifySnapshotTierRequest() = 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 "ModifySnapshotTier"; }
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
44 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
45 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
46 template<typename SnapshotIdT = Aws::String>
47 void SetSnapshotId(SnapshotIdT&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::forward<SnapshotIdT>(value); }
48 template<typename SnapshotIdT = Aws::String>
49 ModifySnapshotTierRequest& WithSnapshotId(SnapshotIdT&& value) { SetSnapshotId(std::forward<SnapshotIdT>(value)); return *this;}
51
53
56 inline TargetStorageTier GetStorageTier() const { return m_storageTier; }
57 inline bool StorageTierHasBeenSet() const { return m_storageTierHasBeenSet; }
58 inline void SetStorageTier(TargetStorageTier value) { m_storageTierHasBeenSet = true; m_storageTier = value; }
61
63
69 inline bool GetDryRun() const { return m_dryRun; }
70 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
71 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
72 inline ModifySnapshotTierRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
74 private:
75
76 Aws::String m_snapshotId;
77 bool m_snapshotIdHasBeenSet = false;
78
80 bool m_storageTierHasBeenSet = false;
81
82 bool m_dryRun{false};
83 bool m_dryRunHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace EC2
88} // namespace Aws
ModifySnapshotTierRequest & WithSnapshotId(SnapshotIdT &&value)
ModifySnapshotTierRequest & WithDryRun(bool value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_EC2_API ModifySnapshotTierRequest()=default
ModifySnapshotTierRequest & WithStorageTier(TargetStorageTier value)
AWS_EC2_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String