AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LifecyclePolicyResourceIdentifier.h
1
6#pragma once
7#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
8#include <aws/opensearchserverless/model/LifecyclePolicyType.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 LifecyclePolicyResourceIdentifier() = default;
37 AWS_OPENSEARCHSERVERLESS_API LifecyclePolicyResourceIdentifier(Aws::Utils::Json::JsonView jsonValue);
39 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline LifecyclePolicyType GetType() const { return m_type; }
47 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
48 inline void SetType(LifecyclePolicyType value) { m_typeHasBeenSet = true; m_type = value; }
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) { m_resourceHasBeenSet = true; m_resource = std::forward<ResourceT>(value); }
60 template<typename ResourceT = Aws::String>
61 LifecyclePolicyResourceIdentifier& WithResource(ResourceT&& value) { SetResource(std::forward<ResourceT>(value)); return *this;}
63 private:
64
66 bool m_typeHasBeenSet = false;
67
68 Aws::String m_resource;
69 bool m_resourceHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace OpenSearchServerless
74} // 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