AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetVaultAccessPolicyResult.h
1
6#pragma once
7#include <aws/glacier/Glacier_EXPORTS.h>
8#include <aws/glacier/model/VaultAccessPolicy.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14template<typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace Glacier
25{
26namespace Model
27{
34 {
35 public:
36 AWS_GLACIER_API GetVaultAccessPolicyResult() = default;
39
40
42
45 inline const VaultAccessPolicy& GetPolicy() const { return m_policy; }
46 template<typename PolicyT = VaultAccessPolicy>
47 void SetPolicy(PolicyT&& value) { m_policyHasBeenSet = true; m_policy = std::forward<PolicyT>(value); }
48 template<typename PolicyT = VaultAccessPolicy>
49 GetVaultAccessPolicyResult& WithPolicy(PolicyT&& value) { SetPolicy(std::forward<PolicyT>(value)); return *this;}
51
53
54 inline const Aws::String& GetRequestId() const { return m_requestId; }
55 template<typename RequestIdT = Aws::String>
56 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
57 template<typename RequestIdT = Aws::String>
58 GetVaultAccessPolicyResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
60 private:
61
62 VaultAccessPolicy m_policy;
63 bool m_policyHasBeenSet = false;
64
65 Aws::String m_requestId;
66 bool m_requestIdHasBeenSet = false;
67 };
68
69} // namespace Model
70} // namespace Glacier
71} // namespace Aws
AWS_GLACIER_API GetVaultAccessPolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetVaultAccessPolicyResult & WithRequestId(RequestIdT &&value)
AWS_GLACIER_API GetVaultAccessPolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_GLACIER_API GetVaultAccessPolicyResult()=default
GetVaultAccessPolicyResult & WithPolicy(PolicyT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue