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