/** * 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 encryption algorithm options that are available to a code signing * job.

See Also:

AWS * API Reference

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

The set of accepted encryption algorithms that are allowed in a code signing * job.

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

The set of accepted encryption algorithms that are allowed in a code signing * job.

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

The set of accepted encryption algorithms that are allowed in a code signing * job.

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

The set of accepted encryption algorithms that are allowed in a code signing * job.

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

The set of accepted encryption algorithms that are allowed in a code signing * job.

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

The set of accepted encryption algorithms that are allowed in a code signing * job.

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

The set of accepted encryption algorithms that are allowed in a code signing * job.

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

The set of accepted encryption algorithms that are allowed in a code signing * job.

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

The default encryption algorithm that is used by a code signing job.

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

The default encryption algorithm that is used by a code signing job.

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

The default encryption algorithm that is used by a code signing job.

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

The default encryption algorithm that is used by a code signing job.

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

The default encryption algorithm that is used by a code signing job.

*/ inline EncryptionAlgorithmOptions& WithDefaultValue(const EncryptionAlgorithm& value) { SetDefaultValue(value); return *this;} /** *

The default encryption algorithm that is used by a code signing job.

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