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

The name of the model card to export.

*/ inline const Aws::String& GetModelCardName() const{ return m_modelCardName; } /** *

The name of the model card to export.

*/ inline bool ModelCardNameHasBeenSet() const { return m_modelCardNameHasBeenSet; } /** *

The name of the model card to export.

*/ inline void SetModelCardName(const Aws::String& value) { m_modelCardNameHasBeenSet = true; m_modelCardName = value; } /** *

The name of the model card to export.

*/ inline void SetModelCardName(Aws::String&& value) { m_modelCardNameHasBeenSet = true; m_modelCardName = std::move(value); } /** *

The name of the model card to export.

*/ inline void SetModelCardName(const char* value) { m_modelCardNameHasBeenSet = true; m_modelCardName.assign(value); } /** *

The name of the model card to export.

*/ inline CreateModelCardExportJobRequest& WithModelCardName(const Aws::String& value) { SetModelCardName(value); return *this;} /** *

The name of the model card to export.

*/ inline CreateModelCardExportJobRequest& WithModelCardName(Aws::String&& value) { SetModelCardName(std::move(value)); return *this;} /** *

The name of the model card to export.

*/ inline CreateModelCardExportJobRequest& WithModelCardName(const char* value) { SetModelCardName(value); return *this;} /** *

The version of the model card to export. If a version is not provided, then * the latest version of the model card is exported.

*/ inline int GetModelCardVersion() const{ return m_modelCardVersion; } /** *

The version of the model card to export. If a version is not provided, then * the latest version of the model card is exported.

*/ inline bool ModelCardVersionHasBeenSet() const { return m_modelCardVersionHasBeenSet; } /** *

The version of the model card to export. If a version is not provided, then * the latest version of the model card is exported.

*/ inline void SetModelCardVersion(int value) { m_modelCardVersionHasBeenSet = true; m_modelCardVersion = value; } /** *

The version of the model card to export. If a version is not provided, then * the latest version of the model card is exported.

*/ inline CreateModelCardExportJobRequest& WithModelCardVersion(int value) { SetModelCardVersion(value); return *this;} /** *

The name of the model card export job.

*/ inline const Aws::String& GetModelCardExportJobName() const{ return m_modelCardExportJobName; } /** *

The name of the model card export job.

*/ inline bool ModelCardExportJobNameHasBeenSet() const { return m_modelCardExportJobNameHasBeenSet; } /** *

The name of the model card export job.

*/ inline void SetModelCardExportJobName(const Aws::String& value) { m_modelCardExportJobNameHasBeenSet = true; m_modelCardExportJobName = value; } /** *

The name of the model card export job.

*/ inline void SetModelCardExportJobName(Aws::String&& value) { m_modelCardExportJobNameHasBeenSet = true; m_modelCardExportJobName = std::move(value); } /** *

The name of the model card export job.

*/ inline void SetModelCardExportJobName(const char* value) { m_modelCardExportJobNameHasBeenSet = true; m_modelCardExportJobName.assign(value); } /** *

The name of the model card export job.

*/ inline CreateModelCardExportJobRequest& WithModelCardExportJobName(const Aws::String& value) { SetModelCardExportJobName(value); return *this;} /** *

The name of the model card export job.

*/ inline CreateModelCardExportJobRequest& WithModelCardExportJobName(Aws::String&& value) { SetModelCardExportJobName(std::move(value)); return *this;} /** *

The name of the model card export job.

*/ inline CreateModelCardExportJobRequest& WithModelCardExportJobName(const char* value) { SetModelCardExportJobName(value); return *this;} /** *

The model card output configuration that specifies the Amazon S3 path for * exporting.

*/ inline const ModelCardExportOutputConfig& GetOutputConfig() const{ return m_outputConfig; } /** *

The model card output configuration that specifies the Amazon S3 path for * exporting.

*/ inline bool OutputConfigHasBeenSet() const { return m_outputConfigHasBeenSet; } /** *

The model card output configuration that specifies the Amazon S3 path for * exporting.

*/ inline void SetOutputConfig(const ModelCardExportOutputConfig& value) { m_outputConfigHasBeenSet = true; m_outputConfig = value; } /** *

The model card output configuration that specifies the Amazon S3 path for * exporting.

*/ inline void SetOutputConfig(ModelCardExportOutputConfig&& value) { m_outputConfigHasBeenSet = true; m_outputConfig = std::move(value); } /** *

The model card output configuration that specifies the Amazon S3 path for * exporting.

*/ inline CreateModelCardExportJobRequest& WithOutputConfig(const ModelCardExportOutputConfig& value) { SetOutputConfig(value); return *this;} /** *

The model card output configuration that specifies the Amazon S3 path for * exporting.

*/ inline CreateModelCardExportJobRequest& WithOutputConfig(ModelCardExportOutputConfig&& value) { SetOutputConfig(std::move(value)); return *this;} private: Aws::String m_modelCardName; bool m_modelCardNameHasBeenSet = false; int m_modelCardVersion; bool m_modelCardVersionHasBeenSet = false; Aws::String m_modelCardExportJobName; bool m_modelCardExportJobNameHasBeenSet = false; ModelCardExportOutputConfig m_outputConfig; bool m_outputConfigHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws