230 lines
10 KiB
C++
230 lines
10 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/AWSString.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <aws/redshift/model/Tag.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Redshift
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>The result of the <code>CreateSnapshotCopyGrant</code> action.</p><p><h3>See
|
|
* Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateSnapshotCopyGrantMessage">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_REDSHIFT_API CreateSnapshotCopyGrantRequest : public RedshiftRequest
|
|
{
|
|
public:
|
|
CreateSnapshotCopyGrantRequest();
|
|
|
|
// 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 "CreateSnapshotCopyGrant"; }
|
|
|
|
Aws::String SerializePayload() const override;
|
|
|
|
protected:
|
|
void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
|
|
|
|
public:
|
|
|
|
/**
|
|
* <p>The name of the snapshot copy grant. This name must be unique in the region
|
|
* for the AWS account.</p> <p>Constraints:</p> <ul> <li> <p>Must contain from 1 to
|
|
* 63 alphanumeric characters or hyphens.</p> </li> <li> <p>Alphabetic characters
|
|
* must be lowercase.</p> </li> <li> <p>First character must be a letter.</p> </li>
|
|
* <li> <p>Cannot end with a hyphen or contain two consecutive hyphens.</p> </li>
|
|
* <li> <p>Must be unique for all clusters within an AWS account.</p> </li> </ul>
|
|
*/
|
|
inline const Aws::String& GetSnapshotCopyGrantName() const{ return m_snapshotCopyGrantName; }
|
|
|
|
/**
|
|
* <p>The name of the snapshot copy grant. This name must be unique in the region
|
|
* for the AWS account.</p> <p>Constraints:</p> <ul> <li> <p>Must contain from 1 to
|
|
* 63 alphanumeric characters or hyphens.</p> </li> <li> <p>Alphabetic characters
|
|
* must be lowercase.</p> </li> <li> <p>First character must be a letter.</p> </li>
|
|
* <li> <p>Cannot end with a hyphen or contain two consecutive hyphens.</p> </li>
|
|
* <li> <p>Must be unique for all clusters within an AWS account.</p> </li> </ul>
|
|
*/
|
|
inline bool SnapshotCopyGrantNameHasBeenSet() const { return m_snapshotCopyGrantNameHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The name of the snapshot copy grant. This name must be unique in the region
|
|
* for the AWS account.</p> <p>Constraints:</p> <ul> <li> <p>Must contain from 1 to
|
|
* 63 alphanumeric characters or hyphens.</p> </li> <li> <p>Alphabetic characters
|
|
* must be lowercase.</p> </li> <li> <p>First character must be a letter.</p> </li>
|
|
* <li> <p>Cannot end with a hyphen or contain two consecutive hyphens.</p> </li>
|
|
* <li> <p>Must be unique for all clusters within an AWS account.</p> </li> </ul>
|
|
*/
|
|
inline void SetSnapshotCopyGrantName(const Aws::String& value) { m_snapshotCopyGrantNameHasBeenSet = true; m_snapshotCopyGrantName = value; }
|
|
|
|
/**
|
|
* <p>The name of the snapshot copy grant. This name must be unique in the region
|
|
* for the AWS account.</p> <p>Constraints:</p> <ul> <li> <p>Must contain from 1 to
|
|
* 63 alphanumeric characters or hyphens.</p> </li> <li> <p>Alphabetic characters
|
|
* must be lowercase.</p> </li> <li> <p>First character must be a letter.</p> </li>
|
|
* <li> <p>Cannot end with a hyphen or contain two consecutive hyphens.</p> </li>
|
|
* <li> <p>Must be unique for all clusters within an AWS account.</p> </li> </ul>
|
|
*/
|
|
inline void SetSnapshotCopyGrantName(Aws::String&& value) { m_snapshotCopyGrantNameHasBeenSet = true; m_snapshotCopyGrantName = std::move(value); }
|
|
|
|
/**
|
|
* <p>The name of the snapshot copy grant. This name must be unique in the region
|
|
* for the AWS account.</p> <p>Constraints:</p> <ul> <li> <p>Must contain from 1 to
|
|
* 63 alphanumeric characters or hyphens.</p> </li> <li> <p>Alphabetic characters
|
|
* must be lowercase.</p> </li> <li> <p>First character must be a letter.</p> </li>
|
|
* <li> <p>Cannot end with a hyphen or contain two consecutive hyphens.</p> </li>
|
|
* <li> <p>Must be unique for all clusters within an AWS account.</p> </li> </ul>
|
|
*/
|
|
inline void SetSnapshotCopyGrantName(const char* value) { m_snapshotCopyGrantNameHasBeenSet = true; m_snapshotCopyGrantName.assign(value); }
|
|
|
|
/**
|
|
* <p>The name of the snapshot copy grant. This name must be unique in the region
|
|
* for the AWS account.</p> <p>Constraints:</p> <ul> <li> <p>Must contain from 1 to
|
|
* 63 alphanumeric characters or hyphens.</p> </li> <li> <p>Alphabetic characters
|
|
* must be lowercase.</p> </li> <li> <p>First character must be a letter.</p> </li>
|
|
* <li> <p>Cannot end with a hyphen or contain two consecutive hyphens.</p> </li>
|
|
* <li> <p>Must be unique for all clusters within an AWS account.</p> </li> </ul>
|
|
*/
|
|
inline CreateSnapshotCopyGrantRequest& WithSnapshotCopyGrantName(const Aws::String& value) { SetSnapshotCopyGrantName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the snapshot copy grant. This name must be unique in the region
|
|
* for the AWS account.</p> <p>Constraints:</p> <ul> <li> <p>Must contain from 1 to
|
|
* 63 alphanumeric characters or hyphens.</p> </li> <li> <p>Alphabetic characters
|
|
* must be lowercase.</p> </li> <li> <p>First character must be a letter.</p> </li>
|
|
* <li> <p>Cannot end with a hyphen or contain two consecutive hyphens.</p> </li>
|
|
* <li> <p>Must be unique for all clusters within an AWS account.</p> </li> </ul>
|
|
*/
|
|
inline CreateSnapshotCopyGrantRequest& WithSnapshotCopyGrantName(Aws::String&& value) { SetSnapshotCopyGrantName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the snapshot copy grant. This name must be unique in the region
|
|
* for the AWS account.</p> <p>Constraints:</p> <ul> <li> <p>Must contain from 1 to
|
|
* 63 alphanumeric characters or hyphens.</p> </li> <li> <p>Alphabetic characters
|
|
* must be lowercase.</p> </li> <li> <p>First character must be a letter.</p> </li>
|
|
* <li> <p>Cannot end with a hyphen or contain two consecutive hyphens.</p> </li>
|
|
* <li> <p>Must be unique for all clusters within an AWS account.</p> </li> </ul>
|
|
*/
|
|
inline CreateSnapshotCopyGrantRequest& WithSnapshotCopyGrantName(const char* value) { SetSnapshotCopyGrantName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The unique identifier of the customer master key (CMK) to which to grant
|
|
* Amazon Redshift permission. If no key is specified, the default key is used.</p>
|
|
*/
|
|
inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
|
|
|
|
/**
|
|
* <p>The unique identifier of the customer master key (CMK) to which to grant
|
|
* Amazon Redshift permission. If no key is specified, the default key is used.</p>
|
|
*/
|
|
inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The unique identifier of the customer master key (CMK) to which to grant
|
|
* Amazon Redshift permission. If no key is specified, the default key is used.</p>
|
|
*/
|
|
inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
|
|
|
|
/**
|
|
* <p>The unique identifier of the customer master key (CMK) to which to grant
|
|
* Amazon Redshift permission. If no key is specified, the default key is used.</p>
|
|
*/
|
|
inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
|
|
|
|
/**
|
|
* <p>The unique identifier of the customer master key (CMK) to which to grant
|
|
* Amazon Redshift permission. If no key is specified, the default key is used.</p>
|
|
*/
|
|
inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
|
|
|
|
/**
|
|
* <p>The unique identifier of the customer master key (CMK) to which to grant
|
|
* Amazon Redshift permission. If no key is specified, the default key is used.</p>
|
|
*/
|
|
inline CreateSnapshotCopyGrantRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The unique identifier of the customer master key (CMK) to which to grant
|
|
* Amazon Redshift permission. If no key is specified, the default key is used.</p>
|
|
*/
|
|
inline CreateSnapshotCopyGrantRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The unique identifier of the customer master key (CMK) to which to grant
|
|
* Amazon Redshift permission. If no key is specified, the default key is used.</p>
|
|
*/
|
|
inline CreateSnapshotCopyGrantRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>A list of tag instances.</p>
|
|
*/
|
|
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
|
|
|
|
/**
|
|
* <p>A list of tag instances.</p>
|
|
*/
|
|
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>A list of tag instances.</p>
|
|
*/
|
|
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
|
|
|
|
/**
|
|
* <p>A list of tag instances.</p>
|
|
*/
|
|
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
|
|
|
|
/**
|
|
* <p>A list of tag instances.</p>
|
|
*/
|
|
inline CreateSnapshotCopyGrantRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
|
|
|
|
/**
|
|
* <p>A list of tag instances.</p>
|
|
*/
|
|
inline CreateSnapshotCopyGrantRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>A list of tag instances.</p>
|
|
*/
|
|
inline CreateSnapshotCopyGrantRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>A list of tag instances.</p>
|
|
*/
|
|
inline CreateSnapshotCopyGrantRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
|
|
|
|
private:
|
|
|
|
Aws::String m_snapshotCopyGrantName;
|
|
bool m_snapshotCopyGrantNameHasBeenSet;
|
|
|
|
Aws::String m_kmsKeyId;
|
|
bool m_kmsKeyIdHasBeenSet;
|
|
|
|
Aws::Vector<Tag> m_tags;
|
|
bool m_tagsHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace Redshift
|
|
} // namespace Aws
|