/** * 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 OpsWorks { namespace Model { /** */ class DetachElasticLoadBalancerRequest : public OpsWorksRequest { public: AWS_OPSWORKS_API DetachElasticLoadBalancerRequest(); // 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 "DetachElasticLoadBalancer"; } AWS_OPSWORKS_API Aws::String SerializePayload() const override; AWS_OPSWORKS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Elastic Load Balancing instance's name.

*/ inline const Aws::String& GetElasticLoadBalancerName() const{ return m_elasticLoadBalancerName; } /** *

The Elastic Load Balancing instance's name.

*/ inline bool ElasticLoadBalancerNameHasBeenSet() const { return m_elasticLoadBalancerNameHasBeenSet; } /** *

The Elastic Load Balancing instance's name.

*/ inline void SetElasticLoadBalancerName(const Aws::String& value) { m_elasticLoadBalancerNameHasBeenSet = true; m_elasticLoadBalancerName = value; } /** *

The Elastic Load Balancing instance's name.

*/ inline void SetElasticLoadBalancerName(Aws::String&& value) { m_elasticLoadBalancerNameHasBeenSet = true; m_elasticLoadBalancerName = std::move(value); } /** *

The Elastic Load Balancing instance's name.

*/ inline void SetElasticLoadBalancerName(const char* value) { m_elasticLoadBalancerNameHasBeenSet = true; m_elasticLoadBalancerName.assign(value); } /** *

The Elastic Load Balancing instance's name.

*/ inline DetachElasticLoadBalancerRequest& WithElasticLoadBalancerName(const Aws::String& value) { SetElasticLoadBalancerName(value); return *this;} /** *

The Elastic Load Balancing instance's name.

*/ inline DetachElasticLoadBalancerRequest& WithElasticLoadBalancerName(Aws::String&& value) { SetElasticLoadBalancerName(std::move(value)); return *this;} /** *

The Elastic Load Balancing instance's name.

*/ inline DetachElasticLoadBalancerRequest& WithElasticLoadBalancerName(const char* value) { SetElasticLoadBalancerName(value); return *this;} /** *

The ID of the layer that the Elastic Load Balancing instance is attached * to.

*/ inline const Aws::String& GetLayerId() const{ return m_layerId; } /** *

The ID of the layer that the Elastic Load Balancing instance is attached * to.

*/ inline bool LayerIdHasBeenSet() const { return m_layerIdHasBeenSet; } /** *

The ID of the layer that the Elastic Load Balancing instance is attached * to.

*/ inline void SetLayerId(const Aws::String& value) { m_layerIdHasBeenSet = true; m_layerId = value; } /** *

The ID of the layer that the Elastic Load Balancing instance is attached * to.

*/ inline void SetLayerId(Aws::String&& value) { m_layerIdHasBeenSet = true; m_layerId = std::move(value); } /** *

The ID of the layer that the Elastic Load Balancing instance is attached * to.

*/ inline void SetLayerId(const char* value) { m_layerIdHasBeenSet = true; m_layerId.assign(value); } /** *

The ID of the layer that the Elastic Load Balancing instance is attached * to.

*/ inline DetachElasticLoadBalancerRequest& WithLayerId(const Aws::String& value) { SetLayerId(value); return *this;} /** *

The ID of the layer that the Elastic Load Balancing instance is attached * to.

*/ inline DetachElasticLoadBalancerRequest& WithLayerId(Aws::String&& value) { SetLayerId(std::move(value)); return *this;} /** *

The ID of the layer that the Elastic Load Balancing instance is attached * to.

*/ inline DetachElasticLoadBalancerRequest& WithLayerId(const char* value) { SetLayerId(value); return *this;} private: Aws::String m_elasticLoadBalancerName; bool m_elasticLoadBalancerNameHasBeenSet = false; Aws::String m_layerId; bool m_layerIdHasBeenSet = false; }; } // namespace Model } // namespace OpsWorks } // namespace Aws