AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SecurityPolicySummary.h
1
6#pragma once
7#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/opensearchserverless/model/SecurityPolicyType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace OpenSearchServerless
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_OPENSEARCHSERVERLESS_API SecurityPolicySummary();
37 AWS_OPENSEARCHSERVERLESS_API SecurityPolicySummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_OPENSEARCHSERVERLESS_API SecurityPolicySummary& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline long long GetCreatedDate() const{ return m_createdDate; }
47 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
48 inline void SetCreatedDate(long long value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
49 inline SecurityPolicySummary& WithCreatedDate(long long value) { SetCreatedDate(value); return *this;}
51
53
56 inline const Aws::String& GetDescription() const{ return m_description; }
57 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
58 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
59 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
60 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
61 inline SecurityPolicySummary& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
62 inline SecurityPolicySummary& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
63 inline SecurityPolicySummary& WithDescription(const char* value) { SetDescription(value); return *this;}
65
67
70 inline long long GetLastModifiedDate() const{ return m_lastModifiedDate; }
71 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
72 inline void SetLastModifiedDate(long long value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
73 inline SecurityPolicySummary& WithLastModifiedDate(long long value) { SetLastModifiedDate(value); return *this;}
75
77
80 inline const Aws::String& GetName() const{ return m_name; }
81 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
82 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
83 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
84 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
85 inline SecurityPolicySummary& WithName(const Aws::String& value) { SetName(value); return *this;}
86 inline SecurityPolicySummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
87 inline SecurityPolicySummary& WithName(const char* value) { SetName(value); return *this;}
89
91
94 inline const Aws::String& GetPolicyVersion() const{ return m_policyVersion; }
95 inline bool PolicyVersionHasBeenSet() const { return m_policyVersionHasBeenSet; }
96 inline void SetPolicyVersion(const Aws::String& value) { m_policyVersionHasBeenSet = true; m_policyVersion = value; }
97 inline void SetPolicyVersion(Aws::String&& value) { m_policyVersionHasBeenSet = true; m_policyVersion = std::move(value); }
98 inline void SetPolicyVersion(const char* value) { m_policyVersionHasBeenSet = true; m_policyVersion.assign(value); }
99 inline SecurityPolicySummary& WithPolicyVersion(const Aws::String& value) { SetPolicyVersion(value); return *this;}
100 inline SecurityPolicySummary& WithPolicyVersion(Aws::String&& value) { SetPolicyVersion(std::move(value)); return *this;}
101 inline SecurityPolicySummary& WithPolicyVersion(const char* value) { SetPolicyVersion(value); return *this;}
103
105
108 inline const SecurityPolicyType& GetType() const{ return m_type; }
109 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
110 inline void SetType(const SecurityPolicyType& value) { m_typeHasBeenSet = true; m_type = value; }
111 inline void SetType(SecurityPolicyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
112 inline SecurityPolicySummary& WithType(const SecurityPolicyType& value) { SetType(value); return *this;}
113 inline SecurityPolicySummary& WithType(SecurityPolicyType&& value) { SetType(std::move(value)); return *this;}
115 private:
116
117 long long m_createdDate;
118 bool m_createdDateHasBeenSet = false;
119
120 Aws::String m_description;
121 bool m_descriptionHasBeenSet = false;
122
123 long long m_lastModifiedDate;
124 bool m_lastModifiedDateHasBeenSet = false;
125
126 Aws::String m_name;
127 bool m_nameHasBeenSet = false;
128
129 Aws::String m_policyVersion;
130 bool m_policyVersionHasBeenSet = false;
131
132 SecurityPolicyType m_type;
133 bool m_typeHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace OpenSearchServerless
138} // namespace Aws
SecurityPolicySummary & WithDescription(Aws::String &&value)
SecurityPolicySummary & WithDescription(const Aws::String &value)
SecurityPolicySummary & WithPolicyVersion(const char *value)
AWS_OPENSEARCHSERVERLESS_API SecurityPolicySummary(Aws::Utils::Json::JsonView jsonValue)
SecurityPolicySummary & WithName(const Aws::String &value)
SecurityPolicySummary & WithName(const char *value)
SecurityPolicySummary & WithName(Aws::String &&value)
SecurityPolicySummary & WithType(SecurityPolicyType &&value)
SecurityPolicySummary & WithPolicyVersion(const Aws::String &value)
SecurityPolicySummary & WithType(const 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
AWS_OPENSEARCHSERVERLESS_API SecurityPolicySummary()
SecurityPolicySummary & WithDescription(const char *value)
SecurityPolicySummary & WithPolicyVersion(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue