/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SagemakerEdgeManager { namespace Model { /** *

Information about the checksum of a model deployed on a device.

See * Also:

AWS * API Reference

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

The type of the checksum.

*/ inline const ChecksumType& GetType() const{ return m_type; } /** *

The type of the checksum.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of the checksum.

*/ inline void SetType(const ChecksumType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of the checksum.

*/ inline void SetType(ChecksumType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of the checksum.

*/ inline Checksum& WithType(const ChecksumType& value) { SetType(value); return *this;} /** *

The type of the checksum.

*/ inline Checksum& WithType(ChecksumType&& value) { SetType(std::move(value)); return *this;} /** *

The checksum of the model.

*/ inline const Aws::String& GetSum() const{ return m_sum; } /** *

The checksum of the model.

*/ inline bool SumHasBeenSet() const { return m_sumHasBeenSet; } /** *

The checksum of the model.

*/ inline void SetSum(const Aws::String& value) { m_sumHasBeenSet = true; m_sum = value; } /** *

The checksum of the model.

*/ inline void SetSum(Aws::String&& value) { m_sumHasBeenSet = true; m_sum = std::move(value); } /** *

The checksum of the model.

*/ inline void SetSum(const char* value) { m_sumHasBeenSet = true; m_sum.assign(value); } /** *

The checksum of the model.

*/ inline Checksum& WithSum(const Aws::String& value) { SetSum(value); return *this;} /** *

The checksum of the model.

*/ inline Checksum& WithSum(Aws::String&& value) { SetSum(std::move(value)); return *this;} /** *

The checksum of the model.

*/ inline Checksum& WithSum(const char* value) { SetSum(value); return *this;} private: ChecksumType m_type; bool m_typeHasBeenSet = false; Aws::String m_sum; bool m_sumHasBeenSet = false; }; } // namespace Model } // namespace SagemakerEdgeManager } // namespace Aws