com.microsoft.graph.generated.models.security.GitHubOrganizationEvidence Maven / Gradle / Ivy
package com.microsoft.graph.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 GitHubOrganizationEvidence extends AlertEvidence implements Parsable {
/**
* Instantiates a new {@link GitHubOrganizationEvidence} and sets the default values.
*/
public GitHubOrganizationEvidence() {
super();
this.setOdataType("#microsoft.graph.security.gitHubOrganizationEvidence");
}
/**
* 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 GitHubOrganizationEvidence}
*/
@jakarta.annotation.Nonnull
public static GitHubOrganizationEvidence createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new GitHubOrganizationEvidence();
}
/**
* Gets the company property value. The company property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getCompany() {
return this.backingStore.get("company");
}
/**
* Gets the displayName property value. The displayName property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getDisplayName() {
return this.backingStore.get("displayName");
}
/**
* Gets the email property value. The email property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getEmail() {
return this.backingStore.get("email");
}
/**
* 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("company", (n) -> { this.setCompany(n.getStringValue()); });
deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); });
deserializerMap.put("email", (n) -> { this.setEmail(n.getStringValue()); });
deserializerMap.put("login", (n) -> { this.setLogin(n.getStringValue()); });
deserializerMap.put("orgId", (n) -> { this.setOrgId(n.getStringValue()); });
deserializerMap.put("webUrl", (n) -> { this.setWebUrl(n.getStringValue()); });
return deserializerMap;
}
/**
* Gets the login property value. The login property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getLogin() {
return this.backingStore.get("login");
}
/**
* Gets the orgId property value. The orgId property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getOrgId() {
return this.backingStore.get("orgId");
}
/**
* Gets the webUrl property value. The webUrl property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getWebUrl() {
return this.backingStore.get("webUrl");
}
/**
* 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("company", this.getCompany());
writer.writeStringValue("displayName", this.getDisplayName());
writer.writeStringValue("email", this.getEmail());
writer.writeStringValue("login", this.getLogin());
writer.writeStringValue("orgId", this.getOrgId());
writer.writeStringValue("webUrl", this.getWebUrl());
}
/**
* Sets the company property value. The company property
* @param value Value to set for the company property.
*/
public void setCompany(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("company", value);
}
/**
* Sets the displayName property value. The displayName property
* @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 email property value. The email property
* @param value Value to set for the email property.
*/
public void setEmail(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("email", value);
}
/**
* Sets the login property value. The login property
* @param value Value to set for the login property.
*/
public void setLogin(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("login", value);
}
/**
* Sets the orgId property value. The orgId property
* @param value Value to set for the orgId property.
*/
public void setOrgId(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("orgId", value);
}
/**
* Sets the webUrl property value. The webUrl property
* @param value Value to set for the webUrl property.
*/
public void setWebUrl(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("webUrl", value);
}
}