AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
TargetAction.h
1
6#pragma once
7#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
8#include <aws/redshift-serverless/model/CreateSnapshotScheduleActionParameters.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace RedshiftServerless {
20namespace Model {
21
32 public:
33 AWS_REDSHIFTSERVERLESS_API TargetAction() = default;
34 AWS_REDSHIFTSERVERLESS_API TargetAction(Aws::Utils::Json::JsonView jsonValue);
35 AWS_REDSHIFTSERVERLESS_API TargetAction& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_REDSHIFTSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
40 inline const CreateSnapshotScheduleActionParameters& GetCreateSnapshot() const { return m_createSnapshot; }
41 inline bool CreateSnapshotHasBeenSet() const { return m_createSnapshotHasBeenSet; }
42 template <typename CreateSnapshotT = CreateSnapshotScheduleActionParameters>
43 void SetCreateSnapshot(CreateSnapshotT&& value) {
44 m_createSnapshotHasBeenSet = true;
45 m_createSnapshot = std::forward<CreateSnapshotT>(value);
46 }
47 template <typename CreateSnapshotT = CreateSnapshotScheduleActionParameters>
48 TargetAction& WithCreateSnapshot(CreateSnapshotT&& value) {
49 SetCreateSnapshot(std::forward<CreateSnapshotT>(value));
50 return *this;
51 }
53 private:
55 bool m_createSnapshotHasBeenSet = false;
56};
57
58} // namespace Model
59} // namespace RedshiftServerless
60} // namespace Aws
AWS_REDSHIFTSERVERLESS_API TargetAction(Aws::Utils::Json::JsonView jsonValue)
TargetAction & WithCreateSnapshot(CreateSnapshotT &&value)
AWS_REDSHIFTSERVERLESS_API TargetAction & operator=(Aws::Utils::Json::JsonView jsonValue)
const CreateSnapshotScheduleActionParameters & GetCreateSnapshot() const
void SetCreateSnapshot(CreateSnapshotT &&value)
AWS_REDSHIFTSERVERLESS_API TargetAction()=default
AWS_REDSHIFTSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue