Class CreateCustomResolverOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.networking.dns_svcs.v1.model.CreateCustomResolverOptions.Builder
-
- Enclosing class:
- CreateCustomResolverOptions
public static class CreateCustomResolverOptions.Builder extends Object
Builder.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateCustomResolverOptions.Builder
addLocations(LocationInput locations)
Adds an locations to locations.CreateCustomResolverOptions
build()
Builds a CreateCustomResolverOptions.CreateCustomResolverOptions.Builder
description(String description)
Set the description.CreateCustomResolverOptions.Builder
instanceId(String instanceId)
Set the instanceId.CreateCustomResolverOptions.Builder
locations(List<LocationInput> locations)
Set the locations.CreateCustomResolverOptions.Builder
name(String name)
Set the name.CreateCustomResolverOptions.Builder
xCorrelationId(String xCorrelationId)
Set the xCorrelationId.
-
-
-
Constructor Detail
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(String instanceId)
Instantiates a new builder with required properties.- Parameters:
instanceId
- the instanceId
-
-
Method Detail
-
build
public CreateCustomResolverOptions build()
Builds a CreateCustomResolverOptions.- Returns:
- the new CreateCustomResolverOptions instance
-
addLocations
public CreateCustomResolverOptions.Builder addLocations(LocationInput locations)
Adds an locations to locations.- Parameters:
locations
- the new locations- Returns:
- the CreateCustomResolverOptions builder
-
instanceId
public CreateCustomResolverOptions.Builder instanceId(String instanceId)
Set the instanceId.- Parameters:
instanceId
- the instanceId- Returns:
- the CreateCustomResolverOptions builder
-
name
public CreateCustomResolverOptions.Builder name(String name)
Set the name.- Parameters:
name
- the name- Returns:
- the CreateCustomResolverOptions builder
-
description
public CreateCustomResolverOptions.Builder description(String description)
Set the description.- Parameters:
description
- the description- Returns:
- the CreateCustomResolverOptions builder
-
locations
public CreateCustomResolverOptions.Builder locations(List<LocationInput> locations)
Set the locations. Existing locations will be replaced.- Parameters:
locations
- the locations- Returns:
- the CreateCustomResolverOptions builder
-
xCorrelationId
public CreateCustomResolverOptions.Builder xCorrelationId(String xCorrelationId)
Set the xCorrelationId.- Parameters:
xCorrelationId
- the xCorrelationId- Returns:
- the CreateCustomResolverOptions builder
-
-