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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ContractRulecreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the AdditionalData property value.Gets the disabled property value.getExpr()Gets the expr property value.The deserialization information for the current modelgetKind()Gets the kind property value.getMode()Gets the mode property value.getName()Gets the name property value.Gets the onFailure property value.Gets the onSuccess property value.Gets the params property value.getTags()Gets the tags property value.getType()Gets the type property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetAdditionalData(Map<String, Object> value) Sets the AdditionalData property value.voidsetDisabled(Boolean value) Sets the disabled property value.voidSets the expr property value.voidsetKind(ContractRuleKind value) Sets the kind property value.voidsetMode(ContractRuleMode value) Sets the mode property value.voidSets the name property value.voidSets the onFailure property value.voidSets the onSuccess property value.voidsetParams(ContractRuleParams value) Sets the params property value.voidSets the tags property value.voidSets the type property value.
-
Constructor Details
-
ContractRule
public ContractRule()Instantiates a newContractRuleand 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
Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -
getDisabled
Gets the disabled property value. Whether the rule is disabled.- Returns:
- a
Boolean
-
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 -
getKind
Gets the kind property value. The rule kind.- Returns:
- a
ContractRuleKind
-
getMode
Gets the mode property value. When the rule is applied.- Returns:
- a
ContractRuleMode
-
getName
Gets the name property value. The rule name.- Returns:
- a
String
-
getOnFailure
Gets the onFailure property value. Action on rule failure.- Returns:
- a
ContractRuleOnFailure
-
getOnSuccess
Gets the onSuccess property value. Action on rule success.- Returns:
- a
ContractRuleOnSuccess
-
getParams
Gets the params property value. Rule parameters.- Returns:
- a
ContractRuleParams
-
getTags
Gets the tags property value. Tags for categorizing the rule. -
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:
serializein interfacecom.microsoft.kiota.serialization.Parsable- Parameters:
writer- Serialization writer to use to serialize this model
-
setAdditionalData
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
Sets the disabled property value. Whether the rule is disabled.- Parameters:
value- Value to set for the disabled property.
-
setExpr
Sets the expr property value. The rule expression.- Parameters:
value- Value to set for the expr property.
-
setKind
Sets the kind property value. The rule kind.- Parameters:
value- Value to set for the kind property.
-
setMode
Sets the mode property value. When the rule is applied.- Parameters:
value- Value to set for the mode property.
-
setName
Sets the name property value. The rule name.- Parameters:
value- Value to set for the name property.
-
setOnFailure
Sets the onFailure property value. Action on rule failure.- Parameters:
value- Value to set for the onFailure property.
-
setOnSuccess
Sets the onSuccess property value. Action on rule success.- Parameters:
value- Value to set for the onSuccess property.
-
setParams
Sets the params property value. Rule parameters.- Parameters:
value- Value to set for the params property.
-
setTags
Sets the tags property value. Tags for categorizing the rule.- Parameters:
value- Value to set for the tags property.
-
setType
Sets the type property value. Rule executor type (CEL, CEL_FIELD, ENCRYPT, etc.).- Parameters:
value- Value to set for the type property.
-