AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
AssignTapePoolRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/storagegateway/StorageGatewayRequest.h>
9#include <aws/storagegateway/StorageGateway_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace StorageGateway {
15namespace Model {
16
20 public:
21 AWS_STORAGEGATEWAY_API AssignTapePoolRequest() = 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 "AssignTapePool"; }
28
29 AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override;
30
31 AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
34
38 inline const Aws::String& GetTapeARN() const { return m_tapeARN; }
39 inline bool TapeARNHasBeenSet() const { return m_tapeARNHasBeenSet; }
40 template <typename TapeARNT = Aws::String>
41 void SetTapeARN(TapeARNT&& value) {
42 m_tapeARNHasBeenSet = true;
43 m_tapeARN = std::forward<TapeARNT>(value);
44 }
45 template <typename TapeARNT = Aws::String>
47 SetTapeARN(std::forward<TapeARNT>(value));
48 return *this;
49 }
51
53
60 inline const Aws::String& GetPoolId() const { return m_poolId; }
61 inline bool PoolIdHasBeenSet() const { return m_poolIdHasBeenSet; }
62 template <typename PoolIdT = Aws::String>
63 void SetPoolId(PoolIdT&& value) {
64 m_poolIdHasBeenSet = true;
65 m_poolId = std::forward<PoolIdT>(value);
66 }
67 template <typename PoolIdT = Aws::String>
69 SetPoolId(std::forward<PoolIdT>(value));
70 return *this;
71 }
73
75
84 inline bool GetBypassGovernanceRetention() const { return m_bypassGovernanceRetention; }
85 inline bool BypassGovernanceRetentionHasBeenSet() const { return m_bypassGovernanceRetentionHasBeenSet; }
86 inline void SetBypassGovernanceRetention(bool value) {
87 m_bypassGovernanceRetentionHasBeenSet = true;
88 m_bypassGovernanceRetention = value;
89 }
92 return *this;
93 }
95 private:
96 Aws::String m_tapeARN;
97
98 Aws::String m_poolId;
99
100 bool m_bypassGovernanceRetention{false};
101 bool m_tapeARNHasBeenSet = false;
102 bool m_poolIdHasBeenSet = false;
103 bool m_bypassGovernanceRetentionHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace StorageGateway
108} // namespace Aws
virtual const char * GetServiceRequestName() const override
AssignTapePoolRequest & WithBypassGovernanceRetention(bool value)
AssignTapePoolRequest & WithTapeARN(TapeARNT &&value)
AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override
AssignTapePoolRequest & WithPoolId(PoolIdT &&value)
AWS_STORAGEGATEWAY_API AssignTapePoolRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String