/** * 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 DescribeModelPackageRequest : public SageMakerRequest { public: AWS_SAGEMAKER_API DescribeModelPackageRequest(); // 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 "DescribeModelPackage"; } AWS_SAGEMAKER_API Aws::String SerializePayload() const override; AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name or Amazon Resource Name (ARN) of the model package to describe.

*

When you specify a name, the name must have 1 to 63 characters. Valid * characters are a-z, A-Z, 0-9, and - (hyphen).

*/ inline const Aws::String& GetModelPackageName() const{ return m_modelPackageName; } /** *

The name or Amazon Resource Name (ARN) of the model package to describe.

*

When you specify a name, the name must have 1 to 63 characters. Valid * characters are a-z, A-Z, 0-9, and - (hyphen).

*/ inline bool ModelPackageNameHasBeenSet() const { return m_modelPackageNameHasBeenSet; } /** *

The name or Amazon Resource Name (ARN) of the model package to describe.

*

When you specify a name, the name must have 1 to 63 characters. Valid * characters are a-z, A-Z, 0-9, and - (hyphen).

*/ inline void SetModelPackageName(const Aws::String& value) { m_modelPackageNameHasBeenSet = true; m_modelPackageName = value; } /** *

The name or Amazon Resource Name (ARN) of the model package to describe.

*

When you specify a name, the name must have 1 to 63 characters. Valid * characters are a-z, A-Z, 0-9, and - (hyphen).

*/ inline void SetModelPackageName(Aws::String&& value) { m_modelPackageNameHasBeenSet = true; m_modelPackageName = std::move(value); } /** *

The name or Amazon Resource Name (ARN) of the model package to describe.

*

When you specify a name, the name must have 1 to 63 characters. Valid * characters are a-z, A-Z, 0-9, and - (hyphen).

*/ inline void SetModelPackageName(const char* value) { m_modelPackageNameHasBeenSet = true; m_modelPackageName.assign(value); } /** *

The name or Amazon Resource Name (ARN) of the model package to describe.

*

When you specify a name, the name must have 1 to 63 characters. Valid * characters are a-z, A-Z, 0-9, and - (hyphen).

*/ inline DescribeModelPackageRequest& WithModelPackageName(const Aws::String& value) { SetModelPackageName(value); return *this;} /** *

The name or Amazon Resource Name (ARN) of the model package to describe.

*

When you specify a name, the name must have 1 to 63 characters. Valid * characters are a-z, A-Z, 0-9, and - (hyphen).

*/ inline DescribeModelPackageRequest& WithModelPackageName(Aws::String&& value) { SetModelPackageName(std::move(value)); return *this;} /** *

The name or Amazon Resource Name (ARN) of the model package to describe.

*

When you specify a name, the name must have 1 to 63 characters. Valid * characters are a-z, A-Z, 0-9, and - (hyphen).

*/ inline DescribeModelPackageRequest& WithModelPackageName(const char* value) { SetModelPackageName(value); return *this;} private: Aws::String m_modelPackageName; bool m_modelPackageNameHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws