Class CfnVirtualNode.ListenerTlsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.CfnVirtualNode.ListenerTlsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVirtualNode.ListenerTlsProperty>
- Enclosing interface:
CfnVirtualNode.ListenerTlsProperty
@Stability(Stable)
public static final class CfnVirtualNode.ListenerTlsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVirtualNode.ListenerTlsProperty>
A builder for
CfnVirtualNode.ListenerTlsProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.certificate
(IResolvable certificate) Sets the value ofCfnVirtualNode.ListenerTlsProperty.getCertificate()
certificate
(CfnVirtualNode.ListenerTlsCertificateProperty certificate) Sets the value ofCfnVirtualNode.ListenerTlsProperty.getCertificate()
Sets the value ofCfnVirtualNode.ListenerTlsProperty.getMode()
validation
(IResolvable validation) Sets the value ofCfnVirtualNode.ListenerTlsProperty.getValidation()
Sets the value ofCfnVirtualNode.ListenerTlsProperty.getValidation()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
certificate
@Stability(Stable) public CfnVirtualNode.ListenerTlsProperty.Builder certificate(IResolvable certificate) Sets the value ofCfnVirtualNode.ListenerTlsProperty.getCertificate()
- Parameters:
certificate
- A reference to an object that represents a listener's Transport Layer Security (TLS) certificate. This parameter is required.- Returns:
this
-
certificate
@Stability(Stable) public CfnVirtualNode.ListenerTlsProperty.Builder certificate(CfnVirtualNode.ListenerTlsCertificateProperty certificate) Sets the value ofCfnVirtualNode.ListenerTlsProperty.getCertificate()
- Parameters:
certificate
- A reference to an object that represents a listener's Transport Layer Security (TLS) certificate. This parameter is required.- Returns:
this
-
mode
Sets the value ofCfnVirtualNode.ListenerTlsProperty.getMode()
- Parameters:
mode
- Specify one of the following modes. This parameter is required.- ** STRICT – Listener only accepts connections with TLS enabled.
- ** PERMISSIVE – Listener accepts connections with or without TLS enabled.
- ** DISABLED – Listener only accepts connections without TLS.
- Returns:
this
-
validation
@Stability(Stable) public CfnVirtualNode.ListenerTlsProperty.Builder validation(IResolvable validation) Sets the value ofCfnVirtualNode.ListenerTlsProperty.getValidation()
- Parameters:
validation
- A reference to an object that represents a listener's Transport Layer Security (TLS) validation context.- Returns:
this
-
validation
@Stability(Stable) public CfnVirtualNode.ListenerTlsProperty.Builder validation(CfnVirtualNode.ListenerTlsValidationContextProperty validation) Sets the value ofCfnVirtualNode.ListenerTlsProperty.getValidation()
- Parameters:
validation
- A reference to an object that represents a listener's Transport Layer Security (TLS) validation context.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnVirtualNode.ListenerTlsProperty>
- Returns:
- a new instance of
CfnVirtualNode.ListenerTlsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-