com.microsoft.graph.beta.generated.models.PublishedResource 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.util.HashMap;
import java.util.Map;
import java.util.Objects;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class PublishedResource extends Entity implements Parsable {
/**
* Instantiates a new {@link PublishedResource} and sets the default values.
*/
public PublishedResource() {
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 PublishedResource}
*/
@jakarta.annotation.Nonnull
public static PublishedResource createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new PublishedResource();
}
/**
* Gets the agentGroups property value. List of onPremisesAgentGroups that a publishedResource is assigned to. Read-only. Nullable.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getAgentGroups() {
return this.backingStore.get("agentGroups");
}
/**
* Gets the displayName property value. Display Name of the publishedResource.
* @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("agentGroups", (n) -> { this.setAgentGroups(n.getCollectionOfObjectValues(OnPremisesAgentGroup::createFromDiscriminatorValue)); });
deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); });
deserializerMap.put("publishingType", (n) -> { this.setPublishingType(n.getEnumValue(OnPremisesPublishingType::forValue)); });
deserializerMap.put("resourceName", (n) -> { this.setResourceName(n.getStringValue()); });
return deserializerMap;
}
/**
* Gets the publishingType property value. The publishingType property
* @return a {@link OnPremisesPublishingType}
*/
@jakarta.annotation.Nullable
public OnPremisesPublishingType getPublishingType() {
return this.backingStore.get("publishingType");
}
/**
* Gets the resourceName property value. Name of the publishedResource.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getResourceName() {
return this.backingStore.get("resourceName");
}
/**
* 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.writeCollectionOfObjectValues("agentGroups", this.getAgentGroups());
writer.writeStringValue("displayName", this.getDisplayName());
writer.writeEnumValue("publishingType", this.getPublishingType());
writer.writeStringValue("resourceName", this.getResourceName());
}
/**
* Sets the agentGroups property value. List of onPremisesAgentGroups that a publishedResource is assigned to. Read-only. Nullable.
* @param value Value to set for the agentGroups property.
*/
public void setAgentGroups(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("agentGroups", value);
}
/**
* Sets the displayName property value. Display Name of the publishedResource.
* @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 publishingType property value. The publishingType property
* @param value Value to set for the publishingType property.
*/
public void setPublishingType(@jakarta.annotation.Nullable final OnPremisesPublishingType value) {
this.backingStore.set("publishingType", value);
}
/**
* Sets the resourceName property value. Name of the publishedResource.
* @param value Value to set for the resourceName property.
*/
public void setResourceName(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("resourceName", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy