/** * 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 Proton { namespace Model { /** */ class GetDeploymentRequest : public ProtonRequest { public: AWS_PROTON_API GetDeploymentRequest(); // 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 "GetDeployment"; } AWS_PROTON_API Aws::String SerializePayload() const override; AWS_PROTON_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of a component that you want to get the detailed data for.

*/ inline const Aws::String& GetComponentName() const{ return m_componentName; } /** *

The name of a component that you want to get the detailed data for.

*/ inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; } /** *

The name of a component that you want to get the detailed data for.

*/ inline void SetComponentName(const Aws::String& value) { m_componentNameHasBeenSet = true; m_componentName = value; } /** *

The name of a component that you want to get the detailed data for.

*/ inline void SetComponentName(Aws::String&& value) { m_componentNameHasBeenSet = true; m_componentName = std::move(value); } /** *

The name of a component that you want to get the detailed data for.

*/ inline void SetComponentName(const char* value) { m_componentNameHasBeenSet = true; m_componentName.assign(value); } /** *

The name of a component that you want to get the detailed data for.

*/ inline GetDeploymentRequest& WithComponentName(const Aws::String& value) { SetComponentName(value); return *this;} /** *

The name of a component that you want to get the detailed data for.

*/ inline GetDeploymentRequest& WithComponentName(Aws::String&& value) { SetComponentName(std::move(value)); return *this;} /** *

The name of a component that you want to get the detailed data for.

*/ inline GetDeploymentRequest& WithComponentName(const char* value) { SetComponentName(value); return *this;} /** *

The name of a environment that you want to get the detailed data for.

*/ inline const Aws::String& GetEnvironmentName() const{ return m_environmentName; } /** *

The name of a environment that you want to get the detailed data for.

*/ inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; } /** *

The name of a environment that you want to get the detailed data for.

*/ inline void SetEnvironmentName(const Aws::String& value) { m_environmentNameHasBeenSet = true; m_environmentName = value; } /** *

The name of a environment that you want to get the detailed data for.

*/ inline void SetEnvironmentName(Aws::String&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::move(value); } /** *

The name of a environment that you want to get the detailed data for.

*/ inline void SetEnvironmentName(const char* value) { m_environmentNameHasBeenSet = true; m_environmentName.assign(value); } /** *

The name of a environment that you want to get the detailed data for.

*/ inline GetDeploymentRequest& WithEnvironmentName(const Aws::String& value) { SetEnvironmentName(value); return *this;} /** *

The name of a environment that you want to get the detailed data for.

*/ inline GetDeploymentRequest& WithEnvironmentName(Aws::String&& value) { SetEnvironmentName(std::move(value)); return *this;} /** *

The name of a environment that you want to get the detailed data for.

*/ inline GetDeploymentRequest& WithEnvironmentName(const char* value) { SetEnvironmentName(value); return *this;} /** *

The ID of the deployment that you want to get the detailed data for.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The ID of the deployment that you want to get the detailed data for.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The ID of the deployment that you want to get the detailed data for.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The ID of the deployment that you want to get the detailed data for.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The ID of the deployment that you want to get the detailed data for.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The ID of the deployment that you want to get the detailed data for.

*/ inline GetDeploymentRequest& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The ID of the deployment that you want to get the detailed data for.

*/ inline GetDeploymentRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The ID of the deployment that you want to get the detailed data for.

*/ inline GetDeploymentRequest& WithId(const char* value) { SetId(value); return *this;} /** *

The name of the service instance associated with the given deployment ID. * serviceName must be specified to identify the service instance.

*/ inline const Aws::String& GetServiceInstanceName() const{ return m_serviceInstanceName; } /** *

The name of the service instance associated with the given deployment ID. * serviceName must be specified to identify the service instance.

*/ inline bool ServiceInstanceNameHasBeenSet() const { return m_serviceInstanceNameHasBeenSet; } /** *

The name of the service instance associated with the given deployment ID. * serviceName must be specified to identify the service instance.

*/ inline void SetServiceInstanceName(const Aws::String& value) { m_serviceInstanceNameHasBeenSet = true; m_serviceInstanceName = value; } /** *

The name of the service instance associated with the given deployment ID. * serviceName must be specified to identify the service instance.

*/ inline void SetServiceInstanceName(Aws::String&& value) { m_serviceInstanceNameHasBeenSet = true; m_serviceInstanceName = std::move(value); } /** *

The name of the service instance associated with the given deployment ID. * serviceName must be specified to identify the service instance.

*/ inline void SetServiceInstanceName(const char* value) { m_serviceInstanceNameHasBeenSet = true; m_serviceInstanceName.assign(value); } /** *

The name of the service instance associated with the given deployment ID. * serviceName must be specified to identify the service instance.

*/ inline GetDeploymentRequest& WithServiceInstanceName(const Aws::String& value) { SetServiceInstanceName(value); return *this;} /** *

The name of the service instance associated with the given deployment ID. * serviceName must be specified to identify the service instance.

*/ inline GetDeploymentRequest& WithServiceInstanceName(Aws::String&& value) { SetServiceInstanceName(std::move(value)); return *this;} /** *

The name of the service instance associated with the given deployment ID. * serviceName must be specified to identify the service instance.

*/ inline GetDeploymentRequest& WithServiceInstanceName(const char* value) { SetServiceInstanceName(value); return *this;} /** *

The name of the service associated with the given deployment ID.

*/ inline const Aws::String& GetServiceName() const{ return m_serviceName; } /** *

The name of the service associated with the given deployment ID.

*/ inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; } /** *

The name of the service associated with the given deployment ID.

*/ inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; } /** *

The name of the service associated with the given deployment ID.

*/ inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); } /** *

The name of the service associated with the given deployment ID.

*/ inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); } /** *

The name of the service associated with the given deployment ID.

*/ inline GetDeploymentRequest& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;} /** *

The name of the service associated with the given deployment ID.

*/ inline GetDeploymentRequest& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;} /** *

The name of the service associated with the given deployment ID.

*/ inline GetDeploymentRequest& WithServiceName(const char* value) { SetServiceName(value); return *this;} private: Aws::String m_componentName; bool m_componentNameHasBeenSet = false; Aws::String m_environmentName; bool m_environmentNameHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_serviceInstanceName; bool m_serviceInstanceNameHasBeenSet = false; Aws::String m_serviceName; bool m_serviceNameHasBeenSet = false; }; } // namespace Model } // namespace Proton } // namespace Aws