Class CreateZoneRateLimitsOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.networking.zone_rate_limits.v1.model.CreateZoneRateLimitsOptions.Builder
-
- Enclosing class:
- CreateZoneRateLimitsOptions
public static class CreateZoneRateLimitsOptions.Builder extends Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateZoneRateLimitsOptions.Builder
action(RatelimitInputAction action)
Set the action.CreateZoneRateLimitsOptions.Builder
addBypass(RatelimitInputBypassItem bypass)
Adds an bypass to bypass.CreateZoneRateLimitsOptions
build()
Builds a CreateZoneRateLimitsOptions.CreateZoneRateLimitsOptions.Builder
bypass(List<RatelimitInputBypassItem> bypass)
Set the bypass.CreateZoneRateLimitsOptions.Builder
correlate(RatelimitInputCorrelate correlate)
Set the correlate.CreateZoneRateLimitsOptions.Builder
description(String description)
Set the description.CreateZoneRateLimitsOptions.Builder
disabled(Boolean disabled)
Set the disabled.CreateZoneRateLimitsOptions.Builder
match(RatelimitInputMatch match)
Set the match.CreateZoneRateLimitsOptions.Builder
period(long period)
Set the period.CreateZoneRateLimitsOptions.Builder
threshold(long threshold)
Set the threshold.
-
-
-
Method Detail
-
build
public CreateZoneRateLimitsOptions build()
Builds a CreateZoneRateLimitsOptions.- Returns:
- the new CreateZoneRateLimitsOptions instance
-
addBypass
public CreateZoneRateLimitsOptions.Builder addBypass(RatelimitInputBypassItem bypass)
Adds an bypass to bypass.- Parameters:
bypass
- the new bypass- Returns:
- the CreateZoneRateLimitsOptions builder
-
disabled
public CreateZoneRateLimitsOptions.Builder disabled(Boolean disabled)
Set the disabled.- Parameters:
disabled
- the disabled- Returns:
- the CreateZoneRateLimitsOptions builder
-
description
public CreateZoneRateLimitsOptions.Builder description(String description)
Set the description.- Parameters:
description
- the description- Returns:
- the CreateZoneRateLimitsOptions builder
-
bypass
public CreateZoneRateLimitsOptions.Builder bypass(List<RatelimitInputBypassItem> bypass)
Set the bypass. Existing bypass will be replaced.- Parameters:
bypass
- the bypass- Returns:
- the CreateZoneRateLimitsOptions builder
-
threshold
public CreateZoneRateLimitsOptions.Builder threshold(long threshold)
Set the threshold.- Parameters:
threshold
- the threshold- Returns:
- the CreateZoneRateLimitsOptions builder
-
period
public CreateZoneRateLimitsOptions.Builder period(long period)
Set the period.- Parameters:
period
- the period- Returns:
- the CreateZoneRateLimitsOptions builder
-
action
public CreateZoneRateLimitsOptions.Builder action(RatelimitInputAction action)
Set the action.- Parameters:
action
- the action- Returns:
- the CreateZoneRateLimitsOptions builder
-
correlate
public CreateZoneRateLimitsOptions.Builder correlate(RatelimitInputCorrelate correlate)
Set the correlate.- Parameters:
correlate
- the correlate- Returns:
- the CreateZoneRateLimitsOptions builder
-
match
public CreateZoneRateLimitsOptions.Builder match(RatelimitInputMatch match)
Set the match.- Parameters:
match
- the match- Returns:
- the CreateZoneRateLimitsOptions builder
-
-