AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateSnapshotScheduleActionParameters.h
1
6#pragma once
7#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/redshift-serverless/model/Tag.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace RedshiftServerless
24{
25namespace Model
26{
27
39 {
40 public:
41 AWS_REDSHIFTSERVERLESS_API CreateSnapshotScheduleActionParameters();
44 AWS_REDSHIFTSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
52 inline const Aws::String& GetNamespaceName() const{ return m_namespaceName; }
53 inline bool NamespaceNameHasBeenSet() const { return m_namespaceNameHasBeenSet; }
54 inline void SetNamespaceName(const Aws::String& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = value; }
55 inline void SetNamespaceName(Aws::String&& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = std::move(value); }
56 inline void SetNamespaceName(const char* value) { m_namespaceNameHasBeenSet = true; m_namespaceName.assign(value); }
58 inline CreateSnapshotScheduleActionParameters& WithNamespaceName(Aws::String&& value) { SetNamespaceName(std::move(value)); return *this;}
59 inline CreateSnapshotScheduleActionParameters& WithNamespaceName(const char* value) { SetNamespaceName(value); return *this;}
61
63
66 inline int GetRetentionPeriod() const{ return m_retentionPeriod; }
67 inline bool RetentionPeriodHasBeenSet() const { return m_retentionPeriodHasBeenSet; }
68 inline void SetRetentionPeriod(int value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = value; }
71
73
78 inline const Aws::String& GetSnapshotNamePrefix() const{ return m_snapshotNamePrefix; }
79 inline bool SnapshotNamePrefixHasBeenSet() const { return m_snapshotNamePrefixHasBeenSet; }
80 inline void SetSnapshotNamePrefix(const Aws::String& value) { m_snapshotNamePrefixHasBeenSet = true; m_snapshotNamePrefix = value; }
81 inline void SetSnapshotNamePrefix(Aws::String&& value) { m_snapshotNamePrefixHasBeenSet = true; m_snapshotNamePrefix = std::move(value); }
82 inline void SetSnapshotNamePrefix(const char* value) { m_snapshotNamePrefixHasBeenSet = true; m_snapshotNamePrefix.assign(value); }
87
89
94 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
95 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
96 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
97 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
98 inline CreateSnapshotScheduleActionParameters& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
99 inline CreateSnapshotScheduleActionParameters& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
100 inline CreateSnapshotScheduleActionParameters& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
101 inline CreateSnapshotScheduleActionParameters& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
103 private:
104
105 Aws::String m_namespaceName;
106 bool m_namespaceNameHasBeenSet = false;
107
108 int m_retentionPeriod;
109 bool m_retentionPeriodHasBeenSet = false;
110
111 Aws::String m_snapshotNamePrefix;
112 bool m_snapshotNamePrefixHasBeenSet = false;
113
114 Aws::Vector<Tag> m_tags;
115 bool m_tagsHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace RedshiftServerless
120} // namespace Aws
CreateSnapshotScheduleActionParameters & WithTags(const Aws::Vector< Tag > &value)
AWS_REDSHIFTSERVERLESS_API CreateSnapshotScheduleActionParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
CreateSnapshotScheduleActionParameters & WithNamespaceName(const Aws::String &value)
AWS_REDSHIFTSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
CreateSnapshotScheduleActionParameters & WithSnapshotNamePrefix(const char *value)
CreateSnapshotScheduleActionParameters & WithTags(Aws::Vector< Tag > &&value)
CreateSnapshotScheduleActionParameters & WithNamespaceName(Aws::String &&value)
AWS_REDSHIFTSERVERLESS_API CreateSnapshotScheduleActionParameters(Aws::Utils::Json::JsonView jsonValue)
CreateSnapshotScheduleActionParameters & WithSnapshotNamePrefix(Aws::String &&value)
CreateSnapshotScheduleActionParameters & WithSnapshotNamePrefix(const Aws::String &value)
CreateSnapshotScheduleActionParameters & WithNamespaceName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue