AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GetSnapshotRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/redshift-serverless/RedshiftServerlessRequest.h>
9#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace RedshiftServerless {
15namespace Model {
16
20 public:
21 AWS_REDSHIFTSERVERLESS_API GetSnapshotRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "GetSnapshot"; }
28
29 AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override;
30
31 AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
34
38 inline const Aws::String& GetOwnerAccount() const { return m_ownerAccount; }
39 inline bool OwnerAccountHasBeenSet() const { return m_ownerAccountHasBeenSet; }
40 template <typename OwnerAccountT = Aws::String>
41 void SetOwnerAccount(OwnerAccountT&& value) {
42 m_ownerAccountHasBeenSet = true;
43 m_ownerAccount = std::forward<OwnerAccountT>(value);
44 }
45 template <typename OwnerAccountT = Aws::String>
46 GetSnapshotRequest& WithOwnerAccount(OwnerAccountT&& value) {
47 SetOwnerAccount(std::forward<OwnerAccountT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetSnapshotArn() const { return m_snapshotArn; }
57 inline bool SnapshotArnHasBeenSet() const { return m_snapshotArnHasBeenSet; }
58 template <typename SnapshotArnT = Aws::String>
59 void SetSnapshotArn(SnapshotArnT&& value) {
60 m_snapshotArnHasBeenSet = true;
61 m_snapshotArn = std::forward<SnapshotArnT>(value);
62 }
63 template <typename SnapshotArnT = Aws::String>
64 GetSnapshotRequest& WithSnapshotArn(SnapshotArnT&& value) {
65 SetSnapshotArn(std::forward<SnapshotArnT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetSnapshotName() const { return m_snapshotName; }
75 inline bool SnapshotNameHasBeenSet() const { return m_snapshotNameHasBeenSet; }
76 template <typename SnapshotNameT = Aws::String>
77 void SetSnapshotName(SnapshotNameT&& value) {
78 m_snapshotNameHasBeenSet = true;
79 m_snapshotName = std::forward<SnapshotNameT>(value);
80 }
81 template <typename SnapshotNameT = Aws::String>
82 GetSnapshotRequest& WithSnapshotName(SnapshotNameT&& value) {
83 SetSnapshotName(std::forward<SnapshotNameT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_ownerAccount;
89
90 Aws::String m_snapshotArn;
91
92 Aws::String m_snapshotName;
93 bool m_ownerAccountHasBeenSet = false;
94 bool m_snapshotArnHasBeenSet = false;
95 bool m_snapshotNameHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace RedshiftServerless
100} // namespace Aws
GetSnapshotRequest & WithSnapshotName(SnapshotNameT &&value)
GetSnapshotRequest & WithOwnerAccount(OwnerAccountT &&value)
AWS_REDSHIFTSERVERLESS_API GetSnapshotRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetSnapshotRequest & WithSnapshotArn(SnapshotArnT &&value)
AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String