/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include
#include
#include
#include
#include
#include
namespace Aws
{
namespace RDS
{
namespace Model
{
/**
* See Also:
AWS
* API Reference
*/
class AWS_RDS_API CreateDBSnapshotRequest : public RDSRequest
{
public:
CreateDBSnapshotRequest();
// 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 "CreateDBSnapshot"; }
Aws::String SerializePayload() const override;
protected:
void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
public:
/**
* The identifier for the DB snapshot.
Constraints:
-
*
Can't be null, empty, or blank
-
Must contain from 1 to 255
* letters, numbers, or hyphens
-
First character must be a
* letter
-
Can't end with a hyphen or contain two consecutive
* hyphens
Example: my-snapshot-id
*/
inline const Aws::String& GetDBSnapshotIdentifier() const{ return m_dBSnapshotIdentifier; }
/**
* The identifier for the DB snapshot.
Constraints:
-
*
Can't be null, empty, or blank
-
Must contain from 1 to 255
* letters, numbers, or hyphens
-
First character must be a
* letter
-
Can't end with a hyphen or contain two consecutive
* hyphens
Example: my-snapshot-id
*/
inline bool DBSnapshotIdentifierHasBeenSet() const { return m_dBSnapshotIdentifierHasBeenSet; }
/**
* The identifier for the DB snapshot.
Constraints:
-
*
Can't be null, empty, or blank
-
Must contain from 1 to 255
* letters, numbers, or hyphens
-
First character must be a
* letter
-
Can't end with a hyphen or contain two consecutive
* hyphens
Example: my-snapshot-id
*/
inline void SetDBSnapshotIdentifier(const Aws::String& value) { m_dBSnapshotIdentifierHasBeenSet = true; m_dBSnapshotIdentifier = value; }
/**
* The identifier for the DB snapshot.
Constraints:
-
*
Can't be null, empty, or blank
-
Must contain from 1 to 255
* letters, numbers, or hyphens
-
First character must be a
* letter
-
Can't end with a hyphen or contain two consecutive
* hyphens
Example: my-snapshot-id
*/
inline void SetDBSnapshotIdentifier(Aws::String&& value) { m_dBSnapshotIdentifierHasBeenSet = true; m_dBSnapshotIdentifier = std::move(value); }
/**
* The identifier for the DB snapshot.
Constraints:
-
*
Can't be null, empty, or blank
-
Must contain from 1 to 255
* letters, numbers, or hyphens
-
First character must be a
* letter
-
Can't end with a hyphen or contain two consecutive
* hyphens
Example: my-snapshot-id
*/
inline void SetDBSnapshotIdentifier(const char* value) { m_dBSnapshotIdentifierHasBeenSet = true; m_dBSnapshotIdentifier.assign(value); }
/**
* The identifier for the DB snapshot.
Constraints:
-
*
Can't be null, empty, or blank
-
Must contain from 1 to 255
* letters, numbers, or hyphens
-
First character must be a
* letter
-
Can't end with a hyphen or contain two consecutive
* hyphens
Example: my-snapshot-id
*/
inline CreateDBSnapshotRequest& WithDBSnapshotIdentifier(const Aws::String& value) { SetDBSnapshotIdentifier(value); return *this;}
/**
* The identifier for the DB snapshot.
Constraints:
-
*
Can't be null, empty, or blank
-
Must contain from 1 to 255
* letters, numbers, or hyphens
-
First character must be a
* letter
-
Can't end with a hyphen or contain two consecutive
* hyphens
Example: my-snapshot-id
*/
inline CreateDBSnapshotRequest& WithDBSnapshotIdentifier(Aws::String&& value) { SetDBSnapshotIdentifier(std::move(value)); return *this;}
/**
* The identifier for the DB snapshot.
Constraints:
-
*
Can't be null, empty, or blank
-
Must contain from 1 to 255
* letters, numbers, or hyphens
-
First character must be a
* letter
-
Can't end with a hyphen or contain two consecutive
* hyphens
Example: my-snapshot-id
*/
inline CreateDBSnapshotRequest& WithDBSnapshotIdentifier(const char* value) { SetDBSnapshotIdentifier(value); return *this;}
/**
* The identifier of the DB instance that you want to create the snapshot
* of.
Constraints:
*/
inline const Aws::String& GetDBInstanceIdentifier() const{ return m_dBInstanceIdentifier; }
/**
* The identifier of the DB instance that you want to create the snapshot
* of.
Constraints:
*/
inline bool DBInstanceIdentifierHasBeenSet() const { return m_dBInstanceIdentifierHasBeenSet; }
/**
* The identifier of the DB instance that you want to create the snapshot
* of.
Constraints:
*/
inline void SetDBInstanceIdentifier(const Aws::String& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = value; }
/**
* The identifier of the DB instance that you want to create the snapshot
* of.
Constraints:
*/
inline void SetDBInstanceIdentifier(Aws::String&& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = std::move(value); }
/**
* The identifier of the DB instance that you want to create the snapshot
* of.
Constraints:
*/
inline void SetDBInstanceIdentifier(const char* value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier.assign(value); }
/**
* The identifier of the DB instance that you want to create the snapshot
* of.
Constraints:
*/
inline CreateDBSnapshotRequest& WithDBInstanceIdentifier(const Aws::String& value) { SetDBInstanceIdentifier(value); return *this;}
/**
* The identifier of the DB instance that you want to create the snapshot
* of.
Constraints:
*/
inline CreateDBSnapshotRequest& WithDBInstanceIdentifier(Aws::String&& value) { SetDBInstanceIdentifier(std::move(value)); return *this;}
/**
* The identifier of the DB instance that you want to create the snapshot
* of.
Constraints:
*/
inline CreateDBSnapshotRequest& WithDBInstanceIdentifier(const char* value) { SetDBInstanceIdentifier(value); return *this;}
inline const Aws::Vector& GetTags() const{ return m_tags; }
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; }
inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
inline CreateDBSnapshotRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;}
inline CreateDBSnapshotRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;}
inline CreateDBSnapshotRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
inline CreateDBSnapshotRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
Aws::String m_dBSnapshotIdentifier;
bool m_dBSnapshotIdentifierHasBeenSet;
Aws::String m_dBInstanceIdentifier;
bool m_dBInstanceIdentifierHasBeenSet;
Aws::Vector m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace RDS
} // namespace Aws