AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
InitiateVaultLockRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/glacier/GlacierRequest.h>
9#include <aws/glacier/Glacier_EXPORTS.h>
10#include <aws/glacier/model/VaultLockPolicy.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Glacier {
16namespace Model {
17
25 public:
26 AWS_GLACIER_API InitiateVaultLockRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "InitiateVaultLock"; }
33
34 AWS_GLACIER_API Aws::String SerializePayload() const override;
35
37
45 inline const Aws::String& GetAccountId() const { return m_accountId; }
46 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
47 template <typename AccountIdT = Aws::String>
48 void SetAccountId(AccountIdT&& value) {
49 m_accountIdHasBeenSet = true;
50 m_accountId = std::forward<AccountIdT>(value);
51 }
52 template <typename AccountIdT = Aws::String>
54 SetAccountId(std::forward<AccountIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetVaultName() const { return m_vaultName; }
64 inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
65 template <typename VaultNameT = Aws::String>
66 void SetVaultName(VaultNameT&& value) {
67 m_vaultNameHasBeenSet = true;
68 m_vaultName = std::forward<VaultNameT>(value);
69 }
70 template <typename VaultNameT = Aws::String>
72 SetVaultName(std::forward<VaultNameT>(value));
73 return *this;
74 }
76
78
82 inline const VaultLockPolicy& GetPolicy() const { return m_policy; }
83 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
84 template <typename PolicyT = VaultLockPolicy>
85 void SetPolicy(PolicyT&& value) {
86 m_policyHasBeenSet = true;
87 m_policy = std::forward<PolicyT>(value);
88 }
89 template <typename PolicyT = VaultLockPolicy>
91 SetPolicy(std::forward<PolicyT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_accountId;
97 bool m_accountIdHasBeenSet = false;
98
99 Aws::String m_vaultName;
100 bool m_vaultNameHasBeenSet = false;
101
102 VaultLockPolicy m_policy;
103 bool m_policyHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace Glacier
108} // namespace Aws
AWS_GLACIER_API InitiateVaultLockRequest()=default
InitiateVaultLockRequest & WithVaultName(VaultNameT &&value)
InitiateVaultLockRequest & WithPolicy(PolicyT &&value)
virtual const char * GetServiceRequestName() const override
InitiateVaultLockRequest & WithAccountId(AccountIdT &&value)
AWS_GLACIER_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String