This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-redshift/include/aws/redshift/model/CreateSnapshotScheduleRequest.h

292 lines
11 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/redshift/Redshift_EXPORTS.h>
#include <aws/redshift/RedshiftRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/redshift/model/Tag.h>
#include <utility>
namespace Aws
{
namespace Redshift
{
namespace Model
{
/**
*/
class AWS_REDSHIFT_API CreateSnapshotScheduleRequest : public RedshiftRequest
{
public:
CreateSnapshotScheduleRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "CreateSnapshotSchedule"; }
Aws::String SerializePayload() const override;
protected:
void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
public:
/**
* <p>The definition of the snapshot schedule. The definition is made up of
* schedule expressions, for example "cron(30 12 *)" or "rate(12 hours)". </p>
*/
inline const Aws::Vector<Aws::String>& GetScheduleDefinitions() const{ return m_scheduleDefinitions; }
/**
* <p>The definition of the snapshot schedule. The definition is made up of
* schedule expressions, for example "cron(30 12 *)" or "rate(12 hours)". </p>
*/
inline bool ScheduleDefinitionsHasBeenSet() const { return m_scheduleDefinitionsHasBeenSet; }
/**
* <p>The definition of the snapshot schedule. The definition is made up of
* schedule expressions, for example "cron(30 12 *)" or "rate(12 hours)". </p>
*/
inline void SetScheduleDefinitions(const Aws::Vector<Aws::String>& value) { m_scheduleDefinitionsHasBeenSet = true; m_scheduleDefinitions = value; }
/**
* <p>The definition of the snapshot schedule. The definition is made up of
* schedule expressions, for example "cron(30 12 *)" or "rate(12 hours)". </p>
*/
inline void SetScheduleDefinitions(Aws::Vector<Aws::String>&& value) { m_scheduleDefinitionsHasBeenSet = true; m_scheduleDefinitions = std::move(value); }
/**
* <p>The definition of the snapshot schedule. The definition is made up of
* schedule expressions, for example "cron(30 12 *)" or "rate(12 hours)". </p>
*/
inline CreateSnapshotScheduleRequest& WithScheduleDefinitions(const Aws::Vector<Aws::String>& value) { SetScheduleDefinitions(value); return *this;}
/**
* <p>The definition of the snapshot schedule. The definition is made up of
* schedule expressions, for example "cron(30 12 *)" or "rate(12 hours)". </p>
*/
inline CreateSnapshotScheduleRequest& WithScheduleDefinitions(Aws::Vector<Aws::String>&& value) { SetScheduleDefinitions(std::move(value)); return *this;}
/**
* <p>The definition of the snapshot schedule. The definition is made up of
* schedule expressions, for example "cron(30 12 *)" or "rate(12 hours)". </p>
*/
inline CreateSnapshotScheduleRequest& AddScheduleDefinitions(const Aws::String& value) { m_scheduleDefinitionsHasBeenSet = true; m_scheduleDefinitions.push_back(value); return *this; }
/**
* <p>The definition of the snapshot schedule. The definition is made up of
* schedule expressions, for example "cron(30 12 *)" or "rate(12 hours)". </p>
*/
inline CreateSnapshotScheduleRequest& AddScheduleDefinitions(Aws::String&& value) { m_scheduleDefinitionsHasBeenSet = true; m_scheduleDefinitions.push_back(std::move(value)); return *this; }
/**
* <p>The definition of the snapshot schedule. The definition is made up of
* schedule expressions, for example "cron(30 12 *)" or "rate(12 hours)". </p>
*/
inline CreateSnapshotScheduleRequest& AddScheduleDefinitions(const char* value) { m_scheduleDefinitionsHasBeenSet = true; m_scheduleDefinitions.push_back(value); return *this; }
/**
* <p>A unique identifier for a snapshot schedule. Only alphanumeric characters are
* allowed for the identifier.</p>
*/
inline const Aws::String& GetScheduleIdentifier() const{ return m_scheduleIdentifier; }
/**
* <p>A unique identifier for a snapshot schedule. Only alphanumeric characters are
* allowed for the identifier.</p>
*/
inline bool ScheduleIdentifierHasBeenSet() const { return m_scheduleIdentifierHasBeenSet; }
/**
* <p>A unique identifier for a snapshot schedule. Only alphanumeric characters are
* allowed for the identifier.</p>
*/
inline void SetScheduleIdentifier(const Aws::String& value) { m_scheduleIdentifierHasBeenSet = true; m_scheduleIdentifier = value; }
/**
* <p>A unique identifier for a snapshot schedule. Only alphanumeric characters are
* allowed for the identifier.</p>
*/
inline void SetScheduleIdentifier(Aws::String&& value) { m_scheduleIdentifierHasBeenSet = true; m_scheduleIdentifier = std::move(value); }
/**
* <p>A unique identifier for a snapshot schedule. Only alphanumeric characters are
* allowed for the identifier.</p>
*/
inline void SetScheduleIdentifier(const char* value) { m_scheduleIdentifierHasBeenSet = true; m_scheduleIdentifier.assign(value); }
/**
* <p>A unique identifier for a snapshot schedule. Only alphanumeric characters are
* allowed for the identifier.</p>
*/
inline CreateSnapshotScheduleRequest& WithScheduleIdentifier(const Aws::String& value) { SetScheduleIdentifier(value); return *this;}
/**
* <p>A unique identifier for a snapshot schedule. Only alphanumeric characters are
* allowed for the identifier.</p>
*/
inline CreateSnapshotScheduleRequest& WithScheduleIdentifier(Aws::String&& value) { SetScheduleIdentifier(std::move(value)); return *this;}
/**
* <p>A unique identifier for a snapshot schedule. Only alphanumeric characters are
* allowed for the identifier.</p>
*/
inline CreateSnapshotScheduleRequest& WithScheduleIdentifier(const char* value) { SetScheduleIdentifier(value); return *this;}
/**
* <p>The description of the snapshot schedule.</p>
*/
inline const Aws::String& GetScheduleDescription() const{ return m_scheduleDescription; }
/**
* <p>The description of the snapshot schedule.</p>
*/
inline bool ScheduleDescriptionHasBeenSet() const { return m_scheduleDescriptionHasBeenSet; }
/**
* <p>The description of the snapshot schedule.</p>
*/
inline void SetScheduleDescription(const Aws::String& value) { m_scheduleDescriptionHasBeenSet = true; m_scheduleDescription = value; }
/**
* <p>The description of the snapshot schedule.</p>
*/
inline void SetScheduleDescription(Aws::String&& value) { m_scheduleDescriptionHasBeenSet = true; m_scheduleDescription = std::move(value); }
/**
* <p>The description of the snapshot schedule.</p>
*/
inline void SetScheduleDescription(const char* value) { m_scheduleDescriptionHasBeenSet = true; m_scheduleDescription.assign(value); }
/**
* <p>The description of the snapshot schedule.</p>
*/
inline CreateSnapshotScheduleRequest& WithScheduleDescription(const Aws::String& value) { SetScheduleDescription(value); return *this;}
/**
* <p>The description of the snapshot schedule.</p>
*/
inline CreateSnapshotScheduleRequest& WithScheduleDescription(Aws::String&& value) { SetScheduleDescription(std::move(value)); return *this;}
/**
* <p>The description of the snapshot schedule.</p>
*/
inline CreateSnapshotScheduleRequest& WithScheduleDescription(const char* value) { SetScheduleDescription(value); return *this;}
/**
* <p>An optional set of tags you can use to search for the schedule.</p>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>An optional set of tags you can use to search for the schedule.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>An optional set of tags you can use to search for the schedule.</p>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>An optional set of tags you can use to search for the schedule.</p>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>An optional set of tags you can use to search for the schedule.</p>
*/
inline CreateSnapshotScheduleRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>An optional set of tags you can use to search for the schedule.</p>
*/
inline CreateSnapshotScheduleRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>An optional set of tags you can use to search for the schedule.</p>
*/
inline CreateSnapshotScheduleRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>An optional set of tags you can use to search for the schedule.</p>
*/
inline CreateSnapshotScheduleRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
/**
* <p/>
*/
inline bool GetDryRun() const{ return m_dryRun; }
/**
* <p/>
*/
inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
/**
* <p/>
*/
inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
/**
* <p/>
*/
inline CreateSnapshotScheduleRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
/**
* <p/>
*/
inline int GetNextInvocations() const{ return m_nextInvocations; }
/**
* <p/>
*/
inline bool NextInvocationsHasBeenSet() const { return m_nextInvocationsHasBeenSet; }
/**
* <p/>
*/
inline void SetNextInvocations(int value) { m_nextInvocationsHasBeenSet = true; m_nextInvocations = value; }
/**
* <p/>
*/
inline CreateSnapshotScheduleRequest& WithNextInvocations(int value) { SetNextInvocations(value); return *this;}
private:
Aws::Vector<Aws::String> m_scheduleDefinitions;
bool m_scheduleDefinitionsHasBeenSet;
Aws::String m_scheduleIdentifier;
bool m_scheduleIdentifierHasBeenSet;
Aws::String m_scheduleDescription;
bool m_scheduleDescriptionHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
bool m_dryRun;
bool m_dryRunHasBeenSet;
int m_nextInvocations;
bool m_nextInvocationsHasBeenSet;
};
} // namespace Model
} // namespace Redshift
} // namespace Aws