/** * 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 signer { namespace Model { /** *

The hash algorithms that are available to a code signing job.

See * Also:

AWS * API Reference

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

The set of accepted hash algorithms allowed in a code signing job.

*/ inline const Aws::Vector& GetAllowedValues() const{ return m_allowedValues; } /** *

The set of accepted hash algorithms allowed in a code signing job.

*/ inline bool AllowedValuesHasBeenSet() const { return m_allowedValuesHasBeenSet; } /** *

The set of accepted hash algorithms allowed in a code signing job.

*/ inline void SetAllowedValues(const Aws::Vector& value) { m_allowedValuesHasBeenSet = true; m_allowedValues = value; } /** *

The set of accepted hash algorithms allowed in a code signing job.

*/ inline void SetAllowedValues(Aws::Vector&& value) { m_allowedValuesHasBeenSet = true; m_allowedValues = std::move(value); } /** *

The set of accepted hash algorithms allowed in a code signing job.

*/ inline HashAlgorithmOptions& WithAllowedValues(const Aws::Vector& value) { SetAllowedValues(value); return *this;} /** *

The set of accepted hash algorithms allowed in a code signing job.

*/ inline HashAlgorithmOptions& WithAllowedValues(Aws::Vector&& value) { SetAllowedValues(std::move(value)); return *this;} /** *

The set of accepted hash algorithms allowed in a code signing job.

*/ inline HashAlgorithmOptions& AddAllowedValues(const HashAlgorithm& value) { m_allowedValuesHasBeenSet = true; m_allowedValues.push_back(value); return *this; } /** *

The set of accepted hash algorithms allowed in a code signing job.

*/ inline HashAlgorithmOptions& AddAllowedValues(HashAlgorithm&& value) { m_allowedValuesHasBeenSet = true; m_allowedValues.push_back(std::move(value)); return *this; } /** *

The default hash algorithm that is used in a code signing job.

*/ inline const HashAlgorithm& GetDefaultValue() const{ return m_defaultValue; } /** *

The default hash algorithm that is used in a code signing job.

*/ inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; } /** *

The default hash algorithm that is used in a code signing job.

*/ inline void SetDefaultValue(const HashAlgorithm& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; } /** *

The default hash algorithm that is used in a code signing job.

*/ inline void SetDefaultValue(HashAlgorithm&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::move(value); } /** *

The default hash algorithm that is used in a code signing job.

*/ inline HashAlgorithmOptions& WithDefaultValue(const HashAlgorithm& value) { SetDefaultValue(value); return *this;} /** *

The default hash algorithm that is used in a code signing job.

*/ inline HashAlgorithmOptions& WithDefaultValue(HashAlgorithm&& value) { SetDefaultValue(std::move(value)); return *this;} private: Aws::Vector m_allowedValues; bool m_allowedValuesHasBeenSet = false; HashAlgorithm m_defaultValue; bool m_defaultValueHasBeenSet = false; }; } // namespace Model } // namespace signer } // namespace Aws