AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SecurityPolicyDetail.h
1
6#pragma once
7#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/Document.h>
10#include <aws/opensearchserverless/model/SecurityPolicyType.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 SecurityPolicyDetail();
38 AWS_OPENSEARCHSERVERLESS_API SecurityPolicyDetail(Aws::Utils::Json::JsonView jsonValue);
39 AWS_OPENSEARCHSERVERLESS_API SecurityPolicyDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline long long GetCreatedDate() const{ return m_createdDate; }
48 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
49 inline void SetCreatedDate(long long value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
50 inline SecurityPolicyDetail& WithCreatedDate(long long value) { SetCreatedDate(value); return *this;}
52
54
57 inline const Aws::String& GetDescription() const{ return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
60 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
61 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
62 inline SecurityPolicyDetail& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
63 inline SecurityPolicyDetail& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
64 inline SecurityPolicyDetail& WithDescription(const char* value) { SetDescription(value); return *this;}
66
68
71 inline long long GetLastModifiedDate() const{ return m_lastModifiedDate; }
72 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
73 inline void SetLastModifiedDate(long long value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
74 inline SecurityPolicyDetail& WithLastModifiedDate(long long value) { SetLastModifiedDate(value); return *this;}
76
78
81 inline const Aws::String& GetName() const{ return m_name; }
82 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
83 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
84 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
85 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
86 inline SecurityPolicyDetail& WithName(const Aws::String& value) { SetName(value); return *this;}
87 inline SecurityPolicyDetail& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
88 inline SecurityPolicyDetail& WithName(const char* value) { SetName(value); return *this;}
90
92
95 inline Aws::Utils::DocumentView GetPolicy() const{ return m_policy; }
96 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
97 inline void SetPolicy(const Aws::Utils::Document& value) { m_policyHasBeenSet = true; m_policy = value; }
98 inline void SetPolicy(Aws::Utils::Document&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
99 inline SecurityPolicyDetail& WithPolicy(const Aws::Utils::Document& value) { SetPolicy(value); return *this;}
100 inline SecurityPolicyDetail& WithPolicy(Aws::Utils::Document&& value) { SetPolicy(std::move(value)); return *this;}
102
104
107 inline const Aws::String& GetPolicyVersion() const{ return m_policyVersion; }
108 inline bool PolicyVersionHasBeenSet() const { return m_policyVersionHasBeenSet; }
109 inline void SetPolicyVersion(const Aws::String& value) { m_policyVersionHasBeenSet = true; m_policyVersion = value; }
110 inline void SetPolicyVersion(Aws::String&& value) { m_policyVersionHasBeenSet = true; m_policyVersion = std::move(value); }
111 inline void SetPolicyVersion(const char* value) { m_policyVersionHasBeenSet = true; m_policyVersion.assign(value); }
112 inline SecurityPolicyDetail& WithPolicyVersion(const Aws::String& value) { SetPolicyVersion(value); return *this;}
113 inline SecurityPolicyDetail& WithPolicyVersion(Aws::String&& value) { SetPolicyVersion(std::move(value)); return *this;}
114 inline SecurityPolicyDetail& WithPolicyVersion(const char* value) { SetPolicyVersion(value); return *this;}
116
118
121 inline const SecurityPolicyType& GetType() const{ return m_type; }
122 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
123 inline void SetType(const SecurityPolicyType& value) { m_typeHasBeenSet = true; m_type = value; }
124 inline void SetType(SecurityPolicyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
125 inline SecurityPolicyDetail& WithType(const SecurityPolicyType& value) { SetType(value); return *this;}
126 inline SecurityPolicyDetail& WithType(SecurityPolicyType&& value) { SetType(std::move(value)); return *this;}
128 private:
129
130 long long m_createdDate;
131 bool m_createdDateHasBeenSet = false;
132
133 Aws::String m_description;
134 bool m_descriptionHasBeenSet = false;
135
136 long long m_lastModifiedDate;
137 bool m_lastModifiedDateHasBeenSet = false;
138
139 Aws::String m_name;
140 bool m_nameHasBeenSet = false;
141
142 Aws::Utils::Document m_policy;
143 bool m_policyHasBeenSet = false;
144
145 Aws::String m_policyVersion;
146 bool m_policyVersionHasBeenSet = false;
147
148 SecurityPolicyType m_type;
149 bool m_typeHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace OpenSearchServerless
154} // namespace Aws
SecurityPolicyDetail & WithPolicyVersion(Aws::String &&value)
SecurityPolicyDetail & WithName(const char *value)
SecurityPolicyDetail & WithType(SecurityPolicyType &&value)
SecurityPolicyDetail & WithName(const Aws::String &value)
AWS_OPENSEARCHSERVERLESS_API SecurityPolicyDetail()
AWS_OPENSEARCHSERVERLESS_API SecurityPolicyDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
SecurityPolicyDetail & WithPolicy(const Aws::Utils::Document &value)
SecurityPolicyDetail & WithPolicyVersion(const char *value)
SecurityPolicyDetail & WithCreatedDate(long long value)
SecurityPolicyDetail & WithName(Aws::String &&value)
SecurityPolicyDetail & WithDescription(const Aws::String &value)
SecurityPolicyDetail & WithDescription(Aws::String &&value)
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPolicy(const Aws::Utils::Document &value)
SecurityPolicyDetail & WithPolicy(Aws::Utils::Document &&value)
SecurityPolicyDetail & WithDescription(const char *value)
SecurityPolicyDetail & WithLastModifiedDate(long long value)
AWS_OPENSEARCHSERVERLESS_API SecurityPolicyDetail(Aws::Utils::Json::JsonView jsonValue)
SecurityPolicyDetail & WithPolicyVersion(const Aws::String &value)
SecurityPolicyDetail & WithType(const SecurityPolicyType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue