com.microsoft.graph.beta.generated.models.security.OauthApplicationEvidence Maven / Gradle / Ivy
package com.microsoft.graph.beta.models.security;
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 OauthApplicationEvidence extends AlertEvidence implements Parsable {
/**
* Instantiates a new {@link OauthApplicationEvidence} and sets the default values.
*/
public OauthApplicationEvidence() {
super();
this.setOdataType("#microsoft.graph.security.oauthApplicationEvidence");
}
/**
* 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 OauthApplicationEvidence}
*/
@jakarta.annotation.Nonnull
public static OauthApplicationEvidence createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new OauthApplicationEvidence();
}
/**
* Gets the appId property value. Unique identifier of the application.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getAppId() {
return this.backingStore.get("appId");
}
/**
* Gets the displayName property value. Name of the application.
* @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("appId", (n) -> { this.setAppId(n.getStringValue()); });
deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); });
deserializerMap.put("objectId", (n) -> { this.setObjectId(n.getStringValue()); });
deserializerMap.put("publisher", (n) -> { this.setPublisher(n.getStringValue()); });
return deserializerMap;
}
/**
* Gets the objectId property value. The unique identifier of the application object in Azure AD.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getObjectId() {
return this.backingStore.get("objectId");
}
/**
* Gets the publisher property value. The name of the application publisher.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getPublisher() {
return this.backingStore.get("publisher");
}
/**
* 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("appId", this.getAppId());
writer.writeStringValue("displayName", this.getDisplayName());
writer.writeStringValue("objectId", this.getObjectId());
writer.writeStringValue("publisher", this.getPublisher());
}
/**
* Sets the appId property value. Unique identifier of the application.
* @param value Value to set for the appId property.
*/
public void setAppId(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("appId", value);
}
/**
* Sets the displayName property value. Name of the application.
* @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 objectId property value. The unique identifier of the application object in Azure AD.
* @param value Value to set for the objectId property.
*/
public void setObjectId(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("objectId", value);
}
/**
* Sets the publisher property value. The name of the application publisher.
* @param value Value to set for the publisher property.
*/
public void setPublisher(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("publisher", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy