AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LifecyclePolicyResourceIdentifier.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/LifecyclePolicyType.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();
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 const Aws::String& GetResource() const{ return m_resource; }
47 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
48 inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; }
49 inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
50 inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); }
51 inline LifecyclePolicyResourceIdentifier& WithResource(const Aws::String& value) { SetResource(value); return *this;}
52 inline LifecyclePolicyResourceIdentifier& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;}
53 inline LifecyclePolicyResourceIdentifier& WithResource(const char* value) { SetResource(value); return *this;}
55
57
60 inline const LifecyclePolicyType& GetType() const{ return m_type; }
61 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
62 inline void SetType(const LifecyclePolicyType& value) { m_typeHasBeenSet = true; m_type = value; }
63 inline void SetType(LifecyclePolicyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
64 inline LifecyclePolicyResourceIdentifier& WithType(const LifecyclePolicyType& value) { SetType(value); return *this;}
65 inline LifecyclePolicyResourceIdentifier& WithType(LifecyclePolicyType&& value) { SetType(std::move(value)); return *this;}
67 private:
68
69 Aws::String m_resource;
70 bool m_resourceHasBeenSet = false;
71
73 bool m_typeHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace OpenSearchServerless
78} // namespace Aws
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
LifecyclePolicyResourceIdentifier & WithResource(Aws::String &&value)
AWS_OPENSEARCHSERVERLESS_API LifecyclePolicyResourceIdentifier(Aws::Utils::Json::JsonView jsonValue)
LifecyclePolicyResourceIdentifier & WithType(LifecyclePolicyType &&value)
AWS_OPENSEARCHSERVERLESS_API LifecyclePolicyResourceIdentifier & operator=(Aws::Utils::Json::JsonView jsonValue)
LifecyclePolicyResourceIdentifier & WithType(const LifecyclePolicyType &value)
LifecyclePolicyResourceIdentifier & WithResource(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue