Class CreateDataPolicySchema.Builder
- java.lang.Object
-
- com.ibm.cloud.watsonxdata.watsonx_data.v1.model.CreateDataPolicySchema.Builder
-
- Enclosing class:
- CreateDataPolicySchema
public static class CreateDataPolicySchema.Builder extends java.lang.Object
Builder.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateDataPolicySchema.Builder
addRules(Rule rules)
Adds an rules to rules.CreateDataPolicySchema
build()
Builds a CreateDataPolicySchema.CreateDataPolicySchema.Builder
catalogName(java.lang.String catalogName)
Set the catalogName.CreateDataPolicySchema.Builder
dataArtifact(java.lang.String dataArtifact)
Set the dataArtifact.CreateDataPolicySchema.Builder
description(java.lang.String description)
Set the description.CreateDataPolicySchema.Builder
policyName(java.lang.String policyName)
Set the policyName.CreateDataPolicySchema.Builder
rules(java.util.List<Rule> rules)
Set the rules.CreateDataPolicySchema.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 CreateDataPolicySchema build()
Builds a CreateDataPolicySchema.- Returns:
- the new CreateDataPolicySchema instance
-
addRules
public CreateDataPolicySchema.Builder addRules(Rule rules)
Adds an rules to rules.- Parameters:
rules
- the new rules- Returns:
- the CreateDataPolicySchema builder
-
catalogName
public CreateDataPolicySchema.Builder catalogName(java.lang.String catalogName)
Set the catalogName.- Parameters:
catalogName
- the catalogName- Returns:
- the CreateDataPolicySchema builder
-
dataArtifact
public CreateDataPolicySchema.Builder dataArtifact(java.lang.String dataArtifact)
Set the dataArtifact.- Parameters:
dataArtifact
- the dataArtifact- Returns:
- the CreateDataPolicySchema builder
-
description
public CreateDataPolicySchema.Builder description(java.lang.String description)
Set the description.- Parameters:
description
- the description- Returns:
- the CreateDataPolicySchema builder
-
policyName
public CreateDataPolicySchema.Builder policyName(java.lang.String policyName)
Set the policyName.- Parameters:
policyName
- the policyName- Returns:
- the CreateDataPolicySchema builder
-
rules
public CreateDataPolicySchema.Builder rules(java.util.List<Rule> rules)
Set the rules. Existing rules will be replaced.- Parameters:
rules
- the rules- Returns:
- the CreateDataPolicySchema builder
-
status
public CreateDataPolicySchema.Builder status(java.lang.String status)
Set the status.- Parameters:
status
- the status- Returns:
- the CreateDataPolicySchema builder
-
-