AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace RedshiftServerless
22{
23namespace Model
24{
25
36 {
37 public:
38 AWS_REDSHIFTSERVERLESS_API TargetAction() = default;
39 AWS_REDSHIFTSERVERLESS_API TargetAction(Aws::Utils::Json::JsonView jsonValue);
40 AWS_REDSHIFTSERVERLESS_API TargetAction& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_REDSHIFTSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
46 inline const CreateSnapshotScheduleActionParameters& GetCreateSnapshot() const { return m_createSnapshot; }
47 inline bool CreateSnapshotHasBeenSet() const { return m_createSnapshotHasBeenSet; }
48 template<typename CreateSnapshotT = CreateSnapshotScheduleActionParameters>
49 void SetCreateSnapshot(CreateSnapshotT&& value) { m_createSnapshotHasBeenSet = true; m_createSnapshot = std::forward<CreateSnapshotT>(value); }
50 template<typename CreateSnapshotT = CreateSnapshotScheduleActionParameters>
51 TargetAction& WithCreateSnapshot(CreateSnapshotT&& value) { SetCreateSnapshot(std::forward<CreateSnapshotT>(value)); return *this;}
53 private:
54
56 bool m_createSnapshotHasBeenSet = false;
57 };
58
59} // namespace Model
60} // namespace RedshiftServerless
61} // 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