240 lines
8.4 KiB
C
240 lines
8.4 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/elasticache/ElastiCache_EXPORTS.h>
|
|||
|
|
#include <aws/elasticache/ElastiCacheRequest.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace ElastiCache
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Represents the input of a <code>CreateSnapshot</code>
|
|||
|
|
* operation.</p><p><h3>See Also:</h3> <a
|
|||
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CreateSnapshotMessage">AWS
|
|||
|
|
* API Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class AWS_ELASTICACHE_API CreateSnapshotRequest : public ElastiCacheRequest
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
CreateSnapshotRequest();
|
|||
|
|
|
|||
|
|
// 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 "CreateSnapshot"; }
|
|||
|
|
|
|||
|
|
Aws::String SerializePayload() const override;
|
|||
|
|
|
|||
|
|
protected:
|
|||
|
|
void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
|
|||
|
|
|
|||
|
|
public:
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The identifier of an existing replication group. The snapshot is created from
|
|||
|
|
* this replication group.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetReplicationGroupId() const{ return m_replicationGroupId; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The identifier of an existing replication group. The snapshot is created from
|
|||
|
|
* this replication group.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool ReplicationGroupIdHasBeenSet() const { return m_replicationGroupIdHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The identifier of an existing replication group. The snapshot is created from
|
|||
|
|
* this replication group.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetReplicationGroupId(const Aws::String& value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The identifier of an existing replication group. The snapshot is created from
|
|||
|
|
* this replication group.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetReplicationGroupId(Aws::String&& value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The identifier of an existing replication group. The snapshot is created from
|
|||
|
|
* this replication group.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetReplicationGroupId(const char* value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The identifier of an existing replication group. The snapshot is created from
|
|||
|
|
* this replication group.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateSnapshotRequest& WithReplicationGroupId(const Aws::String& value) { SetReplicationGroupId(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The identifier of an existing replication group. The snapshot is created from
|
|||
|
|
* this replication group.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateSnapshotRequest& WithReplicationGroupId(Aws::String&& value) { SetReplicationGroupId(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The identifier of an existing replication group. The snapshot is created from
|
|||
|
|
* this replication group.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateSnapshotRequest& WithReplicationGroupId(const char* value) { SetReplicationGroupId(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The identifier of an existing cluster. The snapshot is created from this
|
|||
|
|
* cluster.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetCacheClusterId() const{ return m_cacheClusterId; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The identifier of an existing cluster. The snapshot is created from this
|
|||
|
|
* cluster.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool CacheClusterIdHasBeenSet() const { return m_cacheClusterIdHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The identifier of an existing cluster. The snapshot is created from this
|
|||
|
|
* cluster.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetCacheClusterId(const Aws::String& value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The identifier of an existing cluster. The snapshot is created from this
|
|||
|
|
* cluster.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetCacheClusterId(Aws::String&& value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The identifier of an existing cluster. The snapshot is created from this
|
|||
|
|
* cluster.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetCacheClusterId(const char* value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The identifier of an existing cluster. The snapshot is created from this
|
|||
|
|
* cluster.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateSnapshotRequest& WithCacheClusterId(const Aws::String& value) { SetCacheClusterId(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The identifier of an existing cluster. The snapshot is created from this
|
|||
|
|
* cluster.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateSnapshotRequest& WithCacheClusterId(Aws::String&& value) { SetCacheClusterId(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The identifier of an existing cluster. The snapshot is created from this
|
|||
|
|
* cluster.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateSnapshotRequest& WithCacheClusterId(const char* value) { SetCacheClusterId(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A name for the snapshot being created.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetSnapshotName() const{ return m_snapshotName; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A name for the snapshot being created.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool SnapshotNameHasBeenSet() const { return m_snapshotNameHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A name for the snapshot being created.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSnapshotName(const Aws::String& value) { m_snapshotNameHasBeenSet = true; m_snapshotName = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A name for the snapshot being created.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSnapshotName(Aws::String&& value) { m_snapshotNameHasBeenSet = true; m_snapshotName = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A name for the snapshot being created.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSnapshotName(const char* value) { m_snapshotNameHasBeenSet = true; m_snapshotName.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A name for the snapshot being created.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateSnapshotRequest& WithSnapshotName(const Aws::String& value) { SetSnapshotName(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A name for the snapshot being created.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateSnapshotRequest& WithSnapshotName(Aws::String&& value) { SetSnapshotName(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A name for the snapshot being created.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateSnapshotRequest& WithSnapshotName(const char* value) { SetSnapshotName(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the KMS key used to encrypt the snapshot.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the KMS key used to encrypt the snapshot.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the KMS key used to encrypt the snapshot.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the KMS key used to encrypt the snapshot.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the KMS key used to encrypt the snapshot.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the KMS key used to encrypt the snapshot.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateSnapshotRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the KMS key used to encrypt the snapshot.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateSnapshotRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the KMS key used to encrypt the snapshot.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateSnapshotRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
Aws::String m_replicationGroupId;
|
|||
|
|
bool m_replicationGroupIdHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_cacheClusterId;
|
|||
|
|
bool m_cacheClusterIdHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_snapshotName;
|
|||
|
|
bool m_snapshotNameHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_kmsKeyId;
|
|||
|
|
bool m_kmsKeyIdHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace ElastiCache
|
|||
|
|
} // namespace Aws
|