208 lines
9.1 KiB
C++
208 lines
9.1 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/lightsail/Lightsail_EXPORTS.h>
|
|
#include <aws/lightsail/LightsailRequest.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <aws/lightsail/model/Tag.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Lightsail
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
*/
|
|
class AWS_LIGHTSAIL_API CreateRelationalDatabaseSnapshotRequest : public LightsailRequest
|
|
{
|
|
public:
|
|
CreateRelationalDatabaseSnapshotRequest();
|
|
|
|
// 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 "CreateRelationalDatabaseSnapshot"; }
|
|
|
|
Aws::String SerializePayload() const override;
|
|
|
|
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
|
|
|
|
|
/**
|
|
* <p>The name of the database on which to base your new snapshot.</p>
|
|
*/
|
|
inline const Aws::String& GetRelationalDatabaseName() const{ return m_relationalDatabaseName; }
|
|
|
|
/**
|
|
* <p>The name of the database on which to base your new snapshot.</p>
|
|
*/
|
|
inline bool RelationalDatabaseNameHasBeenSet() const { return m_relationalDatabaseNameHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The name of the database on which to base your new snapshot.</p>
|
|
*/
|
|
inline void SetRelationalDatabaseName(const Aws::String& value) { m_relationalDatabaseNameHasBeenSet = true; m_relationalDatabaseName = value; }
|
|
|
|
/**
|
|
* <p>The name of the database on which to base your new snapshot.</p>
|
|
*/
|
|
inline void SetRelationalDatabaseName(Aws::String&& value) { m_relationalDatabaseNameHasBeenSet = true; m_relationalDatabaseName = std::move(value); }
|
|
|
|
/**
|
|
* <p>The name of the database on which to base your new snapshot.</p>
|
|
*/
|
|
inline void SetRelationalDatabaseName(const char* value) { m_relationalDatabaseNameHasBeenSet = true; m_relationalDatabaseName.assign(value); }
|
|
|
|
/**
|
|
* <p>The name of the database on which to base your new snapshot.</p>
|
|
*/
|
|
inline CreateRelationalDatabaseSnapshotRequest& WithRelationalDatabaseName(const Aws::String& value) { SetRelationalDatabaseName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the database on which to base your new snapshot.</p>
|
|
*/
|
|
inline CreateRelationalDatabaseSnapshotRequest& WithRelationalDatabaseName(Aws::String&& value) { SetRelationalDatabaseName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the database on which to base your new snapshot.</p>
|
|
*/
|
|
inline CreateRelationalDatabaseSnapshotRequest& WithRelationalDatabaseName(const char* value) { SetRelationalDatabaseName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The name for your new database snapshot.</p> <p>Constraints:</p> <ul> <li>
|
|
* <p>Must contain from 2 to 255 alphanumeric characters, or hyphens.</p> </li>
|
|
* <li> <p>The first and last character must be a letter or number.</p> </li> </ul>
|
|
*/
|
|
inline const Aws::String& GetRelationalDatabaseSnapshotName() const{ return m_relationalDatabaseSnapshotName; }
|
|
|
|
/**
|
|
* <p>The name for your new database snapshot.</p> <p>Constraints:</p> <ul> <li>
|
|
* <p>Must contain from 2 to 255 alphanumeric characters, or hyphens.</p> </li>
|
|
* <li> <p>The first and last character must be a letter or number.</p> </li> </ul>
|
|
*/
|
|
inline bool RelationalDatabaseSnapshotNameHasBeenSet() const { return m_relationalDatabaseSnapshotNameHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The name for your new database snapshot.</p> <p>Constraints:</p> <ul> <li>
|
|
* <p>Must contain from 2 to 255 alphanumeric characters, or hyphens.</p> </li>
|
|
* <li> <p>The first and last character must be a letter or number.</p> </li> </ul>
|
|
*/
|
|
inline void SetRelationalDatabaseSnapshotName(const Aws::String& value) { m_relationalDatabaseSnapshotNameHasBeenSet = true; m_relationalDatabaseSnapshotName = value; }
|
|
|
|
/**
|
|
* <p>The name for your new database snapshot.</p> <p>Constraints:</p> <ul> <li>
|
|
* <p>Must contain from 2 to 255 alphanumeric characters, or hyphens.</p> </li>
|
|
* <li> <p>The first and last character must be a letter or number.</p> </li> </ul>
|
|
*/
|
|
inline void SetRelationalDatabaseSnapshotName(Aws::String&& value) { m_relationalDatabaseSnapshotNameHasBeenSet = true; m_relationalDatabaseSnapshotName = std::move(value); }
|
|
|
|
/**
|
|
* <p>The name for your new database snapshot.</p> <p>Constraints:</p> <ul> <li>
|
|
* <p>Must contain from 2 to 255 alphanumeric characters, or hyphens.</p> </li>
|
|
* <li> <p>The first and last character must be a letter or number.</p> </li> </ul>
|
|
*/
|
|
inline void SetRelationalDatabaseSnapshotName(const char* value) { m_relationalDatabaseSnapshotNameHasBeenSet = true; m_relationalDatabaseSnapshotName.assign(value); }
|
|
|
|
/**
|
|
* <p>The name for your new database snapshot.</p> <p>Constraints:</p> <ul> <li>
|
|
* <p>Must contain from 2 to 255 alphanumeric characters, or hyphens.</p> </li>
|
|
* <li> <p>The first and last character must be a letter or number.</p> </li> </ul>
|
|
*/
|
|
inline CreateRelationalDatabaseSnapshotRequest& WithRelationalDatabaseSnapshotName(const Aws::String& value) { SetRelationalDatabaseSnapshotName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The name for your new database snapshot.</p> <p>Constraints:</p> <ul> <li>
|
|
* <p>Must contain from 2 to 255 alphanumeric characters, or hyphens.</p> </li>
|
|
* <li> <p>The first and last character must be a letter or number.</p> </li> </ul>
|
|
*/
|
|
inline CreateRelationalDatabaseSnapshotRequest& WithRelationalDatabaseSnapshotName(Aws::String&& value) { SetRelationalDatabaseSnapshotName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The name for your new database snapshot.</p> <p>Constraints:</p> <ul> <li>
|
|
* <p>Must contain from 2 to 255 alphanumeric characters, or hyphens.</p> </li>
|
|
* <li> <p>The first and last character must be a letter or number.</p> </li> </ul>
|
|
*/
|
|
inline CreateRelationalDatabaseSnapshotRequest& WithRelationalDatabaseSnapshotName(const char* value) { SetRelationalDatabaseSnapshotName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The tag keys and optional values to add to the resource during create.</p>
|
|
* <p>Use the <code>TagResource</code> action to tag a resource after it's
|
|
* created.</p>
|
|
*/
|
|
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
|
|
|
|
/**
|
|
* <p>The tag keys and optional values to add to the resource during create.</p>
|
|
* <p>Use the <code>TagResource</code> action to tag a resource after it's
|
|
* created.</p>
|
|
*/
|
|
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The tag keys and optional values to add to the resource during create.</p>
|
|
* <p>Use the <code>TagResource</code> action to tag a resource after it's
|
|
* created.</p>
|
|
*/
|
|
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
|
|
|
|
/**
|
|
* <p>The tag keys and optional values to add to the resource during create.</p>
|
|
* <p>Use the <code>TagResource</code> action to tag a resource after it's
|
|
* created.</p>
|
|
*/
|
|
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
|
|
|
|
/**
|
|
* <p>The tag keys and optional values to add to the resource during create.</p>
|
|
* <p>Use the <code>TagResource</code> action to tag a resource after it's
|
|
* created.</p>
|
|
*/
|
|
inline CreateRelationalDatabaseSnapshotRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
|
|
|
|
/**
|
|
* <p>The tag keys and optional values to add to the resource during create.</p>
|
|
* <p>Use the <code>TagResource</code> action to tag a resource after it's
|
|
* created.</p>
|
|
*/
|
|
inline CreateRelationalDatabaseSnapshotRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The tag keys and optional values to add to the resource during create.</p>
|
|
* <p>Use the <code>TagResource</code> action to tag a resource after it's
|
|
* created.</p>
|
|
*/
|
|
inline CreateRelationalDatabaseSnapshotRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>The tag keys and optional values to add to the resource during create.</p>
|
|
* <p>Use the <code>TagResource</code> action to tag a resource after it's
|
|
* created.</p>
|
|
*/
|
|
inline CreateRelationalDatabaseSnapshotRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
|
|
|
|
private:
|
|
|
|
Aws::String m_relationalDatabaseName;
|
|
bool m_relationalDatabaseNameHasBeenSet;
|
|
|
|
Aws::String m_relationalDatabaseSnapshotName;
|
|
bool m_relationalDatabaseSnapshotNameHasBeenSet;
|
|
|
|
Aws::Vector<Tag> m_tags;
|
|
bool m_tagsHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace Lightsail
|
|
} // namespace Aws
|