AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetKeyPolicyResult.h
1
6#pragma once
7#include <aws/kms/KMS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13template<typename RESULT_TYPE>
14class AmazonWebServiceResult;
15
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace KMS
24{
25namespace Model
26{
28 {
29 public:
30 AWS_KMS_API GetKeyPolicyResult() = default;
33
34
36
39 inline const Aws::String& GetPolicy() const { return m_policy; }
40 template<typename PolicyT = Aws::String>
41 void SetPolicy(PolicyT&& value) { m_policyHasBeenSet = true; m_policy = std::forward<PolicyT>(value); }
42 template<typename PolicyT = Aws::String>
43 GetKeyPolicyResult& WithPolicy(PolicyT&& value) { SetPolicy(std::forward<PolicyT>(value)); return *this;}
45
47
50 inline const Aws::String& GetPolicyName() const { return m_policyName; }
51 template<typename PolicyNameT = Aws::String>
52 void SetPolicyName(PolicyNameT&& value) { m_policyNameHasBeenSet = true; m_policyName = std::forward<PolicyNameT>(value); }
53 template<typename PolicyNameT = Aws::String>
54 GetKeyPolicyResult& WithPolicyName(PolicyNameT&& value) { SetPolicyName(std::forward<PolicyNameT>(value)); return *this;}
56
58
59 inline const Aws::String& GetRequestId() const { return m_requestId; }
60 template<typename RequestIdT = Aws::String>
61 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
62 template<typename RequestIdT = Aws::String>
63 GetKeyPolicyResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
65 private:
66
67 Aws::String m_policy;
68 bool m_policyHasBeenSet = false;
69
70 Aws::String m_policyName;
71 bool m_policyNameHasBeenSet = false;
72
73 Aws::String m_requestId;
74 bool m_requestIdHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace KMS
79} // namespace Aws
const Aws::String & GetPolicy() const
void SetRequestId(RequestIdT &&value)
AWS_KMS_API GetKeyPolicyResult()=default
void SetPolicyName(PolicyNameT &&value)
AWS_KMS_API GetKeyPolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetRequestId() const
AWS_KMS_API GetKeyPolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetKeyPolicyResult & WithPolicyName(PolicyNameT &&value)
GetKeyPolicyResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetPolicyName() const
GetKeyPolicyResult & WithPolicy(PolicyT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue