/** * 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 { /** *

A signing configuration that overrides the default encryption or hash * algorithm of a signing job.

See Also:

AWS * API Reference

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

A specified override of the default encryption algorithm that is used in a * code signing job.

*/ inline const EncryptionAlgorithm& GetEncryptionAlgorithm() const{ return m_encryptionAlgorithm; } /** *

A specified override of the default encryption algorithm that is used in a * code signing job.

*/ inline bool EncryptionAlgorithmHasBeenSet() const { return m_encryptionAlgorithmHasBeenSet; } /** *

A specified override of the default encryption algorithm that is used in a * code signing job.

*/ inline void SetEncryptionAlgorithm(const EncryptionAlgorithm& value) { m_encryptionAlgorithmHasBeenSet = true; m_encryptionAlgorithm = value; } /** *

A specified override of the default encryption algorithm that is used in a * code signing job.

*/ inline void SetEncryptionAlgorithm(EncryptionAlgorithm&& value) { m_encryptionAlgorithmHasBeenSet = true; m_encryptionAlgorithm = std::move(value); } /** *

A specified override of the default encryption algorithm that is used in a * code signing job.

*/ inline SigningConfigurationOverrides& WithEncryptionAlgorithm(const EncryptionAlgorithm& value) { SetEncryptionAlgorithm(value); return *this;} /** *

A specified override of the default encryption algorithm that is used in a * code signing job.

*/ inline SigningConfigurationOverrides& WithEncryptionAlgorithm(EncryptionAlgorithm&& value) { SetEncryptionAlgorithm(std::move(value)); return *this;} /** *

A specified override of the default hash algorithm that is used in a code * signing job.

*/ inline const HashAlgorithm& GetHashAlgorithm() const{ return m_hashAlgorithm; } /** *

A specified override of the default hash algorithm that is used in a code * signing job.

*/ inline bool HashAlgorithmHasBeenSet() const { return m_hashAlgorithmHasBeenSet; } /** *

A specified override of the default hash algorithm that is used in a code * signing job.

*/ inline void SetHashAlgorithm(const HashAlgorithm& value) { m_hashAlgorithmHasBeenSet = true; m_hashAlgorithm = value; } /** *

A specified override of the default hash algorithm that is used in a code * signing job.

*/ inline void SetHashAlgorithm(HashAlgorithm&& value) { m_hashAlgorithmHasBeenSet = true; m_hashAlgorithm = std::move(value); } /** *

A specified override of the default hash algorithm that is used in a code * signing job.

*/ inline SigningConfigurationOverrides& WithHashAlgorithm(const HashAlgorithm& value) { SetHashAlgorithm(value); return *this;} /** *

A specified override of the default hash algorithm that is used in a code * signing job.

*/ inline SigningConfigurationOverrides& WithHashAlgorithm(HashAlgorithm&& value) { SetHashAlgorithm(std::move(value)); return *this;} private: EncryptionAlgorithm m_encryptionAlgorithm; bool m_encryptionAlgorithmHasBeenSet = false; HashAlgorithm m_hashAlgorithm; bool m_hashAlgorithmHasBeenSet = false; }; } // namespace Model } // namespace signer } // namespace Aws