AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ListKeyPoliciesResult.h
1
6#pragma once
7#include <aws/kms/KMS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.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 KMS
25{
26namespace Model
27{
29 {
30 public:
31 AWS_KMS_API ListKeyPoliciesResult() = default;
34
35
37
40 inline const Aws::Vector<Aws::String>& GetPolicyNames() const { return m_policyNames; }
41 template<typename PolicyNamesT = Aws::Vector<Aws::String>>
42 void SetPolicyNames(PolicyNamesT&& value) { m_policyNamesHasBeenSet = true; m_policyNames = std::forward<PolicyNamesT>(value); }
43 template<typename PolicyNamesT = Aws::Vector<Aws::String>>
44 ListKeyPoliciesResult& WithPolicyNames(PolicyNamesT&& value) { SetPolicyNames(std::forward<PolicyNamesT>(value)); return *this;}
45 template<typename PolicyNamesT = Aws::String>
46 ListKeyPoliciesResult& AddPolicyNames(PolicyNamesT&& value) { m_policyNamesHasBeenSet = true; m_policyNames.emplace_back(std::forward<PolicyNamesT>(value)); return *this; }
48
50
54 inline const Aws::String& GetNextMarker() const { return m_nextMarker; }
55 template<typename NextMarkerT = Aws::String>
56 void SetNextMarker(NextMarkerT&& value) { m_nextMarkerHasBeenSet = true; m_nextMarker = std::forward<NextMarkerT>(value); }
57 template<typename NextMarkerT = Aws::String>
58 ListKeyPoliciesResult& WithNextMarker(NextMarkerT&& value) { SetNextMarker(std::forward<NextMarkerT>(value)); return *this;}
60
62
68 inline bool GetTruncated() const { return m_truncated; }
69 inline void SetTruncated(bool value) { m_truncatedHasBeenSet = true; m_truncated = value; }
70 inline ListKeyPoliciesResult& WithTruncated(bool value) { SetTruncated(value); return *this;}
72
74
75 inline const Aws::String& GetRequestId() const { return m_requestId; }
76 template<typename RequestIdT = Aws::String>
77 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
78 template<typename RequestIdT = Aws::String>
79 ListKeyPoliciesResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
81 private:
82
83 Aws::Vector<Aws::String> m_policyNames;
84 bool m_policyNamesHasBeenSet = false;
85
86 Aws::String m_nextMarker;
87 bool m_nextMarkerHasBeenSet = false;
88
89 bool m_truncated{false};
90 bool m_truncatedHasBeenSet = false;
91
92 Aws::String m_requestId;
93 bool m_requestIdHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace KMS
98} // namespace Aws
AWS_KMS_API ListKeyPoliciesResult()=default
ListKeyPoliciesResult & AddPolicyNames(PolicyNamesT &&value)
ListKeyPoliciesResult & WithPolicyNames(PolicyNamesT &&value)
const Aws::Vector< Aws::String > & GetPolicyNames() const
AWS_KMS_API ListKeyPoliciesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListKeyPoliciesResult & WithNextMarker(NextMarkerT &&value)
ListKeyPoliciesResult & WithRequestId(RequestIdT &&value)
AWS_KMS_API ListKeyPoliciesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListKeyPoliciesResult & WithTruncated(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue