Class CreateDataPolicySchema.Builder

  • Enclosing class:
    CreateDataPolicySchema

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