![JAR search and dependency download from the Maven repository](/logo.png)
com.microsoft.graph.generated.models.security.SslCertificateEntity Maven / Gradle / Ivy
package com.microsoft.graph.models.security;
import com.microsoft.graph.models.PhysicalAddress;
import com.microsoft.kiota.serialization.AdditionalDataHolder;
import com.microsoft.kiota.serialization.Parsable;
import com.microsoft.kiota.serialization.ParseNode;
import com.microsoft.kiota.serialization.SerializationWriter;
import com.microsoft.kiota.store.BackedModel;
import com.microsoft.kiota.store.BackingStore;
import com.microsoft.kiota.store.BackingStoreFactorySingleton;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class SslCertificateEntity implements AdditionalDataHolder, BackedModel, Parsable {
/**
* Stores model information.
*/
@jakarta.annotation.Nonnull
protected BackingStore backingStore;
/**
* Instantiates a new {@link SslCertificateEntity} and sets the default values.
*/
public SslCertificateEntity() {
this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore();
this.setAdditionalData(new HashMap<>());
}
/**
* 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 SslCertificateEntity}
*/
@jakarta.annotation.Nonnull
public static SslCertificateEntity createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new SslCertificateEntity();
}
/**
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
* @return a {@link Map}
*/
@jakarta.annotation.Nonnull
public Map getAdditionalData() {
Map value = this.backingStore.get("additionalData");
if(value == null) {
value = new HashMap<>();
this.setAdditionalData(value);
}
return value;
}
/**
* Gets the address property value. A physical address of the entity.
* @return a {@link PhysicalAddress}
*/
@jakarta.annotation.Nullable
public PhysicalAddress getAddress() {
return this.backingStore.get("address");
}
/**
* Gets the alternateNames property value. Alternate names for this entity that are part of the certificate.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getAlternateNames() {
return this.backingStore.get("alternateNames");
}
/**
* Gets the backingStore property value. Stores model information.
* @return a {@link BackingStore}
*/
@jakarta.annotation.Nonnull
public BackingStore getBackingStore() {
return this.backingStore;
}
/**
* Gets the commonName property value. A common name for this entity.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getCommonName() {
return this.backingStore.get("commonName");
}
/**
* Gets the email property value. An email for this entity.
* @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>(10);
deserializerMap.put("address", (n) -> { this.setAddress(n.getObjectValue(PhysicalAddress::createFromDiscriminatorValue)); });
deserializerMap.put("alternateNames", (n) -> { this.setAlternateNames(n.getCollectionOfPrimitiveValues(String.class)); });
deserializerMap.put("commonName", (n) -> { this.setCommonName(n.getStringValue()); });
deserializerMap.put("email", (n) -> { this.setEmail(n.getStringValue()); });
deserializerMap.put("givenName", (n) -> { this.setGivenName(n.getStringValue()); });
deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); });
deserializerMap.put("organizationName", (n) -> { this.setOrganizationName(n.getStringValue()); });
deserializerMap.put("organizationUnitName", (n) -> { this.setOrganizationUnitName(n.getStringValue()); });
deserializerMap.put("serialNumber", (n) -> { this.setSerialNumber(n.getStringValue()); });
deserializerMap.put("surname", (n) -> { this.setSurname(n.getStringValue()); });
return deserializerMap;
}
/**
* Gets the givenName property value. If the entity is a person, this is the person's given name (first name).
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getGivenName() {
return this.backingStore.get("givenName");
}
/**
* 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 organizationName property value. If the entity is an organization, this is the name of the organization.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getOrganizationName() {
return this.backingStore.get("organizationName");
}
/**
* Gets the organizationUnitName property value. If the entity is an organization, this communicates if a unit in the organization is named on the entity.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getOrganizationUnitName() {
return this.backingStore.get("organizationUnitName");
}
/**
* Gets the serialNumber property value. A serial number assigned to the entity; usually only available if the entity is the issuer.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getSerialNumber() {
return this.backingStore.get("serialNumber");
}
/**
* Gets the surname property value. If the entity is a person, this is the person's surname (last name).
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getSurname() {
return this.backingStore.get("surname");
}
/**
* 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);
writer.writeObjectValue("address", this.getAddress());
writer.writeCollectionOfPrimitiveValues("alternateNames", this.getAlternateNames());
writer.writeStringValue("commonName", this.getCommonName());
writer.writeStringValue("email", this.getEmail());
writer.writeStringValue("givenName", this.getGivenName());
writer.writeStringValue("@odata.type", this.getOdataType());
writer.writeStringValue("organizationName", this.getOrganizationName());
writer.writeStringValue("organizationUnitName", this.getOrganizationUnitName());
writer.writeStringValue("serialNumber", this.getSerialNumber());
writer.writeStringValue("surname", this.getSurname());
writer.writeAdditionalData(this.getAdditionalData());
}
/**
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
* @param value Value to set for the AdditionalData property.
*/
public void setAdditionalData(@jakarta.annotation.Nullable final Map value) {
this.backingStore.set("additionalData", value);
}
/**
* Sets the address property value. A physical address of the entity.
* @param value Value to set for the address property.
*/
public void setAddress(@jakarta.annotation.Nullable final PhysicalAddress value) {
this.backingStore.set("address", value);
}
/**
* Sets the alternateNames property value. Alternate names for this entity that are part of the certificate.
* @param value Value to set for the alternateNames property.
*/
public void setAlternateNames(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("alternateNames", value);
}
/**
* Sets the backingStore property value. Stores model information.
* @param value Value to set for the backingStore property.
*/
public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) {
Objects.requireNonNull(value);
this.backingStore = value;
}
/**
* Sets the commonName property value. A common name for this entity.
* @param value Value to set for the commonName property.
*/
public void setCommonName(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("commonName", value);
}
/**
* Sets the email property value. An email for this entity.
* @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 givenName property value. If the entity is a person, this is the person's given name (first name).
* @param value Value to set for the givenName property.
*/
public void setGivenName(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("givenName", 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 organizationName property value. If the entity is an organization, this is the name of the organization.
* @param value Value to set for the organizationName property.
*/
public void setOrganizationName(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("organizationName", value);
}
/**
* Sets the organizationUnitName property value. If the entity is an organization, this communicates if a unit in the organization is named on the entity.
* @param value Value to set for the organizationUnitName property.
*/
public void setOrganizationUnitName(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("organizationUnitName", value);
}
/**
* Sets the serialNumber property value. A serial number assigned to the entity; usually only available if the entity is the issuer.
* @param value Value to set for the serialNumber property.
*/
public void setSerialNumber(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("serialNumber", value);
}
/**
* Sets the surname property value. If the entity is a person, this is the person's surname (last name).
* @param value Value to set for the surname property.
*/
public void setSurname(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("surname", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy