Class TlsClientPolicy.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.TlsClientPolicy.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<TlsClientPolicy>
- Enclosing interface:
- TlsClientPolicy
@Stability(Stable)
public static final class TlsClientPolicy.Builder
extends Object
implements software.amazon.jsii.Builder<TlsClientPolicy>
A builder for
TlsClientPolicy-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofTlsClientPolicy.getEnforce()mutualTlsCertificate(MutualTlsCertificate mutualTlsCertificate) Sets the value ofTlsClientPolicy.getMutualTlsCertificate()Sets the value ofTlsClientPolicy.getPorts()validation(TlsValidation validation) Sets the value ofTlsClientPolicy.getValidation()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
validation
Sets the value ofTlsClientPolicy.getValidation()- Parameters:
validation- Represents the object for TLS validation context. This parameter is required.- Returns:
this
-
enforce
Sets the value ofTlsClientPolicy.getEnforce()- Parameters:
enforce- Whether the policy is enforced.- Returns:
this
-
mutualTlsCertificate
@Stability(Stable) public TlsClientPolicy.Builder mutualTlsCertificate(MutualTlsCertificate mutualTlsCertificate) Sets the value ofTlsClientPolicy.getMutualTlsCertificate()- Parameters:
mutualTlsCertificate- Represents a client TLS certificate. The certificate will be sent only if the server requests it, enabling mutual TLS.- Returns:
this
-
ports
Sets the value ofTlsClientPolicy.getPorts()- Parameters:
ports- TLS is enforced on the ports specified here. If no ports are specified, TLS will be enforced on all the ports.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<TlsClientPolicy>- Returns:
- a new instance of
TlsClientPolicy - Throws:
NullPointerException- if any required attribute was not provided
-