AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SecurityPolicySummary.h
1
6#pragma once
7#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
8#include <aws/opensearchserverless/model/SecurityPolicyType.h>
9#include <aws/core/utils/memory/stl/AWSString.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() = default;
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 SecurityPolicyType GetType() const { return m_type; }
47 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
48 inline void SetType(SecurityPolicyType value) { m_typeHasBeenSet = true; m_type = value; }
49 inline SecurityPolicySummary& WithType(SecurityPolicyType value) { SetType(value); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
60 template<typename NameT = Aws::String>
61 SecurityPolicySummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
63
65
68 inline const Aws::String& GetPolicyVersion() const { return m_policyVersion; }
69 inline bool PolicyVersionHasBeenSet() const { return m_policyVersionHasBeenSet; }
70 template<typename PolicyVersionT = Aws::String>
71 void SetPolicyVersion(PolicyVersionT&& value) { m_policyVersionHasBeenSet = true; m_policyVersion = std::forward<PolicyVersionT>(value); }
72 template<typename PolicyVersionT = Aws::String>
73 SecurityPolicySummary& WithPolicyVersion(PolicyVersionT&& value) { SetPolicyVersion(std::forward<PolicyVersionT>(value)); return *this;}
75
77
80 inline const Aws::String& GetDescription() const { return m_description; }
81 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
82 template<typename DescriptionT = Aws::String>
83 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
84 template<typename DescriptionT = Aws::String>
85 SecurityPolicySummary& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
87
89
92 inline long long GetCreatedDate() const { return m_createdDate; }
93 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
94 inline void SetCreatedDate(long long value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
95 inline SecurityPolicySummary& WithCreatedDate(long long value) { SetCreatedDate(value); return *this;}
97
99
102 inline long long GetLastModifiedDate() const { return m_lastModifiedDate; }
103 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
104 inline void SetLastModifiedDate(long long value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
105 inline SecurityPolicySummary& WithLastModifiedDate(long long value) { SetLastModifiedDate(value); return *this;}
107 private:
108
110 bool m_typeHasBeenSet = false;
111
112 Aws::String m_name;
113 bool m_nameHasBeenSet = false;
114
115 Aws::String m_policyVersion;
116 bool m_policyVersionHasBeenSet = false;
117
118 Aws::String m_description;
119 bool m_descriptionHasBeenSet = false;
120
121 long long m_createdDate{0};
122 bool m_createdDateHasBeenSet = false;
123
124 long long m_lastModifiedDate{0};
125 bool m_lastModifiedDateHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace OpenSearchServerless
130} // 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