AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AccessPolicyDetail.h
1
6#pragma once
7#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
8#include <aws/opensearchserverless/model/AccessPolicyType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/Document.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace OpenSearchServerless
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_OPENSEARCHSERVERLESS_API AccessPolicyDetail() = default;
38 AWS_OPENSEARCHSERVERLESS_API AccessPolicyDetail(Aws::Utils::Json::JsonView jsonValue);
39 AWS_OPENSEARCHSERVERLESS_API AccessPolicyDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline AccessPolicyType GetType() const { return m_type; }
48 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
49 inline void SetType(AccessPolicyType value) { m_typeHasBeenSet = true; m_type = value; }
50 inline AccessPolicyDetail& WithType(AccessPolicyType value) { SetType(value); return *this;}
52
54
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template<typename NameT = Aws::String>
60 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
61 template<typename NameT = Aws::String>
62 AccessPolicyDetail& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
64
66
69 inline const Aws::String& GetPolicyVersion() const { return m_policyVersion; }
70 inline bool PolicyVersionHasBeenSet() const { return m_policyVersionHasBeenSet; }
71 template<typename PolicyVersionT = Aws::String>
72 void SetPolicyVersion(PolicyVersionT&& value) { m_policyVersionHasBeenSet = true; m_policyVersion = std::forward<PolicyVersionT>(value); }
73 template<typename PolicyVersionT = Aws::String>
74 AccessPolicyDetail& WithPolicyVersion(PolicyVersionT&& value) { SetPolicyVersion(std::forward<PolicyVersionT>(value)); return *this;}
76
78
81 inline const Aws::String& GetDescription() const { return m_description; }
82 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
83 template<typename DescriptionT = Aws::String>
84 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
85 template<typename DescriptionT = Aws::String>
86 AccessPolicyDetail& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
88
90
93 inline Aws::Utils::DocumentView GetPolicy() const { return m_policy; }
94 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
95 template<typename PolicyT = Aws::Utils::Document>
96 void SetPolicy(PolicyT&& value) { m_policyHasBeenSet = true; m_policy = std::forward<PolicyT>(value); }
97 template<typename PolicyT = Aws::Utils::Document>
98 AccessPolicyDetail& WithPolicy(PolicyT&& value) { SetPolicy(std::forward<PolicyT>(value)); return *this;}
100
102
105 inline long long GetCreatedDate() const { return m_createdDate; }
106 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
107 inline void SetCreatedDate(long long value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
108 inline AccessPolicyDetail& WithCreatedDate(long long value) { SetCreatedDate(value); return *this;}
110
112
115 inline long long GetLastModifiedDate() const { return m_lastModifiedDate; }
116 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
117 inline void SetLastModifiedDate(long long value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
118 inline AccessPolicyDetail& WithLastModifiedDate(long long value) { SetLastModifiedDate(value); return *this;}
120 private:
121
123 bool m_typeHasBeenSet = false;
124
125 Aws::String m_name;
126 bool m_nameHasBeenSet = false;
127
128 Aws::String m_policyVersion;
129 bool m_policyVersionHasBeenSet = false;
130
131 Aws::String m_description;
132 bool m_descriptionHasBeenSet = false;
133
134 Aws::Utils::Document m_policy;
135 bool m_policyHasBeenSet = false;
136
137 long long m_createdDate{0};
138 bool m_createdDateHasBeenSet = false;
139
140 long long m_lastModifiedDate{0};
141 bool m_lastModifiedDateHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace OpenSearchServerless
146} // namespace Aws
AccessPolicyDetail & WithDescription(DescriptionT &&value)
AWS_OPENSEARCHSERVERLESS_API AccessPolicyDetail()=default
AccessPolicyDetail & WithPolicyVersion(PolicyVersionT &&value)
AccessPolicyDetail & WithPolicy(PolicyT &&value)
AWS_OPENSEARCHSERVERLESS_API AccessPolicyDetail(Aws::Utils::Json::JsonView jsonValue)
AccessPolicyDetail & WithType(AccessPolicyType value)
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
AccessPolicyDetail & WithLastModifiedDate(long long value)
AWS_OPENSEARCHSERVERLESS_API AccessPolicyDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
AccessPolicyDetail & WithCreatedDate(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue