com.microsoft.graph.beta.generated.models.PlannerTeamsPublicationInfo Maven / Gradle / Ivy
package com.microsoft.graph.beta.models;
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 PlannerTeamsPublicationInfo extends PlannerTaskCreation implements Parsable {
/**
* Instantiates a new {@link PlannerTeamsPublicationInfo} and sets the default values.
*/
public PlannerTeamsPublicationInfo() {
super();
this.setOdataType("#microsoft.graph.plannerTeamsPublicationInfo");
}
/**
* 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 PlannerTeamsPublicationInfo}
*/
@jakarta.annotation.Nonnull
public static PlannerTeamsPublicationInfo createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new PlannerTeamsPublicationInfo();
}
/**
* 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("lastModifiedDateTime", (n) -> { this.setLastModifiedDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); });
deserializerMap.put("publicationId", (n) -> { this.setPublicationId(n.getStringValue()); });
deserializerMap.put("publishedToPlanId", (n) -> { this.setPublishedToPlanId(n.getStringValue()); });
deserializerMap.put("publishingTeamId", (n) -> { this.setPublishingTeamId(n.getStringValue()); });
deserializerMap.put("publishingTeamName", (n) -> { this.setPublishingTeamName(n.getStringValue()); });
return deserializerMap;
}
/**
* Gets the lastModifiedDateTime property value. The date and time when this task was last modified by the publication process. Read-only.
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getLastModifiedDateTime() {
return this.backingStore.get("lastModifiedDateTime");
}
/**
* Gets the @odata.type property value. The OdataType property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getOdataType() {
return this.backingStore.get("odataType");
}
/**
* Gets the publicationId property value. The identifier of the publication. Read-only.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getPublicationId() {
return this.backingStore.get("publicationId");
}
/**
* Gets the publishedToPlanId property value. The identifier of the plannerPlan this task was originally placed in. Read-only.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getPublishedToPlanId() {
return this.backingStore.get("publishedToPlanId");
}
/**
* Gets the publishingTeamId property value. The identifier of the team that initiated the publication process. Read-only.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getPublishingTeamId() {
return this.backingStore.get("publishingTeamId");
}
/**
* Gets the publishingTeamName property value. The display name of the team that initiated the publication process. This display name is for reference only, and might not represent the most up-to-date name of the team. Read-only.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getPublishingTeamName() {
return this.backingStore.get("publishingTeamName");
}
/**
* 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.writeOffsetDateTimeValue("lastModifiedDateTime", this.getLastModifiedDateTime());
writer.writeStringValue("@odata.type", this.getOdataType());
writer.writeStringValue("publicationId", this.getPublicationId());
writer.writeStringValue("publishedToPlanId", this.getPublishedToPlanId());
writer.writeStringValue("publishingTeamId", this.getPublishingTeamId());
writer.writeStringValue("publishingTeamName", this.getPublishingTeamName());
}
/**
* Sets the lastModifiedDateTime property value. The date and time when this task was last modified by the publication process. Read-only.
* @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 @odata.type property value. The OdataType property
* @param value Value to set for the @odata.type property.
*/
public void setOdataType(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("odataType", value);
}
/**
* Sets the publicationId property value. The identifier of the publication. Read-only.
* @param value Value to set for the publicationId property.
*/
public void setPublicationId(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("publicationId", value);
}
/**
* Sets the publishedToPlanId property value. The identifier of the plannerPlan this task was originally placed in. Read-only.
* @param value Value to set for the publishedToPlanId property.
*/
public void setPublishedToPlanId(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("publishedToPlanId", value);
}
/**
* Sets the publishingTeamId property value. The identifier of the team that initiated the publication process. Read-only.
* @param value Value to set for the publishingTeamId property.
*/
public void setPublishingTeamId(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("publishingTeamId", value);
}
/**
* Sets the publishingTeamName property value. The display name of the team that initiated the publication process. This display name is for reference only, and might not represent the most up-to-date name of the team. Read-only.
* @param value Value to set for the publishingTeamName property.
*/
public void setPublishingTeamName(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("publishingTeamName", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy