AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssignTapePoolRequest.h
1
6#pragma once
7#include <aws/storagegateway/StorageGateway_EXPORTS.h>
8#include <aws/storagegateway/StorageGatewayRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace StorageGateway
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_STORAGEGATEWAY_API AssignTapePoolRequest();
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "AssignTapePool"; }
31
32 AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override;
33
34 AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
36
38
42 inline const Aws::String& GetTapeARN() const{ return m_tapeARN; }
43 inline bool TapeARNHasBeenSet() const { return m_tapeARNHasBeenSet; }
44 inline void SetTapeARN(const Aws::String& value) { m_tapeARNHasBeenSet = true; m_tapeARN = value; }
45 inline void SetTapeARN(Aws::String&& value) { m_tapeARNHasBeenSet = true; m_tapeARN = std::move(value); }
46 inline void SetTapeARN(const char* value) { m_tapeARNHasBeenSet = true; m_tapeARN.assign(value); }
47 inline AssignTapePoolRequest& WithTapeARN(const Aws::String& value) { SetTapeARN(value); return *this;}
48 inline AssignTapePoolRequest& WithTapeARN(Aws::String&& value) { SetTapeARN(std::move(value)); return *this;}
49 inline AssignTapePoolRequest& WithTapeARN(const char* value) { SetTapeARN(value); return *this;}
51
53
60 inline const Aws::String& GetPoolId() const{ return m_poolId; }
61 inline bool PoolIdHasBeenSet() const { return m_poolIdHasBeenSet; }
62 inline void SetPoolId(const Aws::String& value) { m_poolIdHasBeenSet = true; m_poolId = value; }
63 inline void SetPoolId(Aws::String&& value) { m_poolIdHasBeenSet = true; m_poolId = std::move(value); }
64 inline void SetPoolId(const char* value) { m_poolIdHasBeenSet = true; m_poolId.assign(value); }
65 inline AssignTapePoolRequest& WithPoolId(const Aws::String& value) { SetPoolId(value); return *this;}
66 inline AssignTapePoolRequest& WithPoolId(Aws::String&& value) { SetPoolId(std::move(value)); return *this;}
67 inline AssignTapePoolRequest& WithPoolId(const char* value) { SetPoolId(value); return *this;}
69
71
80 inline bool GetBypassGovernanceRetention() const{ return m_bypassGovernanceRetention; }
81 inline bool BypassGovernanceRetentionHasBeenSet() const { return m_bypassGovernanceRetentionHasBeenSet; }
82 inline void SetBypassGovernanceRetention(bool value) { m_bypassGovernanceRetentionHasBeenSet = true; m_bypassGovernanceRetention = value; }
85 private:
86
87 Aws::String m_tapeARN;
88 bool m_tapeARNHasBeenSet = false;
89
90 Aws::String m_poolId;
91 bool m_poolIdHasBeenSet = false;
92
93 bool m_bypassGovernanceRetention;
94 bool m_bypassGovernanceRetentionHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace StorageGateway
99} // namespace Aws
AssignTapePoolRequest & WithTapeARN(const char *value)
virtual const char * GetServiceRequestName() const override
AssignTapePoolRequest & WithBypassGovernanceRetention(bool value)
AssignTapePoolRequest & WithTapeARN(Aws::String &&value)
AssignTapePoolRequest & WithTapeARN(const Aws::String &value)
AssignTapePoolRequest & WithPoolId(const char *value)
AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AssignTapePoolRequest & WithPoolId(const Aws::String &value)
AssignTapePoolRequest & WithPoolId(Aws::String &&value)
AWS_STORAGEGATEWAY_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