AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
LifecyclePolicyResourceIdentifier.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/LifecyclePolicyType.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 LifecyclePolicyResourceIdentifier() = default;
32 AWS_OPENSEARCHSERVERLESS_API LifecyclePolicyResourceIdentifier(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline LifecyclePolicyType GetType() const { return m_type; }
41 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
42 inline void SetType(LifecyclePolicyType value) {
43 m_typeHasBeenSet = true;
44 m_type = value;
45 }
47 SetType(value);
48 return *this;
49 }
51
53
56 inline const Aws::String& GetResource() const { return m_resource; }
57 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
58 template <typename ResourceT = Aws::String>
59 void SetResource(ResourceT&& value) {
60 m_resourceHasBeenSet = true;
61 m_resource = std::forward<ResourceT>(value);
62 }
63 template <typename ResourceT = Aws::String>
65 SetResource(std::forward<ResourceT>(value));
66 return *this;
67 }
69 private:
71
72 Aws::String m_resource;
73 bool m_typeHasBeenSet = false;
74 bool m_resourceHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace OpenSearchServerless
79} // namespace Aws
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
LifecyclePolicyResourceIdentifier & WithType(LifecyclePolicyType value)
AWS_OPENSEARCHSERVERLESS_API LifecyclePolicyResourceIdentifier()=default
AWS_OPENSEARCHSERVERLESS_API LifecyclePolicyResourceIdentifier(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVERLESS_API LifecyclePolicyResourceIdentifier & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue