Class CreateV2PolicyOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.platform_services.iam_policy_management.v1.model.CreateV2PolicyOptions.Builder
-
- Enclosing class:
- CreateV2PolicyOptions
public static class CreateV2PolicyOptions.Builder extends java.lang.Object
Builder.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateV2PolicyOptions.Builder
acceptLanguage(java.lang.String acceptLanguage)
Set the acceptLanguage.CreateV2PolicyOptions
build()
Builds a CreateV2PolicyOptions.CreateV2PolicyOptions.Builder
control(Control control)
Set the control.CreateV2PolicyOptions.Builder
description(java.lang.String description)
Set the description.CreateV2PolicyOptions.Builder
pattern(java.lang.String pattern)
Set the pattern.CreateV2PolicyOptions.Builder
resource(V2PolicyResource resource)
Set the resource.CreateV2PolicyOptions.Builder
rule(V2PolicyRule rule)
Set the rule.CreateV2PolicyOptions.Builder
subject(V2PolicySubject subject)
Set the subject.CreateV2PolicyOptions.Builder
type(java.lang.String type)
Set the type.
-
-
-
Constructor Detail
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(Control control, java.lang.String type)
Instantiates a new builder with required properties.- Parameters:
control
- the controltype
- the type
-
-
Method Detail
-
build
public CreateV2PolicyOptions build()
Builds a CreateV2PolicyOptions.- Returns:
- the new CreateV2PolicyOptions instance
-
control
public CreateV2PolicyOptions.Builder control(Control control)
Set the control.- Parameters:
control
- the control- Returns:
- the CreateV2PolicyOptions builder
-
type
public CreateV2PolicyOptions.Builder type(java.lang.String type)
Set the type.- Parameters:
type
- the type- Returns:
- the CreateV2PolicyOptions builder
-
description
public CreateV2PolicyOptions.Builder description(java.lang.String description)
Set the description.- Parameters:
description
- the description- Returns:
- the CreateV2PolicyOptions builder
-
subject
public CreateV2PolicyOptions.Builder subject(V2PolicySubject subject)
Set the subject.- Parameters:
subject
- the subject- Returns:
- the CreateV2PolicyOptions builder
-
resource
public CreateV2PolicyOptions.Builder resource(V2PolicyResource resource)
Set the resource.- Parameters:
resource
- the resource- Returns:
- the CreateV2PolicyOptions builder
-
pattern
public CreateV2PolicyOptions.Builder pattern(java.lang.String pattern)
Set the pattern.- Parameters:
pattern
- the pattern- Returns:
- the CreateV2PolicyOptions builder
-
rule
public CreateV2PolicyOptions.Builder rule(V2PolicyRule rule)
Set the rule.- Parameters:
rule
- the rule- Returns:
- the CreateV2PolicyOptions builder
-
acceptLanguage
public CreateV2PolicyOptions.Builder acceptLanguage(java.lang.String acceptLanguage)
Set the acceptLanguage.- Parameters:
acceptLanguage
- the acceptLanguage- Returns:
- the CreateV2PolicyOptions builder
-
-