AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SecurityPolicySummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
9#include <aws/opensearchserverless/model/SecurityPolicyType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace OpenSearchServerless {
21namespace Model {
22
30 public:
31 AWS_OPENSEARCHSERVERLESS_API SecurityPolicySummary() = default;
32 AWS_OPENSEARCHSERVERLESS_API SecurityPolicySummary(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OPENSEARCHSERVERLESS_API SecurityPolicySummary& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline SecurityPolicyType GetType() const { return m_type; }
41 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
42 inline void SetType(SecurityPolicyType value) {
43 m_typeHasBeenSet = true;
44 m_type = value;
45 }
47 SetType(value);
48 return *this;
49 }
51
53
56 inline const Aws::String& GetName() const { return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 template <typename NameT = Aws::String>
59 void SetName(NameT&& value) {
60 m_nameHasBeenSet = true;
61 m_name = std::forward<NameT>(value);
62 }
63 template <typename NameT = Aws::String>
65 SetName(std::forward<NameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetPolicyVersion() const { return m_policyVersion; }
75 inline bool PolicyVersionHasBeenSet() const { return m_policyVersionHasBeenSet; }
76 template <typename PolicyVersionT = Aws::String>
77 void SetPolicyVersion(PolicyVersionT&& value) {
78 m_policyVersionHasBeenSet = true;
79 m_policyVersion = std::forward<PolicyVersionT>(value);
80 }
81 template <typename PolicyVersionT = Aws::String>
82 SecurityPolicySummary& WithPolicyVersion(PolicyVersionT&& value) {
83 SetPolicyVersion(std::forward<PolicyVersionT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetDescription() const { return m_description; }
93 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
94 template <typename DescriptionT = Aws::String>
95 void SetDescription(DescriptionT&& value) {
96 m_descriptionHasBeenSet = true;
97 m_description = std::forward<DescriptionT>(value);
98 }
99 template <typename DescriptionT = Aws::String>
100 SecurityPolicySummary& WithDescription(DescriptionT&& value) {
101 SetDescription(std::forward<DescriptionT>(value));
102 return *this;
103 }
105
107
110 inline long long GetCreatedDate() const { return m_createdDate; }
111 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
112 inline void SetCreatedDate(long long value) {
113 m_createdDateHasBeenSet = true;
114 m_createdDate = value;
115 }
116 inline SecurityPolicySummary& WithCreatedDate(long long value) {
117 SetCreatedDate(value);
118 return *this;
119 }
121
123
126 inline long long GetLastModifiedDate() const { return m_lastModifiedDate; }
127 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
128 inline void SetLastModifiedDate(long long value) {
129 m_lastModifiedDateHasBeenSet = true;
130 m_lastModifiedDate = value;
131 }
133 SetLastModifiedDate(value);
134 return *this;
135 }
137 private:
139
140 Aws::String m_name;
141
142 Aws::String m_policyVersion;
143
144 Aws::String m_description;
145
146 long long m_createdDate{0};
147
148 long long m_lastModifiedDate{0};
149 bool m_typeHasBeenSet = false;
150 bool m_nameHasBeenSet = false;
151 bool m_policyVersionHasBeenSet = false;
152 bool m_descriptionHasBeenSet = false;
153 bool m_createdDateHasBeenSet = false;
154 bool m_lastModifiedDateHasBeenSet = false;
155};
156
157} // namespace Model
158} // namespace OpenSearchServerless
159} // namespace Aws
AWS_OPENSEARCHSERVERLESS_API SecurityPolicySummary(Aws::Utils::Json::JsonView jsonValue)
SecurityPolicySummary & WithDescription(DescriptionT &&value)
SecurityPolicySummary & WithPolicyVersion(PolicyVersionT &&value)
AWS_OPENSEARCHSERVERLESS_API SecurityPolicySummary()=default
SecurityPolicySummary & WithType(SecurityPolicyType value)
SecurityPolicySummary & WithCreatedDate(long long value)
SecurityPolicySummary & WithLastModifiedDate(long long value)
AWS_OPENSEARCHSERVERLESS_API SecurityPolicySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue