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

Any overrides that are applied to the signing configuration of a code signing * platform.

See Also:

AWS * API Reference

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

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

*/ inline const SigningConfigurationOverrides& GetSigningConfiguration() const{ return m_signingConfiguration; } /** *

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

*/ inline bool SigningConfigurationHasBeenSet() const { return m_signingConfigurationHasBeenSet; } /** *

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

*/ inline void SetSigningConfiguration(const SigningConfigurationOverrides& value) { m_signingConfigurationHasBeenSet = true; m_signingConfiguration = value; } /** *

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

*/ inline void SetSigningConfiguration(SigningConfigurationOverrides&& value) { m_signingConfigurationHasBeenSet = true; m_signingConfiguration = std::move(value); } /** *

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

*/ inline SigningPlatformOverrides& WithSigningConfiguration(const SigningConfigurationOverrides& value) { SetSigningConfiguration(value); return *this;} /** *

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

*/ inline SigningPlatformOverrides& WithSigningConfiguration(SigningConfigurationOverrides&& value) { SetSigningConfiguration(std::move(value)); return *this;} /** *

A signed image is a JSON object. When overriding the default signing platform * configuration, a customer can select either of two signing formats, * JSONEmbedded or JSONDetached. (A third format value, * JSON, is reserved for future use.) With JSONEmbedded, * the signing image has the payload embedded in it. With * JSONDetached, the payload is not be embedded in the signing * image.

*/ inline const ImageFormat& GetSigningImageFormat() const{ return m_signingImageFormat; } /** *

A signed image is a JSON object. When overriding the default signing platform * configuration, a customer can select either of two signing formats, * JSONEmbedded or JSONDetached. (A third format value, * JSON, is reserved for future use.) With JSONEmbedded, * the signing image has the payload embedded in it. With * JSONDetached, the payload is not be embedded in the signing * image.

*/ inline bool SigningImageFormatHasBeenSet() const { return m_signingImageFormatHasBeenSet; } /** *

A signed image is a JSON object. When overriding the default signing platform * configuration, a customer can select either of two signing formats, * JSONEmbedded or JSONDetached. (A third format value, * JSON, is reserved for future use.) With JSONEmbedded, * the signing image has the payload embedded in it. With * JSONDetached, the payload is not be embedded in the signing * image.

*/ inline void SetSigningImageFormat(const ImageFormat& value) { m_signingImageFormatHasBeenSet = true; m_signingImageFormat = value; } /** *

A signed image is a JSON object. When overriding the default signing platform * configuration, a customer can select either of two signing formats, * JSONEmbedded or JSONDetached. (A third format value, * JSON, is reserved for future use.) With JSONEmbedded, * the signing image has the payload embedded in it. With * JSONDetached, the payload is not be embedded in the signing * image.

*/ inline void SetSigningImageFormat(ImageFormat&& value) { m_signingImageFormatHasBeenSet = true; m_signingImageFormat = std::move(value); } /** *

A signed image is a JSON object. When overriding the default signing platform * configuration, a customer can select either of two signing formats, * JSONEmbedded or JSONDetached. (A third format value, * JSON, is reserved for future use.) With JSONEmbedded, * the signing image has the payload embedded in it. With * JSONDetached, the payload is not be embedded in the signing * image.

*/ inline SigningPlatformOverrides& WithSigningImageFormat(const ImageFormat& value) { SetSigningImageFormat(value); return *this;} /** *

A signed image is a JSON object. When overriding the default signing platform * configuration, a customer can select either of two signing formats, * JSONEmbedded or JSONDetached. (A third format value, * JSON, is reserved for future use.) With JSONEmbedded, * the signing image has the payload embedded in it. With * JSONDetached, the payload is not be embedded in the signing * image.

*/ inline SigningPlatformOverrides& WithSigningImageFormat(ImageFormat&& value) { SetSigningImageFormat(std::move(value)); return *this;} private: SigningConfigurationOverrides m_signingConfiguration; bool m_signingConfigurationHasBeenSet = false; ImageFormat m_signingImageFormat; bool m_signingImageFormatHasBeenSet = false; }; } // namespace Model } // namespace signer } // namespace Aws