Class ContractRule

java.lang.Object
io.apicurio.registry.rest.client.models.ContractRule
All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable

@Generated("com.microsoft.kiota") public class ContractRule extends Object implements com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable
A single contract rule definition.
  • Constructor Details

    • ContractRule

      public ContractRule()
      Instantiates a new ContractRule and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static ContractRule createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode)
      Creates a new instance of the appropriate class based on discriminator value
      Parameters:
      parseNode - The parse node to use to read the discriminator value and create the object
      Returns:
      a ContractRule
    • getAdditionalData

      @Nonnull public Map<String,Object> getAdditionalData()
      Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
      Specified by:
      getAdditionalData in interface com.microsoft.kiota.serialization.AdditionalDataHolder
      Returns:
      a Map<String,Object>
    • getDisabled

      @Nullable public Boolean getDisabled()
      Gets the disabled property value. Whether the rule is disabled.
      Returns:
      a Boolean
    • getExpr

      @Nullable public String getExpr()
      Gets the expr property value. The rule expression.
      Returns:
      a String
    • getFieldDeserializers

      @Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()
      The deserialization information for the current model
      Specified by:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getKind

      @Nullable public ContractRuleKind getKind()
      Gets the kind property value. The rule kind.
      Returns:
      a ContractRuleKind
    • getMode

      @Nullable public ContractRuleMode getMode()
      Gets the mode property value. When the rule is applied.
      Returns:
      a ContractRuleMode
    • getName

      @Nullable public String getName()
      Gets the name property value. The rule name.
      Returns:
      a String
    • getOnFailure

      @Nullable public ContractRuleOnFailure getOnFailure()
      Gets the onFailure property value. Action on rule failure.
      Returns:
      a ContractRuleOnFailure
    • getOnSuccess

      @Nullable public ContractRuleOnSuccess getOnSuccess()
      Gets the onSuccess property value. Action on rule success.
      Returns:
      a ContractRuleOnSuccess
    • getParams

      @Nullable public ContractRuleParams getParams()
      Gets the params property value. Rule parameters.
      Returns:
      a ContractRuleParams
    • getTags

      @Nullable public List<String> getTags()
      Gets the tags property value. Tags for categorizing the rule.
      Returns:
      a List<String>
    • getType

      @Nullable public String getType()
      Gets the type property value. Rule executor type (CEL, CEL_FIELD, ENCRYPT, etc.).
      Returns:
      a String
    • serialize

      public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer)
      Serializes information the current object
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setAdditionalData

      public void setAdditionalData(@Nullable Map<String,Object> value)
      Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
      Parameters:
      value - Value to set for the AdditionalData property.
    • setDisabled

      public void setDisabled(@Nullable Boolean value)
      Sets the disabled property value. Whether the rule is disabled.
      Parameters:
      value - Value to set for the disabled property.
    • setExpr

      public void setExpr(@Nullable String value)
      Sets the expr property value. The rule expression.
      Parameters:
      value - Value to set for the expr property.
    • setKind

      public void setKind(@Nullable ContractRuleKind value)
      Sets the kind property value. The rule kind.
      Parameters:
      value - Value to set for the kind property.
    • setMode

      public void setMode(@Nullable ContractRuleMode value)
      Sets the mode property value. When the rule is applied.
      Parameters:
      value - Value to set for the mode property.
    • setName

      public void setName(@Nullable String value)
      Sets the name property value. The rule name.
      Parameters:
      value - Value to set for the name property.
    • setOnFailure

      public void setOnFailure(@Nullable ContractRuleOnFailure value)
      Sets the onFailure property value. Action on rule failure.
      Parameters:
      value - Value to set for the onFailure property.
    • setOnSuccess

      public void setOnSuccess(@Nullable ContractRuleOnSuccess value)
      Sets the onSuccess property value. Action on rule success.
      Parameters:
      value - Value to set for the onSuccess property.
    • setParams

      public void setParams(@Nullable ContractRuleParams value)
      Sets the params property value. Rule parameters.
      Parameters:
      value - Value to set for the params property.
    • setTags

      public void setTags(@Nullable List<String> value)
      Sets the tags property value. Tags for categorizing the rule.
      Parameters:
      value - Value to set for the tags property.
    • setType

      public void setType(@Nullable String value)
      Sets the type property value. Rule executor type (CEL, CEL_FIELD, ENCRYPT, etc.).
      Parameters:
      value - Value to set for the type property.