/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace signer { namespace Model { /** */ class PutSigningProfileRequest : public SignerRequest { public: AWS_SIGNER_API PutSigningProfileRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "PutSigningProfile"; } AWS_SIGNER_API Aws::String SerializePayload() const override; /** *

The name of the signing profile to be created.

*/ inline const Aws::String& GetProfileName() const{ return m_profileName; } /** *

The name of the signing profile to be created.

*/ inline bool ProfileNameHasBeenSet() const { return m_profileNameHasBeenSet; } /** *

The name of the signing profile to be created.

*/ inline void SetProfileName(const Aws::String& value) { m_profileNameHasBeenSet = true; m_profileName = value; } /** *

The name of the signing profile to be created.

*/ inline void SetProfileName(Aws::String&& value) { m_profileNameHasBeenSet = true; m_profileName = std::move(value); } /** *

The name of the signing profile to be created.

*/ inline void SetProfileName(const char* value) { m_profileNameHasBeenSet = true; m_profileName.assign(value); } /** *

The name of the signing profile to be created.

*/ inline PutSigningProfileRequest& WithProfileName(const Aws::String& value) { SetProfileName(value); return *this;} /** *

The name of the signing profile to be created.

*/ inline PutSigningProfileRequest& WithProfileName(Aws::String&& value) { SetProfileName(std::move(value)); return *this;} /** *

The name of the signing profile to be created.

*/ inline PutSigningProfileRequest& WithProfileName(const char* value) { SetProfileName(value); return *this;} /** *

The AWS Certificate Manager certificate that will be used to sign code with * the new signing profile.

*/ inline const SigningMaterial& GetSigningMaterial() const{ return m_signingMaterial; } /** *

The AWS Certificate Manager certificate that will be used to sign code with * the new signing profile.

*/ inline bool SigningMaterialHasBeenSet() const { return m_signingMaterialHasBeenSet; } /** *

The AWS Certificate Manager certificate that will be used to sign code with * the new signing profile.

*/ inline void SetSigningMaterial(const SigningMaterial& value) { m_signingMaterialHasBeenSet = true; m_signingMaterial = value; } /** *

The AWS Certificate Manager certificate that will be used to sign code with * the new signing profile.

*/ inline void SetSigningMaterial(SigningMaterial&& value) { m_signingMaterialHasBeenSet = true; m_signingMaterial = std::move(value); } /** *

The AWS Certificate Manager certificate that will be used to sign code with * the new signing profile.

*/ inline PutSigningProfileRequest& WithSigningMaterial(const SigningMaterial& value) { SetSigningMaterial(value); return *this;} /** *

The AWS Certificate Manager certificate that will be used to sign code with * the new signing profile.

*/ inline PutSigningProfileRequest& WithSigningMaterial(SigningMaterial&& value) { SetSigningMaterial(std::move(value)); return *this;} /** *

The default validity period override for any signature generated using this * signing profile. If unspecified, the default is 135 months.

*/ inline const SignatureValidityPeriod& GetSignatureValidityPeriod() const{ return m_signatureValidityPeriod; } /** *

The default validity period override for any signature generated using this * signing profile. If unspecified, the default is 135 months.

*/ inline bool SignatureValidityPeriodHasBeenSet() const { return m_signatureValidityPeriodHasBeenSet; } /** *

The default validity period override for any signature generated using this * signing profile. If unspecified, the default is 135 months.

*/ inline void SetSignatureValidityPeriod(const SignatureValidityPeriod& value) { m_signatureValidityPeriodHasBeenSet = true; m_signatureValidityPeriod = value; } /** *

The default validity period override for any signature generated using this * signing profile. If unspecified, the default is 135 months.

*/ inline void SetSignatureValidityPeriod(SignatureValidityPeriod&& value) { m_signatureValidityPeriodHasBeenSet = true; m_signatureValidityPeriod = std::move(value); } /** *

The default validity period override for any signature generated using this * signing profile. If unspecified, the default is 135 months.

*/ inline PutSigningProfileRequest& WithSignatureValidityPeriod(const SignatureValidityPeriod& value) { SetSignatureValidityPeriod(value); return *this;} /** *

The default validity period override for any signature generated using this * signing profile. If unspecified, the default is 135 months.

*/ inline PutSigningProfileRequest& WithSignatureValidityPeriod(SignatureValidityPeriod&& value) { SetSignatureValidityPeriod(std::move(value)); return *this;} /** *

The ID of the signing platform to be created.

*/ inline const Aws::String& GetPlatformId() const{ return m_platformId; } /** *

The ID of the signing platform to be created.

*/ inline bool PlatformIdHasBeenSet() const { return m_platformIdHasBeenSet; } /** *

The ID of the signing platform to be created.

*/ inline void SetPlatformId(const Aws::String& value) { m_platformIdHasBeenSet = true; m_platformId = value; } /** *

The ID of the signing platform to be created.

*/ inline void SetPlatformId(Aws::String&& value) { m_platformIdHasBeenSet = true; m_platformId = std::move(value); } /** *

The ID of the signing platform to be created.

*/ inline void SetPlatformId(const char* value) { m_platformIdHasBeenSet = true; m_platformId.assign(value); } /** *

The ID of the signing platform to be created.

*/ inline PutSigningProfileRequest& WithPlatformId(const Aws::String& value) { SetPlatformId(value); return *this;} /** *

The ID of the signing platform to be created.

*/ inline PutSigningProfileRequest& WithPlatformId(Aws::String&& value) { SetPlatformId(std::move(value)); return *this;} /** *

The ID of the signing platform to be created.

*/ inline PutSigningProfileRequest& WithPlatformId(const char* value) { SetPlatformId(value); return *this;} /** *

A subfield of platform. This specifies any different * configuration options that you want to apply to the chosen platform (such as a * different hash-algorithm or signing-algorithm).

*/ inline const SigningPlatformOverrides& GetOverrides() const{ return m_overrides; } /** *

A subfield of platform. This specifies any different * configuration options that you want to apply to the chosen platform (such as a * different hash-algorithm or signing-algorithm).

*/ inline bool OverridesHasBeenSet() const { return m_overridesHasBeenSet; } /** *

A subfield of platform. This specifies any different * configuration options that you want to apply to the chosen platform (such as a * different hash-algorithm or signing-algorithm).

*/ inline void SetOverrides(const SigningPlatformOverrides& value) { m_overridesHasBeenSet = true; m_overrides = value; } /** *

A subfield of platform. This specifies any different * configuration options that you want to apply to the chosen platform (such as a * different hash-algorithm or signing-algorithm).

*/ inline void SetOverrides(SigningPlatformOverrides&& value) { m_overridesHasBeenSet = true; m_overrides = std::move(value); } /** *

A subfield of platform. This specifies any different * configuration options that you want to apply to the chosen platform (such as a * different hash-algorithm or signing-algorithm).

*/ inline PutSigningProfileRequest& WithOverrides(const SigningPlatformOverrides& value) { SetOverrides(value); return *this;} /** *

A subfield of platform. This specifies any different * configuration options that you want to apply to the chosen platform (such as a * different hash-algorithm or signing-algorithm).

*/ inline PutSigningProfileRequest& WithOverrides(SigningPlatformOverrides&& value) { SetOverrides(std::move(value)); return *this;} /** *

Map of key-value pairs for signing. These can include any information that * you want to use during signing.

*/ inline const Aws::Map& GetSigningParameters() const{ return m_signingParameters; } /** *

Map of key-value pairs for signing. These can include any information that * you want to use during signing.

*/ inline bool SigningParametersHasBeenSet() const { return m_signingParametersHasBeenSet; } /** *

Map of key-value pairs for signing. These can include any information that * you want to use during signing.

*/ inline void SetSigningParameters(const Aws::Map& value) { m_signingParametersHasBeenSet = true; m_signingParameters = value; } /** *

Map of key-value pairs for signing. These can include any information that * you want to use during signing.

*/ inline void SetSigningParameters(Aws::Map&& value) { m_signingParametersHasBeenSet = true; m_signingParameters = std::move(value); } /** *

Map of key-value pairs for signing. These can include any information that * you want to use during signing.

*/ inline PutSigningProfileRequest& WithSigningParameters(const Aws::Map& value) { SetSigningParameters(value); return *this;} /** *

Map of key-value pairs for signing. These can include any information that * you want to use during signing.

*/ inline PutSigningProfileRequest& WithSigningParameters(Aws::Map&& value) { SetSigningParameters(std::move(value)); return *this;} /** *

Map of key-value pairs for signing. These can include any information that * you want to use during signing.

*/ inline PutSigningProfileRequest& AddSigningParameters(const Aws::String& key, const Aws::String& value) { m_signingParametersHasBeenSet = true; m_signingParameters.emplace(key, value); return *this; } /** *

Map of key-value pairs for signing. These can include any information that * you want to use during signing.

*/ inline PutSigningProfileRequest& AddSigningParameters(Aws::String&& key, const Aws::String& value) { m_signingParametersHasBeenSet = true; m_signingParameters.emplace(std::move(key), value); return *this; } /** *

Map of key-value pairs for signing. These can include any information that * you want to use during signing.

*/ inline PutSigningProfileRequest& AddSigningParameters(const Aws::String& key, Aws::String&& value) { m_signingParametersHasBeenSet = true; m_signingParameters.emplace(key, std::move(value)); return *this; } /** *

Map of key-value pairs for signing. These can include any information that * you want to use during signing.

*/ inline PutSigningProfileRequest& AddSigningParameters(Aws::String&& key, Aws::String&& value) { m_signingParametersHasBeenSet = true; m_signingParameters.emplace(std::move(key), std::move(value)); return *this; } /** *

Map of key-value pairs for signing. These can include any information that * you want to use during signing.

*/ inline PutSigningProfileRequest& AddSigningParameters(const char* key, Aws::String&& value) { m_signingParametersHasBeenSet = true; m_signingParameters.emplace(key, std::move(value)); return *this; } /** *

Map of key-value pairs for signing. These can include any information that * you want to use during signing.

*/ inline PutSigningProfileRequest& AddSigningParameters(Aws::String&& key, const char* value) { m_signingParametersHasBeenSet = true; m_signingParameters.emplace(std::move(key), value); return *this; } /** *

Map of key-value pairs for signing. These can include any information that * you want to use during signing.

*/ inline PutSigningProfileRequest& AddSigningParameters(const char* key, const char* value) { m_signingParametersHasBeenSet = true; m_signingParameters.emplace(key, value); return *this; } /** *

Tags to be associated with the signing profile that is being created.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

Tags to be associated with the signing profile that is being created.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Tags to be associated with the signing profile that is being created.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

Tags to be associated with the signing profile that is being created.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

Tags to be associated with the signing profile that is being created.

*/ inline PutSigningProfileRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

Tags to be associated with the signing profile that is being created.

*/ inline PutSigningProfileRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

Tags to be associated with the signing profile that is being created.

*/ inline PutSigningProfileRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

Tags to be associated with the signing profile that is being created.

*/ inline PutSigningProfileRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

Tags to be associated with the signing profile that is being created.

*/ inline PutSigningProfileRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

Tags to be associated with the signing profile that is being created.

*/ inline PutSigningProfileRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

Tags to be associated with the signing profile that is being created.

*/ inline PutSigningProfileRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

Tags to be associated with the signing profile that is being created.

*/ inline PutSigningProfileRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

Tags to be associated with the signing profile that is being created.

*/ inline PutSigningProfileRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_profileName; bool m_profileNameHasBeenSet = false; SigningMaterial m_signingMaterial; bool m_signingMaterialHasBeenSet = false; SignatureValidityPeriod m_signatureValidityPeriod; bool m_signatureValidityPeriodHasBeenSet = false; Aws::String m_platformId; bool m_platformIdHasBeenSet = false; SigningPlatformOverrides m_overrides; bool m_overridesHasBeenSet = false; Aws::Map m_signingParameters; bool m_signingParametersHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace signer } // namespace Aws