/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace SsmSap { namespace Model { /** */ class GetDatabaseRequest : public SsmSapRequest { public: AWS_SSMSAP_API GetDatabaseRequest(); // 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 "GetDatabase"; } AWS_SSMSAP_API Aws::String SerializePayload() const override; /** *

The ID of the application.

*/ inline const Aws::String& GetApplicationId() const{ return m_applicationId; } /** *

The ID of the application.

*/ inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; } /** *

The ID of the application.

*/ inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; } /** *

The ID of the application.

*/ inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); } /** *

The ID of the application.

*/ inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); } /** *

The ID of the application.

*/ inline GetDatabaseRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;} /** *

The ID of the application.

*/ inline GetDatabaseRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;} /** *

The ID of the application.

*/ inline GetDatabaseRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;} /** *

The ID of the component.

*/ inline const Aws::String& GetComponentId() const{ return m_componentId; } /** *

The ID of the component.

*/ inline bool ComponentIdHasBeenSet() const { return m_componentIdHasBeenSet; } /** *

The ID of the component.

*/ inline void SetComponentId(const Aws::String& value) { m_componentIdHasBeenSet = true; m_componentId = value; } /** *

The ID of the component.

*/ inline void SetComponentId(Aws::String&& value) { m_componentIdHasBeenSet = true; m_componentId = std::move(value); } /** *

The ID of the component.

*/ inline void SetComponentId(const char* value) { m_componentIdHasBeenSet = true; m_componentId.assign(value); } /** *

The ID of the component.

*/ inline GetDatabaseRequest& WithComponentId(const Aws::String& value) { SetComponentId(value); return *this;} /** *

The ID of the component.

*/ inline GetDatabaseRequest& WithComponentId(Aws::String&& value) { SetComponentId(std::move(value)); return *this;} /** *

The ID of the component.

*/ inline GetDatabaseRequest& WithComponentId(const char* value) { SetComponentId(value); return *this;} /** *

The ID of the database.

*/ inline const Aws::String& GetDatabaseId() const{ return m_databaseId; } /** *

The ID of the database.

*/ inline bool DatabaseIdHasBeenSet() const { return m_databaseIdHasBeenSet; } /** *

The ID of the database.

*/ inline void SetDatabaseId(const Aws::String& value) { m_databaseIdHasBeenSet = true; m_databaseId = value; } /** *

The ID of the database.

*/ inline void SetDatabaseId(Aws::String&& value) { m_databaseIdHasBeenSet = true; m_databaseId = std::move(value); } /** *

The ID of the database.

*/ inline void SetDatabaseId(const char* value) { m_databaseIdHasBeenSet = true; m_databaseId.assign(value); } /** *

The ID of the database.

*/ inline GetDatabaseRequest& WithDatabaseId(const Aws::String& value) { SetDatabaseId(value); return *this;} /** *

The ID of the database.

*/ inline GetDatabaseRequest& WithDatabaseId(Aws::String&& value) { SetDatabaseId(std::move(value)); return *this;} /** *

The ID of the database.

*/ inline GetDatabaseRequest& WithDatabaseId(const char* value) { SetDatabaseId(value); return *this;} /** *

The Amazon Resource Name (ARN) of the database.

*/ inline const Aws::String& GetDatabaseArn() const{ return m_databaseArn; } /** *

The Amazon Resource Name (ARN) of the database.

*/ inline bool DatabaseArnHasBeenSet() const { return m_databaseArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the database.

*/ inline void SetDatabaseArn(const Aws::String& value) { m_databaseArnHasBeenSet = true; m_databaseArn = value; } /** *

The Amazon Resource Name (ARN) of the database.

*/ inline void SetDatabaseArn(Aws::String&& value) { m_databaseArnHasBeenSet = true; m_databaseArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the database.

*/ inline void SetDatabaseArn(const char* value) { m_databaseArnHasBeenSet = true; m_databaseArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the database.

*/ inline GetDatabaseRequest& WithDatabaseArn(const Aws::String& value) { SetDatabaseArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the database.

*/ inline GetDatabaseRequest& WithDatabaseArn(Aws::String&& value) { SetDatabaseArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the database.

*/ inline GetDatabaseRequest& WithDatabaseArn(const char* value) { SetDatabaseArn(value); return *this;} private: Aws::String m_applicationId; bool m_applicationIdHasBeenSet = false; Aws::String m_componentId; bool m_componentIdHasBeenSet = false; Aws::String m_databaseId; bool m_databaseIdHasBeenSet = false; Aws::String m_databaseArn; bool m_databaseArnHasBeenSet = false; }; } // namespace Model } // namespace SsmSap } // namespace Aws