/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Lightsail { namespace Model { /** */ class GetRelationalDatabaseMasterUserPasswordRequest : public LightsailRequest { public: AWS_LIGHTSAIL_API GetRelationalDatabaseMasterUserPasswordRequest(); // 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 "GetRelationalDatabaseMasterUserPassword"; } AWS_LIGHTSAIL_API Aws::String SerializePayload() const override; AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of your database for which to get the master user password.

*/ inline const Aws::String& GetRelationalDatabaseName() const{ return m_relationalDatabaseName; } /** *

The name of your database for which to get the master user password.

*/ inline bool RelationalDatabaseNameHasBeenSet() const { return m_relationalDatabaseNameHasBeenSet; } /** *

The name of your database for which to get the master user password.

*/ inline void SetRelationalDatabaseName(const Aws::String& value) { m_relationalDatabaseNameHasBeenSet = true; m_relationalDatabaseName = value; } /** *

The name of your database for which to get the master user password.

*/ inline void SetRelationalDatabaseName(Aws::String&& value) { m_relationalDatabaseNameHasBeenSet = true; m_relationalDatabaseName = std::move(value); } /** *

The name of your database for which to get the master user password.

*/ inline void SetRelationalDatabaseName(const char* value) { m_relationalDatabaseNameHasBeenSet = true; m_relationalDatabaseName.assign(value); } /** *

The name of your database for which to get the master user password.

*/ inline GetRelationalDatabaseMasterUserPasswordRequest& WithRelationalDatabaseName(const Aws::String& value) { SetRelationalDatabaseName(value); return *this;} /** *

The name of your database for which to get the master user password.

*/ inline GetRelationalDatabaseMasterUserPasswordRequest& WithRelationalDatabaseName(Aws::String&& value) { SetRelationalDatabaseName(std::move(value)); return *this;} /** *

The name of your database for which to get the master user password.

*/ inline GetRelationalDatabaseMasterUserPasswordRequest& WithRelationalDatabaseName(const char* value) { SetRelationalDatabaseName(value); return *this;} /** *

The password version to return.

Specifying CURRENT or * PREVIOUS returns the current or previous passwords respectively. * Specifying PENDING returns the newest version of the password that * will rotate to CURRENT. After the PENDING password * rotates to CURRENT, the PENDING password is no longer * available.

Default: CURRENT

*/ inline const RelationalDatabasePasswordVersion& GetPasswordVersion() const{ return m_passwordVersion; } /** *

The password version to return.

Specifying CURRENT or * PREVIOUS returns the current or previous passwords respectively. * Specifying PENDING returns the newest version of the password that * will rotate to CURRENT. After the PENDING password * rotates to CURRENT, the PENDING password is no longer * available.

Default: CURRENT

*/ inline bool PasswordVersionHasBeenSet() const { return m_passwordVersionHasBeenSet; } /** *

The password version to return.

Specifying CURRENT or * PREVIOUS returns the current or previous passwords respectively. * Specifying PENDING returns the newest version of the password that * will rotate to CURRENT. After the PENDING password * rotates to CURRENT, the PENDING password is no longer * available.

Default: CURRENT

*/ inline void SetPasswordVersion(const RelationalDatabasePasswordVersion& value) { m_passwordVersionHasBeenSet = true; m_passwordVersion = value; } /** *

The password version to return.

Specifying CURRENT or * PREVIOUS returns the current or previous passwords respectively. * Specifying PENDING returns the newest version of the password that * will rotate to CURRENT. After the PENDING password * rotates to CURRENT, the PENDING password is no longer * available.

Default: CURRENT

*/ inline void SetPasswordVersion(RelationalDatabasePasswordVersion&& value) { m_passwordVersionHasBeenSet = true; m_passwordVersion = std::move(value); } /** *

The password version to return.

Specifying CURRENT or * PREVIOUS returns the current or previous passwords respectively. * Specifying PENDING returns the newest version of the password that * will rotate to CURRENT. After the PENDING password * rotates to CURRENT, the PENDING password is no longer * available.

Default: CURRENT

*/ inline GetRelationalDatabaseMasterUserPasswordRequest& WithPasswordVersion(const RelationalDatabasePasswordVersion& value) { SetPasswordVersion(value); return *this;} /** *

The password version to return.

Specifying CURRENT or * PREVIOUS returns the current or previous passwords respectively. * Specifying PENDING returns the newest version of the password that * will rotate to CURRENT. After the PENDING password * rotates to CURRENT, the PENDING password is no longer * available.

Default: CURRENT

*/ inline GetRelationalDatabaseMasterUserPasswordRequest& WithPasswordVersion(RelationalDatabasePasswordVersion&& value) { SetPasswordVersion(std::move(value)); return *this;} private: Aws::String m_relationalDatabaseName; bool m_relationalDatabaseNameHasBeenSet = false; RelationalDatabasePasswordVersion m_passwordVersion; bool m_passwordVersionHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws