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

The stack ID.

*/ inline const Aws::String& GetStackId() const{ return m_stackId; } /** *

The stack ID.

*/ inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; } /** *

The stack ID.

*/ inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; } /** *

The stack ID.

*/ inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = std::move(value); } /** *

The stack ID.

*/ inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); } /** *

The stack ID.

*/ inline DescribeLayersRequest& WithStackId(const Aws::String& value) { SetStackId(value); return *this;} /** *

The stack ID.

*/ inline DescribeLayersRequest& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;} /** *

The stack ID.

*/ inline DescribeLayersRequest& WithStackId(const char* value) { SetStackId(value); return *this;} /** *

An array of layer IDs that specify the layers to be described. If you omit * this parameter, DescribeLayers returns a description of every layer * in the specified stack.

*/ inline const Aws::Vector& GetLayerIds() const{ return m_layerIds; } /** *

An array of layer IDs that specify the layers to be described. If you omit * this parameter, DescribeLayers returns a description of every layer * in the specified stack.

*/ inline bool LayerIdsHasBeenSet() const { return m_layerIdsHasBeenSet; } /** *

An array of layer IDs that specify the layers to be described. If you omit * this parameter, DescribeLayers returns a description of every layer * in the specified stack.

*/ inline void SetLayerIds(const Aws::Vector& value) { m_layerIdsHasBeenSet = true; m_layerIds = value; } /** *

An array of layer IDs that specify the layers to be described. If you omit * this parameter, DescribeLayers returns a description of every layer * in the specified stack.

*/ inline void SetLayerIds(Aws::Vector&& value) { m_layerIdsHasBeenSet = true; m_layerIds = std::move(value); } /** *

An array of layer IDs that specify the layers to be described. If you omit * this parameter, DescribeLayers returns a description of every layer * in the specified stack.

*/ inline DescribeLayersRequest& WithLayerIds(const Aws::Vector& value) { SetLayerIds(value); return *this;} /** *

An array of layer IDs that specify the layers to be described. If you omit * this parameter, DescribeLayers returns a description of every layer * in the specified stack.

*/ inline DescribeLayersRequest& WithLayerIds(Aws::Vector&& value) { SetLayerIds(std::move(value)); return *this;} /** *

An array of layer IDs that specify the layers to be described. If you omit * this parameter, DescribeLayers returns a description of every layer * in the specified stack.

*/ inline DescribeLayersRequest& AddLayerIds(const Aws::String& value) { m_layerIdsHasBeenSet = true; m_layerIds.push_back(value); return *this; } /** *

An array of layer IDs that specify the layers to be described. If you omit * this parameter, DescribeLayers returns a description of every layer * in the specified stack.

*/ inline DescribeLayersRequest& AddLayerIds(Aws::String&& value) { m_layerIdsHasBeenSet = true; m_layerIds.push_back(std::move(value)); return *this; } /** *

An array of layer IDs that specify the layers to be described. If you omit * this parameter, DescribeLayers returns a description of every layer * in the specified stack.

*/ inline DescribeLayersRequest& AddLayerIds(const char* value) { m_layerIdsHasBeenSet = true; m_layerIds.push_back(value); return *this; } private: Aws::String m_stackId; bool m_stackIdHasBeenSet = false; Aws::Vector m_layerIds; bool m_layerIdsHasBeenSet = false; }; } // namespace Model } // namespace OpsWorks } // namespace Aws