/** * 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 Lambda { namespace Model { /** */ class GetLayerVersionPolicyRequest : public LambdaRequest { public: AWS_LAMBDA_API GetLayerVersionPolicyRequest(); // 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 "GetLayerVersionPolicy"; } AWS_LAMBDA_API Aws::String SerializePayload() const override; /** *

The name or Amazon Resource Name (ARN) of the layer.

*/ inline const Aws::String& GetLayerName() const{ return m_layerName; } /** *

The name or Amazon Resource Name (ARN) of the layer.

*/ inline bool LayerNameHasBeenSet() const { return m_layerNameHasBeenSet; } /** *

The name or Amazon Resource Name (ARN) of the layer.

*/ inline void SetLayerName(const Aws::String& value) { m_layerNameHasBeenSet = true; m_layerName = value; } /** *

The name or Amazon Resource Name (ARN) of the layer.

*/ inline void SetLayerName(Aws::String&& value) { m_layerNameHasBeenSet = true; m_layerName = std::move(value); } /** *

The name or Amazon Resource Name (ARN) of the layer.

*/ inline void SetLayerName(const char* value) { m_layerNameHasBeenSet = true; m_layerName.assign(value); } /** *

The name or Amazon Resource Name (ARN) of the layer.

*/ inline GetLayerVersionPolicyRequest& WithLayerName(const Aws::String& value) { SetLayerName(value); return *this;} /** *

The name or Amazon Resource Name (ARN) of the layer.

*/ inline GetLayerVersionPolicyRequest& WithLayerName(Aws::String&& value) { SetLayerName(std::move(value)); return *this;} /** *

The name or Amazon Resource Name (ARN) of the layer.

*/ inline GetLayerVersionPolicyRequest& WithLayerName(const char* value) { SetLayerName(value); return *this;} /** *

The version number.

*/ inline long long GetVersionNumber() const{ return m_versionNumber; } /** *

The version number.

*/ inline bool VersionNumberHasBeenSet() const { return m_versionNumberHasBeenSet; } /** *

The version number.

*/ inline void SetVersionNumber(long long value) { m_versionNumberHasBeenSet = true; m_versionNumber = value; } /** *

The version number.

*/ inline GetLayerVersionPolicyRequest& WithVersionNumber(long long value) { SetVersionNumber(value); return *this;} private: Aws::String m_layerName; bool m_layerNameHasBeenSet = false; long long m_versionNumber; bool m_versionNumberHasBeenSet = false; }; } // namespace Model } // namespace Lambda } // namespace Aws