Class CfnServiceNetworkProps.Builder
java.lang.Object
software.amazon.awscdk.services.vpclattice.CfnServiceNetworkProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServiceNetworkProps>
- Enclosing interface:
CfnServiceNetworkProps
@Stability(Stable)
public static final class CfnServiceNetworkProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServiceNetworkProps>
A builder for
CfnServiceNetworkProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnServiceNetworkProps.getAuthType()
build()
Builds the configured instance.Sets the value ofCfnServiceNetworkProps.getName()
sharingConfig
(IResolvable sharingConfig) Sets the value ofCfnServiceNetworkProps.getSharingConfig()
sharingConfig
(CfnServiceNetwork.SharingConfigProperty sharingConfig) Sets the value ofCfnServiceNetworkProps.getSharingConfig()
Sets the value ofCfnServiceNetworkProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authType
Sets the value ofCfnServiceNetworkProps.getAuthType()
- Parameters:
authType
- The type of IAM policy.NONE
: The resource does not use an IAM policy. This is the default.AWS_IAM
: The resource uses an IAM policy. When this type is used, auth is enabled and an auth policy is required.
- Returns:
this
-
name
Sets the value ofCfnServiceNetworkProps.getName()
- Parameters:
name
- The name of the service network. The name must be unique to the account. The valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another hyphen.If you don't specify a name, CloudFormation generates one. However, if you specify a name, and later want to replace the resource, you must specify a new name.
- Returns:
this
-
sharingConfig
Sets the value ofCfnServiceNetworkProps.getSharingConfig()
- Parameters:
sharingConfig
- Specify if the service network should be enabled for sharing.- Returns:
this
-
sharingConfig
@Stability(Stable) public CfnServiceNetworkProps.Builder sharingConfig(CfnServiceNetwork.SharingConfigProperty sharingConfig) Sets the value ofCfnServiceNetworkProps.getSharingConfig()
- Parameters:
sharingConfig
- Specify if the service network should be enabled for sharing.- Returns:
this
-
tags
Sets the value ofCfnServiceNetworkProps.getTags()
- Parameters:
tags
- The tags for the service network.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnServiceNetworkProps>
- Returns:
- a new instance of
CfnServiceNetworkProps
- Throws:
NullPointerException
- if any required attribute was not provided
-