Class CfnClientVpnEndpoint.ClientLoginBannerOptionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnClientVpnEndpoint.ClientLoginBannerOptionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClientVpnEndpoint.ClientLoginBannerOptionsProperty>
- Enclosing interface:
- CfnClientVpnEndpoint.ClientLoginBannerOptionsProperty
@Stability(Stable)
public static final class CfnClientVpnEndpoint.ClientLoginBannerOptionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnClientVpnEndpoint.ClientLoginBannerOptionsProperty>
A builder for
CfnClientVpnEndpoint.ClientLoginBannerOptionsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbannerText(String bannerText) Sets the value ofCfnClientVpnEndpoint.ClientLoginBannerOptionsProperty.getBannerText()build()Builds the configured instance.Sets the value ofCfnClientVpnEndpoint.ClientLoginBannerOptionsProperty.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnClientVpnEndpoint.ClientLoginBannerOptionsProperty.getEnabled()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
@Stability(Stable) public CfnClientVpnEndpoint.ClientLoginBannerOptionsProperty.Builder enabled(Boolean enabled) Sets the value ofCfnClientVpnEndpoint.ClientLoginBannerOptionsProperty.getEnabled()- Parameters:
enabled- Enable or disable a customizable text banner that will be displayed on AWS provided clients when a VPN session is established. This parameter is required. Valid values:true | falseDefault value:
false- Returns:
this
-
enabled
@Stability(Stable) public CfnClientVpnEndpoint.ClientLoginBannerOptionsProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnClientVpnEndpoint.ClientLoginBannerOptionsProperty.getEnabled()- Parameters:
enabled- Enable or disable a customizable text banner that will be displayed on AWS provided clients when a VPN session is established. This parameter is required. Valid values:true | falseDefault value:
false- Returns:
this
-
bannerText
@Stability(Stable) public CfnClientVpnEndpoint.ClientLoginBannerOptionsProperty.Builder bannerText(String bannerText) Sets the value ofCfnClientVpnEndpoint.ClientLoginBannerOptionsProperty.getBannerText()- Parameters:
bannerText- Customizable text that will be displayed in a banner on AWS provided clients when a VPN session is established. UTF-8 encoded characters only. Maximum of 1400 characters.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnClientVpnEndpoint.ClientLoginBannerOptionsProperty>- Returns:
- a new instance of
CfnClientVpnEndpoint.ClientLoginBannerOptionsProperty - Throws:
NullPointerException- if any required attribute was not provided
-