Class CreateDataPolicyOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.watsonxdata.watsonx_data.v1.model.CreateDataPolicyOptions.Builder
-
- Enclosing class:
- CreateDataPolicyOptions
public static class CreateDataPolicyOptions.Builder extends java.lang.Object
Builder.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateDataPolicyOptions.Builder
addRules(Rule rules)
Adds an rules to rules.CreateDataPolicyOptions.Builder
authInstanceId(java.lang.String authInstanceId)
Set the authInstanceId.CreateDataPolicyOptions
build()
Builds a CreateDataPolicyOptions.CreateDataPolicyOptions.Builder
catalogName(java.lang.String catalogName)
Set the catalogName.CreateDataPolicyOptions.Builder
createDataPolicySchema(CreateDataPolicySchema createDataPolicySchema)
Set the createDataPolicySchema.CreateDataPolicyOptions.Builder
dataArtifact(java.lang.String dataArtifact)
Set the dataArtifact.CreateDataPolicyOptions.Builder
description(java.lang.String description)
Set the description.CreateDataPolicyOptions.Builder
lhInstanceId(java.lang.String lhInstanceId)
Set the lhInstanceId.CreateDataPolicyOptions.Builder
policyName(java.lang.String policyName)
Set the policyName.CreateDataPolicyOptions.Builder
rules(java.util.List<Rule> rules)
Set the rules.CreateDataPolicyOptions.Builder
status(java.lang.String status)
Set the status.
-
-
-
Constructor Detail
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(java.lang.String catalogName, java.lang.String dataArtifact, java.lang.String policyName, java.util.List<Rule> rules)
Instantiates a new builder with required properties.- Parameters:
catalogName
- the catalogNamedataArtifact
- the dataArtifactpolicyName
- the policyNamerules
- the rules
-
-
Method Detail
-
build
public CreateDataPolicyOptions build()
Builds a CreateDataPolicyOptions.- Returns:
- the new CreateDataPolicyOptions instance
-
addRules
public CreateDataPolicyOptions.Builder addRules(Rule rules)
Adds an rules to rules.- Parameters:
rules
- the new rules- Returns:
- the CreateDataPolicyOptions builder
-
catalogName
public CreateDataPolicyOptions.Builder catalogName(java.lang.String catalogName)
Set the catalogName.- Parameters:
catalogName
- the catalogName- Returns:
- the CreateDataPolicyOptions builder
-
dataArtifact
public CreateDataPolicyOptions.Builder dataArtifact(java.lang.String dataArtifact)
Set the dataArtifact.- Parameters:
dataArtifact
- the dataArtifact- Returns:
- the CreateDataPolicyOptions builder
-
policyName
public CreateDataPolicyOptions.Builder policyName(java.lang.String policyName)
Set the policyName.- Parameters:
policyName
- the policyName- Returns:
- the CreateDataPolicyOptions builder
-
rules
public CreateDataPolicyOptions.Builder rules(java.util.List<Rule> rules)
Set the rules. Existing rules will be replaced.- Parameters:
rules
- the rules- Returns:
- the CreateDataPolicyOptions builder
-
description
public CreateDataPolicyOptions.Builder description(java.lang.String description)
Set the description.- Parameters:
description
- the description- Returns:
- the CreateDataPolicyOptions builder
-
status
public CreateDataPolicyOptions.Builder status(java.lang.String status)
Set the status.- Parameters:
status
- the status- Returns:
- the CreateDataPolicyOptions builder
-
lhInstanceId
public CreateDataPolicyOptions.Builder lhInstanceId(java.lang.String lhInstanceId)
Set the lhInstanceId.- Parameters:
lhInstanceId
- the lhInstanceId- Returns:
- the CreateDataPolicyOptions builder
-
authInstanceId
public CreateDataPolicyOptions.Builder authInstanceId(java.lang.String authInstanceId)
Set the authInstanceId.- Parameters:
authInstanceId
- the authInstanceId- Returns:
- the CreateDataPolicyOptions builder
-
createDataPolicySchema
public CreateDataPolicyOptions.Builder createDataPolicySchema(CreateDataPolicySchema createDataPolicySchema)
Set the createDataPolicySchema.- Parameters:
createDataPolicySchema
- the createDataPolicySchema- Returns:
- the CreateDataPolicyOptions builder
-
-