/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace Redshift { namespace Model { /** *

Describes a snapshot schedule. You can set a regular interval for creating * snapshots of a cluster. You can also schedule snapshots for specific dates. *

See Also:

AWS * API Reference

*/ class CreateSnapshotScheduleResult { public: AWS_REDSHIFT_API CreateSnapshotScheduleResult(); AWS_REDSHIFT_API CreateSnapshotScheduleResult(const Aws::AmazonWebServiceResult& result); AWS_REDSHIFT_API CreateSnapshotScheduleResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A list of ScheduleDefinitions.

*/ inline const Aws::Vector& GetScheduleDefinitions() const{ return m_scheduleDefinitions; } /** *

A list of ScheduleDefinitions.

*/ inline void SetScheduleDefinitions(const Aws::Vector& value) { m_scheduleDefinitions = value; } /** *

A list of ScheduleDefinitions.

*/ inline void SetScheduleDefinitions(Aws::Vector&& value) { m_scheduleDefinitions = std::move(value); } /** *

A list of ScheduleDefinitions.

*/ inline CreateSnapshotScheduleResult& WithScheduleDefinitions(const Aws::Vector& value) { SetScheduleDefinitions(value); return *this;} /** *

A list of ScheduleDefinitions.

*/ inline CreateSnapshotScheduleResult& WithScheduleDefinitions(Aws::Vector&& value) { SetScheduleDefinitions(std::move(value)); return *this;} /** *

A list of ScheduleDefinitions.

*/ inline CreateSnapshotScheduleResult& AddScheduleDefinitions(const Aws::String& value) { m_scheduleDefinitions.push_back(value); return *this; } /** *

A list of ScheduleDefinitions.

*/ inline CreateSnapshotScheduleResult& AddScheduleDefinitions(Aws::String&& value) { m_scheduleDefinitions.push_back(std::move(value)); return *this; } /** *

A list of ScheduleDefinitions.

*/ inline CreateSnapshotScheduleResult& AddScheduleDefinitions(const char* value) { m_scheduleDefinitions.push_back(value); return *this; } /** *

A unique identifier for the schedule.

*/ inline const Aws::String& GetScheduleIdentifier() const{ return m_scheduleIdentifier; } /** *

A unique identifier for the schedule.

*/ inline void SetScheduleIdentifier(const Aws::String& value) { m_scheduleIdentifier = value; } /** *

A unique identifier for the schedule.

*/ inline void SetScheduleIdentifier(Aws::String&& value) { m_scheduleIdentifier = std::move(value); } /** *

A unique identifier for the schedule.

*/ inline void SetScheduleIdentifier(const char* value) { m_scheduleIdentifier.assign(value); } /** *

A unique identifier for the schedule.

*/ inline CreateSnapshotScheduleResult& WithScheduleIdentifier(const Aws::String& value) { SetScheduleIdentifier(value); return *this;} /** *

A unique identifier for the schedule.

*/ inline CreateSnapshotScheduleResult& WithScheduleIdentifier(Aws::String&& value) { SetScheduleIdentifier(std::move(value)); return *this;} /** *

A unique identifier for the schedule.

*/ inline CreateSnapshotScheduleResult& WithScheduleIdentifier(const char* value) { SetScheduleIdentifier(value); return *this;} /** *

The description of the schedule.

*/ inline const Aws::String& GetScheduleDescription() const{ return m_scheduleDescription; } /** *

The description of the schedule.

*/ inline void SetScheduleDescription(const Aws::String& value) { m_scheduleDescription = value; } /** *

The description of the schedule.

*/ inline void SetScheduleDescription(Aws::String&& value) { m_scheduleDescription = std::move(value); } /** *

The description of the schedule.

*/ inline void SetScheduleDescription(const char* value) { m_scheduleDescription.assign(value); } /** *

The description of the schedule.

*/ inline CreateSnapshotScheduleResult& WithScheduleDescription(const Aws::String& value) { SetScheduleDescription(value); return *this;} /** *

The description of the schedule.

*/ inline CreateSnapshotScheduleResult& WithScheduleDescription(Aws::String&& value) { SetScheduleDescription(std::move(value)); return *this;} /** *

The description of the schedule.

*/ inline CreateSnapshotScheduleResult& WithScheduleDescription(const char* value) { SetScheduleDescription(value); return *this;} /** *

An optional set of tags describing the schedule.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

An optional set of tags describing the schedule.

*/ inline void SetTags(const Aws::Vector& value) { m_tags = value; } /** *

An optional set of tags describing the schedule.

*/ inline void SetTags(Aws::Vector&& value) { m_tags = std::move(value); } /** *

An optional set of tags describing the schedule.

*/ inline CreateSnapshotScheduleResult& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

An optional set of tags describing the schedule.

*/ inline CreateSnapshotScheduleResult& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

An optional set of tags describing the schedule.

*/ inline CreateSnapshotScheduleResult& AddTags(const Tag& value) { m_tags.push_back(value); return *this; } /** *

An optional set of tags describing the schedule.

*/ inline CreateSnapshotScheduleResult& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; } /** *

*/ inline const Aws::Vector& GetNextInvocations() const{ return m_nextInvocations; } /** *

*/ inline void SetNextInvocations(const Aws::Vector& value) { m_nextInvocations = value; } /** *

*/ inline void SetNextInvocations(Aws::Vector&& value) { m_nextInvocations = std::move(value); } /** *

*/ inline CreateSnapshotScheduleResult& WithNextInvocations(const Aws::Vector& value) { SetNextInvocations(value); return *this;} /** *

*/ inline CreateSnapshotScheduleResult& WithNextInvocations(Aws::Vector&& value) { SetNextInvocations(std::move(value)); return *this;} /** *

*/ inline CreateSnapshotScheduleResult& AddNextInvocations(const Aws::Utils::DateTime& value) { m_nextInvocations.push_back(value); return *this; } /** *

*/ inline CreateSnapshotScheduleResult& AddNextInvocations(Aws::Utils::DateTime&& value) { m_nextInvocations.push_back(std::move(value)); return *this; } /** *

The number of clusters associated with the schedule.

*/ inline int GetAssociatedClusterCount() const{ return m_associatedClusterCount; } /** *

The number of clusters associated with the schedule.

*/ inline void SetAssociatedClusterCount(int value) { m_associatedClusterCount = value; } /** *

The number of clusters associated with the schedule.

*/ inline CreateSnapshotScheduleResult& WithAssociatedClusterCount(int value) { SetAssociatedClusterCount(value); return *this;} /** *

A list of clusters associated with the schedule. A maximum of 100 clusters is * returned.

*/ inline const Aws::Vector& GetAssociatedClusters() const{ return m_associatedClusters; } /** *

A list of clusters associated with the schedule. A maximum of 100 clusters is * returned.

*/ inline void SetAssociatedClusters(const Aws::Vector& value) { m_associatedClusters = value; } /** *

A list of clusters associated with the schedule. A maximum of 100 clusters is * returned.

*/ inline void SetAssociatedClusters(Aws::Vector&& value) { m_associatedClusters = std::move(value); } /** *

A list of clusters associated with the schedule. A maximum of 100 clusters is * returned.

*/ inline CreateSnapshotScheduleResult& WithAssociatedClusters(const Aws::Vector& value) { SetAssociatedClusters(value); return *this;} /** *

A list of clusters associated with the schedule. A maximum of 100 clusters is * returned.

*/ inline CreateSnapshotScheduleResult& WithAssociatedClusters(Aws::Vector&& value) { SetAssociatedClusters(std::move(value)); return *this;} /** *

A list of clusters associated with the schedule. A maximum of 100 clusters is * returned.

*/ inline CreateSnapshotScheduleResult& AddAssociatedClusters(const ClusterAssociatedToSchedule& value) { m_associatedClusters.push_back(value); return *this; } /** *

A list of clusters associated with the schedule. A maximum of 100 clusters is * returned.

*/ inline CreateSnapshotScheduleResult& AddAssociatedClusters(ClusterAssociatedToSchedule&& value) { m_associatedClusters.push_back(std::move(value)); return *this; } inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } inline CreateSnapshotScheduleResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline CreateSnapshotScheduleResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::Vector m_scheduleDefinitions; Aws::String m_scheduleIdentifier; Aws::String m_scheduleDescription; Aws::Vector m_tags; Aws::Vector m_nextInvocations; int m_associatedClusterCount; Aws::Vector m_associatedClusters; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace Redshift } // namespace Aws