/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SageMaker { namespace Model { /** *

Details about the metrics source.

See Also:

AWS * API Reference

*/ class MetricsSource { public: AWS_SAGEMAKER_API MetricsSource(); AWS_SAGEMAKER_API MetricsSource(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API MetricsSource& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The metric source content type.

*/ inline const Aws::String& GetContentType() const{ return m_contentType; } /** *

The metric source content type.

*/ inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; } /** *

The metric source content type.

*/ inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; } /** *

The metric source content type.

*/ inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); } /** *

The metric source content type.

*/ inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); } /** *

The metric source content type.

*/ inline MetricsSource& WithContentType(const Aws::String& value) { SetContentType(value); return *this;} /** *

The metric source content type.

*/ inline MetricsSource& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;} /** *

The metric source content type.

*/ inline MetricsSource& WithContentType(const char* value) { SetContentType(value); return *this;} /** *

The hash key used for the metrics source.

*/ inline const Aws::String& GetContentDigest() const{ return m_contentDigest; } /** *

The hash key used for the metrics source.

*/ inline bool ContentDigestHasBeenSet() const { return m_contentDigestHasBeenSet; } /** *

The hash key used for the metrics source.

*/ inline void SetContentDigest(const Aws::String& value) { m_contentDigestHasBeenSet = true; m_contentDigest = value; } /** *

The hash key used for the metrics source.

*/ inline void SetContentDigest(Aws::String&& value) { m_contentDigestHasBeenSet = true; m_contentDigest = std::move(value); } /** *

The hash key used for the metrics source.

*/ inline void SetContentDigest(const char* value) { m_contentDigestHasBeenSet = true; m_contentDigest.assign(value); } /** *

The hash key used for the metrics source.

*/ inline MetricsSource& WithContentDigest(const Aws::String& value) { SetContentDigest(value); return *this;} /** *

The hash key used for the metrics source.

*/ inline MetricsSource& WithContentDigest(Aws::String&& value) { SetContentDigest(std::move(value)); return *this;} /** *

The hash key used for the metrics source.

*/ inline MetricsSource& WithContentDigest(const char* value) { SetContentDigest(value); return *this;} /** *

The S3 URI for the metrics source.

*/ inline const Aws::String& GetS3Uri() const{ return m_s3Uri; } /** *

The S3 URI for the metrics source.

*/ inline bool S3UriHasBeenSet() const { return m_s3UriHasBeenSet; } /** *

The S3 URI for the metrics source.

*/ inline void SetS3Uri(const Aws::String& value) { m_s3UriHasBeenSet = true; m_s3Uri = value; } /** *

The S3 URI for the metrics source.

*/ inline void SetS3Uri(Aws::String&& value) { m_s3UriHasBeenSet = true; m_s3Uri = std::move(value); } /** *

The S3 URI for the metrics source.

*/ inline void SetS3Uri(const char* value) { m_s3UriHasBeenSet = true; m_s3Uri.assign(value); } /** *

The S3 URI for the metrics source.

*/ inline MetricsSource& WithS3Uri(const Aws::String& value) { SetS3Uri(value); return *this;} /** *

The S3 URI for the metrics source.

*/ inline MetricsSource& WithS3Uri(Aws::String&& value) { SetS3Uri(std::move(value)); return *this;} /** *

The S3 URI for the metrics source.

*/ inline MetricsSource& WithS3Uri(const char* value) { SetS3Uri(value); return *this;} private: Aws::String m_contentType; bool m_contentTypeHasBeenSet = false; Aws::String m_contentDigest; bool m_contentDigestHasBeenSet = false; Aws::String m_s3Uri; bool m_s3UriHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws