Class CreateDataPolicyOptions.Builder

  • Enclosing class:
    CreateDataPolicyOptions

    public static class CreateDataPolicyOptions.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 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