
com.microsoft.graph.beta.generated.models.industrydata.ReferenceDefinition Maven / Gradle / Ivy
package com.microsoft.graph.beta.models.industrydata;
import com.microsoft.graph.beta.models.Entity;
import com.microsoft.kiota.serialization.Parsable;
import com.microsoft.kiota.serialization.ParseNode;
import com.microsoft.kiota.serialization.SerializationWriter;
import java.time.OffsetDateTime;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class ReferenceDefinition extends Entity implements Parsable {
/**
* Instantiates a new {@link ReferenceDefinition} and sets the default values.
*/
public ReferenceDefinition() {
super();
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @return a {@link ReferenceDefinition}
*/
@jakarta.annotation.Nonnull
public static ReferenceDefinition createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new ReferenceDefinition();
}
/**
* Gets the code property value. The code value for the definition that must be unique within the referenceType.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getCode() {
return this.backingStore.get("code");
}
/**
* Gets the createdDateTime property value. The date and time when the definition was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getCreatedDateTime() {
return this.backingStore.get("createdDateTime");
}
/**
* Gets the displayName property value. A human-readable representation of the reference code value for display in a user interface.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getDisplayName() {
return this.backingStore.get("displayName");
}
/**
* The deserialization information for the current model
* @return a {@link Map>}
*/
@jakarta.annotation.Nonnull
public Map> getFieldDeserializers() {
final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers());
deserializerMap.put("code", (n) -> { this.setCode(n.getStringValue()); });
deserializerMap.put("createdDateTime", (n) -> { this.setCreatedDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); });
deserializerMap.put("isDisabled", (n) -> { this.setIsDisabled(n.getBooleanValue()); });
deserializerMap.put("lastModifiedDateTime", (n) -> { this.setLastModifiedDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("referenceType", (n) -> { this.setReferenceType(n.getStringValue()); });
deserializerMap.put("sortIndex", (n) -> { this.setSortIndex(n.getIntegerValue()); });
deserializerMap.put("source", (n) -> { this.setSource(n.getStringValue()); });
return deserializerMap;
}
/**
* Gets the isDisabled property value. Indicates whether the definition is disabled.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getIsDisabled() {
return this.backingStore.get("isDisabled");
}
/**
* Gets the lastModifiedDateTime property value. The date and time when the definition was most recently changed. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getLastModifiedDateTime() {
return this.backingStore.get("lastModifiedDateTime");
}
/**
* Gets the referenceType property value. The categorical type for a collection of enumerated values.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getReferenceType() {
return this.backingStore.get("referenceType");
}
/**
* Gets the sortIndex property value. The index that specifies the order in which to present the definition to the user. Must be unique within the referenceType.
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getSortIndex() {
return this.backingStore.get("sortIndex");
}
/**
* Gets the source property value. The standards body or organization source which defined the code.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getSource() {
return this.backingStore.get("source");
}
/**
* Serializes information the current object
* @param writer Serialization writer to use to serialize this model
*/
public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) {
Objects.requireNonNull(writer);
super.serialize(writer);
writer.writeStringValue("code", this.getCode());
writer.writeStringValue("displayName", this.getDisplayName());
writer.writeBooleanValue("isDisabled", this.getIsDisabled());
writer.writeStringValue("referenceType", this.getReferenceType());
writer.writeIntegerValue("sortIndex", this.getSortIndex());
}
/**
* Sets the code property value. The code value for the definition that must be unique within the referenceType.
* @param value Value to set for the code property.
*/
public void setCode(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("code", value);
}
/**
* Sets the createdDateTime property value. The date and time when the definition was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
* @param value Value to set for the createdDateTime property.
*/
public void setCreatedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) {
this.backingStore.set("createdDateTime", value);
}
/**
* Sets the displayName property value. A human-readable representation of the reference code value for display in a user interface.
* @param value Value to set for the displayName property.
*/
public void setDisplayName(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("displayName", value);
}
/**
* Sets the isDisabled property value. Indicates whether the definition is disabled.
* @param value Value to set for the isDisabled property.
*/
public void setIsDisabled(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("isDisabled", value);
}
/**
* Sets the lastModifiedDateTime property value. The date and time when the definition was most recently changed. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
* @param value Value to set for the lastModifiedDateTime property.
*/
public void setLastModifiedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) {
this.backingStore.set("lastModifiedDateTime", value);
}
/**
* Sets the referenceType property value. The categorical type for a collection of enumerated values.
* @param value Value to set for the referenceType property.
*/
public void setReferenceType(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("referenceType", value);
}
/**
* Sets the sortIndex property value. The index that specifies the order in which to present the definition to the user. Must be unique within the referenceType.
* @param value Value to set for the sortIndex property.
*/
public void setSortIndex(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("sortIndex", value);
}
/**
* Sets the source property value. The standards body or organization source which defined the code.
* @param value Value to set for the source property.
*/
public void setSource(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("source", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy