Class CfnServerCertificateMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServerCertificateMixinProps>
- Enclosing interface:
CfnServerCertificateMixinProps
CfnServerCertificateMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.certificateBody(String certificateBody) Sets the value ofCfnServerCertificateMixinProps.getCertificateBody()certificateChain(String certificateChain) Sets the value ofCfnServerCertificateMixinProps.getCertificateChain()Sets the value ofCfnServerCertificateMixinProps.getPath()privateKey(String privateKey) Sets the value ofCfnServerCertificateMixinProps.getPrivateKey()serverCertificateName(String serverCertificateName) Sets the value ofCfnServerCertificateMixinProps.getServerCertificateName()Sets the value ofCfnServerCertificateMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
certificateBody
@Stability(Stable) public CfnServerCertificateMixinProps.Builder certificateBody(String certificateBody) Sets the value ofCfnServerCertificateMixinProps.getCertificateBody()- Parameters:
certificateBody- The contents of the public key certificate.- Returns:
this
-
certificateChain
@Stability(Stable) public CfnServerCertificateMixinProps.Builder certificateChain(String certificateChain) Sets the value ofCfnServerCertificateMixinProps.getCertificateChain()- Parameters:
certificateChain- The contents of the public key certificate chain.- Returns:
this
-
path
Sets the value ofCfnServerCertificateMixinProps.getPath()- Parameters:
path- The path for the server certificate. For more information about paths, see IAM identifiers in the IAM User Guide .This parameter is optional. If it is not included, it defaults to a slash (/). This parameter allows (through its regex pattern ) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any ASCII character from the ! (
!) through the DEL character (), including most punctuation characters, digits, and upper and lowercased letters.If you are uploading a server certificate specifically for use with Amazon CloudFront distributions, you must specify a path using the
pathparameter. The path must begin with/cloudfrontand must include a trailing slash (for example,/cloudfront/test/).- Returns:
this
-
privateKey
Sets the value ofCfnServerCertificateMixinProps.getPrivateKey()- Parameters:
privateKey- The contents of the private key in PEM-encoded format. The regex pattern used to validate this parameter is a string of characters consisting of the following:- Any printable ASCII character ranging from the space character (
) through the end of the ASCII character range - The printable characters in the Basic Latin and Latin-1 Supplement character set (through
ΓΏ) - The special characters tab (
), line feed (), and carriage return ()
- Any printable ASCII character ranging from the space character (
- Returns:
this
-
serverCertificateName
@Stability(Stable) public CfnServerCertificateMixinProps.Builder serverCertificateName(String serverCertificateName) Sets the value ofCfnServerCertificateMixinProps.getServerCertificateName()- Parameters:
serverCertificateName- The name for the server certificate. Do not include the path in this value. The name of the certificate cannot contain any spaces.This parameter allows (through its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
- Returns:
this
-
tags
Sets the value ofCfnServerCertificateMixinProps.getTags()- Parameters:
tags- A list of tags that are attached to the server certificate. For more information about tagging, see Tagging IAM resources in the IAM User Guide .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnServerCertificateMixinProps>- Returns:
- a new instance of
CfnServerCertificateMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-