Class CreateGatewayActionOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.networking.direct_link.v1.model.CreateGatewayActionOptions.Builder
-
- Enclosing class:
- CreateGatewayActionOptions
public static class CreateGatewayActionOptions.Builder extends Object
Builder.
-
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(String id)
Instantiates a new builder with required properties.- Parameters:
id
- the id
-
-
Method Detail
-
build
public CreateGatewayActionOptions build()
Builds a CreateGatewayActionOptions.- Returns:
- the new CreateGatewayActionOptions instance
-
addAsPrepends
public CreateGatewayActionOptions.Builder addAsPrepends(AsPrependTemplate asPrepends)
Adds an asPrepends to asPrepends.- Parameters:
asPrepends
- the new asPrepends- Returns:
- the CreateGatewayActionOptions builder
-
addExportRouteFilters
public CreateGatewayActionOptions.Builder addExportRouteFilters(GatewayTemplateRouteFilter exportRouteFilters)
Adds an exportRouteFilters to exportRouteFilters.- Parameters:
exportRouteFilters
- the new exportRouteFilters- Returns:
- the CreateGatewayActionOptions builder
-
addImportRouteFilters
public CreateGatewayActionOptions.Builder addImportRouteFilters(GatewayTemplateRouteFilter importRouteFilters)
Adds an importRouteFilters to importRouteFilters.- Parameters:
importRouteFilters
- the new importRouteFilters- Returns:
- the CreateGatewayActionOptions builder
-
addUpdates
public CreateGatewayActionOptions.Builder addUpdates(GatewayActionTemplateUpdatesItem updates)
Adds an updates to updates.- Parameters:
updates
- the new updates- Returns:
- the CreateGatewayActionOptions builder
-
id
public CreateGatewayActionOptions.Builder id(String id)
Set the id.- Parameters:
id
- the id- Returns:
- the CreateGatewayActionOptions builder
-
action
public CreateGatewayActionOptions.Builder action(String action)
Set the action.- Parameters:
action
- the action- Returns:
- the CreateGatewayActionOptions builder
-
asPrepends
public CreateGatewayActionOptions.Builder asPrepends(List<AsPrependTemplate> asPrepends)
Set the asPrepends. Existing asPrepends will be replaced.- Parameters:
asPrepends
- the asPrepends- Returns:
- the CreateGatewayActionOptions builder
-
authenticationKey
public CreateGatewayActionOptions.Builder authenticationKey(GatewayActionTemplateAuthenticationKey authenticationKey)
Set the authenticationKey.- Parameters:
authenticationKey
- the authenticationKey- Returns:
- the CreateGatewayActionOptions builder
-
bfdConfig
public CreateGatewayActionOptions.Builder bfdConfig(GatewayBfdConfigActionTemplate bfdConfig)
Set the bfdConfig.- Parameters:
bfdConfig
- the bfdConfig- Returns:
- the CreateGatewayActionOptions builder
-
connectionMode
public CreateGatewayActionOptions.Builder connectionMode(String connectionMode)
Set the connectionMode.- Parameters:
connectionMode
- the connectionMode- Returns:
- the CreateGatewayActionOptions builder
-
defaultExportRouteFilter
public CreateGatewayActionOptions.Builder defaultExportRouteFilter(String defaultExportRouteFilter)
Set the defaultExportRouteFilter.- Parameters:
defaultExportRouteFilter
- the defaultExportRouteFilter- Returns:
- the CreateGatewayActionOptions builder
-
defaultImportRouteFilter
public CreateGatewayActionOptions.Builder defaultImportRouteFilter(String defaultImportRouteFilter)
Set the defaultImportRouteFilter.- Parameters:
defaultImportRouteFilter
- the defaultImportRouteFilter- Returns:
- the CreateGatewayActionOptions builder
-
exportRouteFilters
public CreateGatewayActionOptions.Builder exportRouteFilters(List<GatewayTemplateRouteFilter> exportRouteFilters)
Set the exportRouteFilters. Existing exportRouteFilters will be replaced.- Parameters:
exportRouteFilters
- the exportRouteFilters- Returns:
- the CreateGatewayActionOptions builder
-
global
public CreateGatewayActionOptions.Builder global(Boolean global)
Set the global.- Parameters:
global
- the global- Returns:
- the CreateGatewayActionOptions builder
-
importRouteFilters
public CreateGatewayActionOptions.Builder importRouteFilters(List<GatewayTemplateRouteFilter> importRouteFilters)
Set the importRouteFilters. Existing importRouteFilters will be replaced.- Parameters:
importRouteFilters
- the importRouteFilters- Returns:
- the CreateGatewayActionOptions builder
-
metered
public CreateGatewayActionOptions.Builder metered(Boolean metered)
Set the metered.- Parameters:
metered
- the metered- Returns:
- the CreateGatewayActionOptions builder
-
resourceGroup
public CreateGatewayActionOptions.Builder resourceGroup(ResourceGroupIdentity resourceGroup)
Set the resourceGroup.- Parameters:
resourceGroup
- the resourceGroup- Returns:
- the CreateGatewayActionOptions builder
-
updates
public CreateGatewayActionOptions.Builder updates(List<GatewayActionTemplateUpdatesItem> updates)
Set the updates. Existing updates will be replaced.- Parameters:
updates
- the updates- Returns:
- the CreateGatewayActionOptions builder
-
-