/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.signer.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class PutSigningProfileRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name of the signing profile to be created. *
*/ private String profileName; /** ** The AWS Certificate Manager certificate that will be used to sign code with the new signing profile. *
*/ private SigningMaterial signingMaterial; /** ** The default validity period override for any signature generated using this signing profile. If unspecified, the * default is 135 months. *
*/ private SignatureValidityPeriod signatureValidityPeriod; /** ** The ID of the signing platform to be created. *
*/ private String platformId; /** *
* 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).
*
* Map of key-value pairs for signing. These can include any information that you want to use during signing. *
*/ private java.util.Map* Tags to be associated with the signing profile that is being created. *
*/ private java.util.Map* The name of the signing profile to be created. *
* * @param profileName * The name of the signing profile to be created. */ public void setProfileName(String profileName) { this.profileName = profileName; } /** ** The name of the signing profile to be created. *
* * @return The name of the signing profile to be created. */ public String getProfileName() { return this.profileName; } /** ** The name of the signing profile to be created. *
* * @param profileName * The name of the signing profile to be created. * @return Returns a reference to this object so that method calls can be chained together. */ public PutSigningProfileRequest withProfileName(String profileName) { setProfileName(profileName); return this; } /** ** The AWS Certificate Manager certificate that will be used to sign code with the new signing profile. *
* * @param signingMaterial * The AWS Certificate Manager certificate that will be used to sign code with the new signing profile. */ public void setSigningMaterial(SigningMaterial signingMaterial) { this.signingMaterial = signingMaterial; } /** ** The AWS Certificate Manager certificate that will be used to sign code with the new signing profile. *
* * @return The AWS Certificate Manager certificate that will be used to sign code with the new signing profile. */ public SigningMaterial getSigningMaterial() { return this.signingMaterial; } /** ** The AWS Certificate Manager certificate that will be used to sign code with the new signing profile. *
* * @param signingMaterial * The AWS Certificate Manager certificate that will be used to sign code with the new signing profile. * @return Returns a reference to this object so that method calls can be chained together. */ public PutSigningProfileRequest withSigningMaterial(SigningMaterial signingMaterial) { setSigningMaterial(signingMaterial); return this; } /** ** The default validity period override for any signature generated using this signing profile. If unspecified, the * default is 135 months. *
* * @param signatureValidityPeriod * The default validity period override for any signature generated using this signing profile. If * unspecified, the default is 135 months. */ public void setSignatureValidityPeriod(SignatureValidityPeriod signatureValidityPeriod) { this.signatureValidityPeriod = signatureValidityPeriod; } /** ** The default validity period override for any signature generated using this signing profile. If unspecified, the * default is 135 months. *
* * @return The default validity period override for any signature generated using this signing profile. If * unspecified, the default is 135 months. */ public SignatureValidityPeriod getSignatureValidityPeriod() { return this.signatureValidityPeriod; } /** ** The default validity period override for any signature generated using this signing profile. If unspecified, the * default is 135 months. *
* * @param signatureValidityPeriod * The default validity period override for any signature generated using this signing profile. If * unspecified, the default is 135 months. * @return Returns a reference to this object so that method calls can be chained together. */ public PutSigningProfileRequest withSignatureValidityPeriod(SignatureValidityPeriod signatureValidityPeriod) { setSignatureValidityPeriod(signatureValidityPeriod); return this; } /** ** The ID of the signing platform to be created. *
* * @param platformId * The ID of the signing platform to be created. */ public void setPlatformId(String platformId) { this.platformId = platformId; } /** ** The ID of the signing platform to be created. *
* * @return The ID of the signing platform to be created. */ public String getPlatformId() { return this.platformId; } /** ** The ID of the signing platform to be created. *
* * @param platformId * The ID of the signing platform to be created. * @return Returns a reference to this object so that method calls can be chained together. */ public PutSigningProfileRequest withPlatformId(String platformId) { setPlatformId(platformId); 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).
*
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).
*/
public void setOverrides(SigningPlatformOverrides overrides) {
this.overrides = 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).
*
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).
*/
public SigningPlatformOverrides getOverrides() {
return this.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).
*
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).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PutSigningProfileRequest withOverrides(SigningPlatformOverrides overrides) {
setOverrides(overrides);
return this;
}
/**
* * Map of key-value pairs for signing. These can include any information that you want to use during signing. *
* * @return Map of key-value pairs for signing. These can include any information that you want to use during * signing. */ public java.util.Map* Map of key-value pairs for signing. These can include any information that you want to use during signing. *
* * @param signingParameters * Map of key-value pairs for signing. These can include any information that you want to use during signing. */ public void setSigningParameters(java.util.Map* Map of key-value pairs for signing. These can include any information that you want to use during signing. *
* * @param signingParameters * Map of key-value pairs for signing. These can include any information that you want to use during signing. * @return Returns a reference to this object so that method calls can be chained together. */ public PutSigningProfileRequest withSigningParameters(java.util.Map* Tags to be associated with the signing profile that is being created. *
* * @return Tags to be associated with the signing profile that is being created. */ public java.util.Map* Tags to be associated with the signing profile that is being created. *
* * @param tags * Tags to be associated with the signing profile that is being created. */ public void setTags(java.util.Map* Tags to be associated with the signing profile that is being created. *
* * @param tags * Tags to be associated with the signing profile that is being created. * @return Returns a reference to this object so that method calls can be chained together. */ public PutSigningProfileRequest withTags(java.util.Map