/** * 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 SageMaker { namespace Model { /** */ class DescribeImageVersionRequest : public SageMakerRequest { public: AWS_SAGEMAKER_API DescribeImageVersionRequest(); // 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 "DescribeImageVersion"; } AWS_SAGEMAKER_API Aws::String SerializePayload() const override; AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the image.

*/ inline const Aws::String& GetImageName() const{ return m_imageName; } /** *

The name of the image.

*/ inline bool ImageNameHasBeenSet() const { return m_imageNameHasBeenSet; } /** *

The name of the image.

*/ inline void SetImageName(const Aws::String& value) { m_imageNameHasBeenSet = true; m_imageName = value; } /** *

The name of the image.

*/ inline void SetImageName(Aws::String&& value) { m_imageNameHasBeenSet = true; m_imageName = std::move(value); } /** *

The name of the image.

*/ inline void SetImageName(const char* value) { m_imageNameHasBeenSet = true; m_imageName.assign(value); } /** *

The name of the image.

*/ inline DescribeImageVersionRequest& WithImageName(const Aws::String& value) { SetImageName(value); return *this;} /** *

The name of the image.

*/ inline DescribeImageVersionRequest& WithImageName(Aws::String&& value) { SetImageName(std::move(value)); return *this;} /** *

The name of the image.

*/ inline DescribeImageVersionRequest& WithImageName(const char* value) { SetImageName(value); return *this;} /** *

The version of the image. If not specified, the latest version is * described.

*/ inline int GetVersion() const{ return m_version; } /** *

The version of the image. If not specified, the latest version is * described.

*/ inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; } /** *

The version of the image. If not specified, the latest version is * described.

*/ inline void SetVersion(int value) { m_versionHasBeenSet = true; m_version = value; } /** *

The version of the image. If not specified, the latest version is * described.

*/ inline DescribeImageVersionRequest& WithVersion(int value) { SetVersion(value); return *this;} /** *

The alias of the image version.

*/ inline const Aws::String& GetAlias() const{ return m_alias; } /** *

The alias of the image version.

*/ inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; } /** *

The alias of the image version.

*/ inline void SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = value; } /** *

The alias of the image version.

*/ inline void SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = std::move(value); } /** *

The alias of the image version.

*/ inline void SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.assign(value); } /** *

The alias of the image version.

*/ inline DescribeImageVersionRequest& WithAlias(const Aws::String& value) { SetAlias(value); return *this;} /** *

The alias of the image version.

*/ inline DescribeImageVersionRequest& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;} /** *

The alias of the image version.

*/ inline DescribeImageVersionRequest& WithAlias(const char* value) { SetAlias(value); return *this;} private: Aws::String m_imageName; bool m_imageNameHasBeenSet = false; int m_version; bool m_versionHasBeenSet = false; Aws::String m_alias; bool m_aliasHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws