Class CreateZoneOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.platform_services.context_based_restrictions.v1.model.CreateZoneOptions.Builder
-
- Enclosing class:
- CreateZoneOptions
public static class CreateZoneOptions.Builder extends java.lang.Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description CreateZoneOptions.Builder
accountId(java.lang.String accountId)
Set the accountId.CreateZoneOptions.Builder
addAddresses(Address addresses)
Adds a new element to addresses.CreateZoneOptions.Builder
addExcluded(Address excluded)
Adds a new element to excluded.CreateZoneOptions.Builder
addresses(java.util.List<Address> addresses)
Set the addresses.CreateZoneOptions
build()
Builds a CreateZoneOptions.CreateZoneOptions.Builder
description(java.lang.String description)
Set the description.CreateZoneOptions.Builder
excluded(java.util.List<Address> excluded)
Set the excluded.CreateZoneOptions.Builder
name(java.lang.String name)
Set the name.CreateZoneOptions.Builder
transactionId(java.lang.String transactionId)
Deprecated.this method is deprecated and may be removed in a future releaseCreateZoneOptions.Builder
xCorrelationId(java.lang.String xCorrelationId)
Set the xCorrelationId.
-
-
-
Method Detail
-
build
public CreateZoneOptions build()
Builds a CreateZoneOptions.- Returns:
- the new CreateZoneOptions instance
-
addAddresses
public CreateZoneOptions.Builder addAddresses(Address addresses)
Adds a new element to addresses.- Parameters:
addresses
- the new element to be added- Returns:
- the CreateZoneOptions builder
-
addExcluded
public CreateZoneOptions.Builder addExcluded(Address excluded)
Adds a new element to excluded.- Parameters:
excluded
- the new element to be added- Returns:
- the CreateZoneOptions builder
-
name
public CreateZoneOptions.Builder name(java.lang.String name)
Set the name.- Parameters:
name
- the name- Returns:
- the CreateZoneOptions builder
-
accountId
public CreateZoneOptions.Builder accountId(java.lang.String accountId)
Set the accountId.- Parameters:
accountId
- the accountId- Returns:
- the CreateZoneOptions builder
-
description
public CreateZoneOptions.Builder description(java.lang.String description)
Set the description.- Parameters:
description
- the description- Returns:
- the CreateZoneOptions builder
-
addresses
public CreateZoneOptions.Builder addresses(java.util.List<Address> addresses)
Set the addresses. Existing addresses will be replaced.- Parameters:
addresses
- the addresses- Returns:
- the CreateZoneOptions builder
-
excluded
public CreateZoneOptions.Builder excluded(java.util.List<Address> excluded)
Set the excluded. Existing excluded will be replaced.- Parameters:
excluded
- the excluded- Returns:
- the CreateZoneOptions builder
-
xCorrelationId
public CreateZoneOptions.Builder xCorrelationId(java.lang.String xCorrelationId)
Set the xCorrelationId.- Parameters:
xCorrelationId
- the xCorrelationId- Returns:
- the CreateZoneOptions builder
-
transactionId
@Deprecated public CreateZoneOptions.Builder transactionId(java.lang.String transactionId)
Deprecated.this method is deprecated and may be removed in a future releaseSet the transactionId.- Parameters:
transactionId
- the transactionId- Returns:
- the CreateZoneOptions builder
-
-