AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AccessPolicySummary.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/AccessPolicyType.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
33 {
34 public:
35 AWS_OPENSEARCHSERVERLESS_API AccessPolicySummary();
36 AWS_OPENSEARCHSERVERLESS_API AccessPolicySummary(Aws::Utils::Json::JsonView jsonValue);
37 AWS_OPENSEARCHSERVERLESS_API AccessPolicySummary& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline long long GetCreatedDate() const{ return m_createdDate; }
46 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
47 inline void SetCreatedDate(long long value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
48 inline AccessPolicySummary& WithCreatedDate(long long value) { SetCreatedDate(value); return *this;}
50
52
55 inline const Aws::String& GetDescription() const{ return m_description; }
56 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
57 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
58 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
59 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
60 inline AccessPolicySummary& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
61 inline AccessPolicySummary& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
62 inline AccessPolicySummary& WithDescription(const char* value) { SetDescription(value); return *this;}
64
66
69 inline long long GetLastModifiedDate() const{ return m_lastModifiedDate; }
70 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
71 inline void SetLastModifiedDate(long long value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
72 inline AccessPolicySummary& WithLastModifiedDate(long long value) { SetLastModifiedDate(value); return *this;}
74
76
79 inline const Aws::String& GetName() const{ return m_name; }
80 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
81 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
82 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
83 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
84 inline AccessPolicySummary& WithName(const Aws::String& value) { SetName(value); return *this;}
85 inline AccessPolicySummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
86 inline AccessPolicySummary& WithName(const char* value) { SetName(value); return *this;}
88
90
93 inline const Aws::String& GetPolicyVersion() const{ return m_policyVersion; }
94 inline bool PolicyVersionHasBeenSet() const { return m_policyVersionHasBeenSet; }
95 inline void SetPolicyVersion(const Aws::String& value) { m_policyVersionHasBeenSet = true; m_policyVersion = value; }
96 inline void SetPolicyVersion(Aws::String&& value) { m_policyVersionHasBeenSet = true; m_policyVersion = std::move(value); }
97 inline void SetPolicyVersion(const char* value) { m_policyVersionHasBeenSet = true; m_policyVersion.assign(value); }
98 inline AccessPolicySummary& WithPolicyVersion(const Aws::String& value) { SetPolicyVersion(value); return *this;}
99 inline AccessPolicySummary& WithPolicyVersion(Aws::String&& value) { SetPolicyVersion(std::move(value)); return *this;}
100 inline AccessPolicySummary& WithPolicyVersion(const char* value) { SetPolicyVersion(value); return *this;}
102
104
108 inline const AccessPolicyType& GetType() const{ return m_type; }
109 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
110 inline void SetType(const AccessPolicyType& value) { m_typeHasBeenSet = true; m_type = value; }
111 inline void SetType(AccessPolicyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
112 inline AccessPolicySummary& WithType(const AccessPolicyType& value) { SetType(value); return *this;}
113 inline AccessPolicySummary& WithType(AccessPolicyType&& 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 AccessPolicyType m_type;
133 bool m_typeHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace OpenSearchServerless
138} // namespace Aws
AccessPolicySummary & WithCreatedDate(long long value)
AWS_OPENSEARCHSERVERLESS_API AccessPolicySummary(Aws::Utils::Json::JsonView jsonValue)
AccessPolicySummary & WithLastModifiedDate(long long value)
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
AccessPolicySummary & WithName(const char *value)
AccessPolicySummary & WithPolicyVersion(Aws::String &&value)
AccessPolicySummary & WithDescription(const Aws::String &value)
AccessPolicySummary & WithType(AccessPolicyType &&value)
AccessPolicySummary & WithType(const AccessPolicyType &value)
AccessPolicySummary & WithPolicyVersion(const Aws::String &value)
AccessPolicySummary & WithDescription(const char *value)
AWS_OPENSEARCHSERVERLESS_API AccessPolicySummary()
AWS_OPENSEARCHSERVERLESS_API AccessPolicySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AccessPolicySummary & WithPolicyVersion(const char *value)
AccessPolicySummary & WithName(Aws::String &&value)
AccessPolicySummary & WithName(const Aws::String &value)
AccessPolicySummary & WithDescription(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue