Class ReplaceDataPolicyOptions.Builder

  • Enclosing class:
    ReplaceDataPolicyOptions

    public static class ReplaceDataPolicyOptions.Builder
    extends java.lang.Object
    Builder.
    • 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 policyName
        catalogName - the catalogName
        dataArtifact - the dataArtifact
        rules - 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