AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
SetVaultAccessPolicyRequest.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/VaultAccessPolicy.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Glacier {
16namespace Model {
17
24 public:
25 AWS_GLACIER_API SetVaultAccessPolicyRequest() = 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 "SetVaultAccessPolicy"; }
32
33 AWS_GLACIER_API Aws::String SerializePayload() const override;
34
36
43 inline const Aws::String& GetAccountId() const { return m_accountId; }
44 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
45 template <typename AccountIdT = Aws::String>
46 void SetAccountId(AccountIdT&& value) {
47 m_accountIdHasBeenSet = true;
48 m_accountId = std::forward<AccountIdT>(value);
49 }
50 template <typename AccountIdT = Aws::String>
52 SetAccountId(std::forward<AccountIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetVaultName() const { return m_vaultName; }
62 inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
63 template <typename VaultNameT = Aws::String>
64 void SetVaultName(VaultNameT&& value) {
65 m_vaultNameHasBeenSet = true;
66 m_vaultName = std::forward<VaultNameT>(value);
67 }
68 template <typename VaultNameT = Aws::String>
70 SetVaultName(std::forward<VaultNameT>(value));
71 return *this;
72 }
74
76
79 inline const VaultAccessPolicy& GetPolicy() const { return m_policy; }
80 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
81 template <typename PolicyT = VaultAccessPolicy>
82 void SetPolicy(PolicyT&& value) {
83 m_policyHasBeenSet = true;
84 m_policy = std::forward<PolicyT>(value);
85 }
86 template <typename PolicyT = VaultAccessPolicy>
88 SetPolicy(std::forward<PolicyT>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_accountId;
94 bool m_accountIdHasBeenSet = false;
95
96 Aws::String m_vaultName;
97 bool m_vaultNameHasBeenSet = false;
98
99 VaultAccessPolicy m_policy;
100 bool m_policyHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace Glacier
105} // namespace Aws
SetVaultAccessPolicyRequest & WithVaultName(VaultNameT &&value)
AWS_GLACIER_API SetVaultAccessPolicyRequest()=default
AWS_GLACIER_API Aws::String SerializePayload() const override
SetVaultAccessPolicyRequest & WithAccountId(AccountIdT &&value)
SetVaultAccessPolicyRequest & WithPolicy(PolicyT &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String