Class CfnVirtualNode.ClientPolicyTlsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.CfnVirtualNode.ClientPolicyTlsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVirtualNode.ClientPolicyTlsProperty>
- Enclosing interface:
CfnVirtualNode.ClientPolicyTlsProperty
@Stability(Stable)
public static final class CfnVirtualNode.ClientPolicyTlsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVirtualNode.ClientPolicyTlsProperty>
A builder for
CfnVirtualNode.ClientPolicyTlsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.certificate
(IResolvable certificate) Sets the value ofCfnVirtualNode.ClientPolicyTlsProperty.getCertificate()
certificate
(CfnVirtualNode.ClientTlsCertificateProperty certificate) Sets the value ofCfnVirtualNode.ClientPolicyTlsProperty.getCertificate()
Sets the value ofCfnVirtualNode.ClientPolicyTlsProperty.getEnforce()
enforce
(IResolvable enforce) Sets the value ofCfnVirtualNode.ClientPolicyTlsProperty.getEnforce()
Sets the value ofCfnVirtualNode.ClientPolicyTlsProperty.getPorts()
ports
(IResolvable ports) Sets the value ofCfnVirtualNode.ClientPolicyTlsProperty.getPorts()
validation
(IResolvable validation) Sets the value ofCfnVirtualNode.ClientPolicyTlsProperty.getValidation()
Sets the value ofCfnVirtualNode.ClientPolicyTlsProperty.getValidation()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
validation
@Stability(Stable) public CfnVirtualNode.ClientPolicyTlsProperty.Builder validation(IResolvable validation) Sets the value ofCfnVirtualNode.ClientPolicyTlsProperty.getValidation()
- Parameters:
validation
- A reference to an object that represents a TLS validation context. This parameter is required.- Returns:
this
-
validation
@Stability(Stable) public CfnVirtualNode.ClientPolicyTlsProperty.Builder validation(CfnVirtualNode.TlsValidationContextProperty validation) Sets the value ofCfnVirtualNode.ClientPolicyTlsProperty.getValidation()
- Parameters:
validation
- A reference to an object that represents a TLS validation context. This parameter is required.- Returns:
this
-
certificate
@Stability(Stable) public CfnVirtualNode.ClientPolicyTlsProperty.Builder certificate(IResolvable certificate) Sets the value ofCfnVirtualNode.ClientPolicyTlsProperty.getCertificate()
- Parameters:
certificate
- A reference to an object that represents a client's TLS certificate.- Returns:
this
-
certificate
@Stability(Stable) public CfnVirtualNode.ClientPolicyTlsProperty.Builder certificate(CfnVirtualNode.ClientTlsCertificateProperty certificate) Sets the value ofCfnVirtualNode.ClientPolicyTlsProperty.getCertificate()
- Parameters:
certificate
- A reference to an object that represents a client's TLS certificate.- Returns:
this
-
enforce
Sets the value ofCfnVirtualNode.ClientPolicyTlsProperty.getEnforce()
- Parameters:
enforce
- Whether the policy is enforced. The default isTrue
, if a value isn't specified.- Returns:
this
-
enforce
@Stability(Stable) public CfnVirtualNode.ClientPolicyTlsProperty.Builder enforce(IResolvable enforce) Sets the value ofCfnVirtualNode.ClientPolicyTlsProperty.getEnforce()
- Parameters:
enforce
- Whether the policy is enforced. The default isTrue
, if a value isn't specified.- Returns:
this
-
ports
Sets the value ofCfnVirtualNode.ClientPolicyTlsProperty.getPorts()
- Parameters:
ports
- One or more ports that the policy is enforced for.- Returns:
this
-
ports
@Stability(Stable) public CfnVirtualNode.ClientPolicyTlsProperty.Builder ports(List<? extends Number> ports) Sets the value ofCfnVirtualNode.ClientPolicyTlsProperty.getPorts()
- Parameters:
ports
- One or more ports that the policy is enforced for.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnVirtualNode.ClientPolicyTlsProperty>
- Returns:
- a new instance of
CfnVirtualNode.ClientPolicyTlsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-