com.microsoft.graph.beta.generated.models.IosEduCertificateSettings Maven / Gradle / Ivy
package com.microsoft.graph.beta.models;
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;
/**
* Trusted Root and PFX certificates for iOS EDU.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class IosEduCertificateSettings implements AdditionalDataHolder, BackedModel, Parsable {
/**
* Stores model information.
*/
@jakarta.annotation.Nonnull
protected BackingStore backingStore;
/**
* Instantiates a new {@link IosEduCertificateSettings} and sets the default values.
*/
public IosEduCertificateSettings() {
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 IosEduCertificateSettings}
*/
@jakarta.annotation.Nonnull
public static IosEduCertificateSettings createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new IosEduCertificateSettings();
}
/**
* 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 backingStore property value. Stores model information.
* @return a {@link BackingStore}
*/
@jakarta.annotation.Nonnull
public BackingStore getBackingStore() {
return this.backingStore;
}
/**
* Gets the certFileName property value. File name to display in UI.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getCertFileName() {
return this.backingStore.get("certFileName");
}
/**
* Gets the certificateTemplateName property value. PKCS Certificate Template Name.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getCertificateTemplateName() {
return this.backingStore.get("certificateTemplateName");
}
/**
* Gets the certificateValidityPeriodScale property value. Certificate Validity Period Options.
* @return a {@link CertificateValidityPeriodScale}
*/
@jakarta.annotation.Nullable
public CertificateValidityPeriodScale getCertificateValidityPeriodScale() {
return this.backingStore.get("certificateValidityPeriodScale");
}
/**
* Gets the certificateValidityPeriodValue property value. Value for the Certificate Validity Period.
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getCertificateValidityPeriodValue() {
return this.backingStore.get("certificateValidityPeriodValue");
}
/**
* Gets the certificationAuthority property value. PKCS Certification Authority.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getCertificationAuthority() {
return this.backingStore.get("certificationAuthority");
}
/**
* Gets the certificationAuthorityName property value. PKCS Certification Authority Name.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getCertificationAuthorityName() {
return this.backingStore.get("certificationAuthorityName");
}
/**
* The deserialization information for the current model
* @return a {@link Map>}
*/
@jakarta.annotation.Nonnull
public Map> getFieldDeserializers() {
final HashMap> deserializerMap = new HashMap>(9);
deserializerMap.put("certFileName", (n) -> { this.setCertFileName(n.getStringValue()); });
deserializerMap.put("certificateTemplateName", (n) -> { this.setCertificateTemplateName(n.getStringValue()); });
deserializerMap.put("certificateValidityPeriodScale", (n) -> { this.setCertificateValidityPeriodScale(n.getEnumValue(CertificateValidityPeriodScale::forValue)); });
deserializerMap.put("certificateValidityPeriodValue", (n) -> { this.setCertificateValidityPeriodValue(n.getIntegerValue()); });
deserializerMap.put("certificationAuthority", (n) -> { this.setCertificationAuthority(n.getStringValue()); });
deserializerMap.put("certificationAuthorityName", (n) -> { this.setCertificationAuthorityName(n.getStringValue()); });
deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); });
deserializerMap.put("renewalThresholdPercentage", (n) -> { this.setRenewalThresholdPercentage(n.getIntegerValue()); });
deserializerMap.put("trustedRootCertificate", (n) -> { this.setTrustedRootCertificate(n.getByteArrayValue()); });
return deserializerMap;
}
/**
* 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 renewalThresholdPercentage property value. Certificate renewal threshold percentage. Valid values 1 to 99
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getRenewalThresholdPercentage() {
return this.backingStore.get("renewalThresholdPercentage");
}
/**
* Gets the trustedRootCertificate property value. Trusted Root Certificate.
* @return a {@link byte[]}
*/
@jakarta.annotation.Nullable
public byte[] getTrustedRootCertificate() {
return this.backingStore.get("trustedRootCertificate");
}
/**
* 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.writeStringValue("certFileName", this.getCertFileName());
writer.writeStringValue("certificateTemplateName", this.getCertificateTemplateName());
writer.writeEnumValue("certificateValidityPeriodScale", this.getCertificateValidityPeriodScale());
writer.writeIntegerValue("certificateValidityPeriodValue", this.getCertificateValidityPeriodValue());
writer.writeStringValue("certificationAuthority", this.getCertificationAuthority());
writer.writeStringValue("certificationAuthorityName", this.getCertificationAuthorityName());
writer.writeStringValue("@odata.type", this.getOdataType());
writer.writeIntegerValue("renewalThresholdPercentage", this.getRenewalThresholdPercentage());
writer.writeByteArrayValue("trustedRootCertificate", this.getTrustedRootCertificate());
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 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 certFileName property value. File name to display in UI.
* @param value Value to set for the certFileName property.
*/
public void setCertFileName(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("certFileName", value);
}
/**
* Sets the certificateTemplateName property value. PKCS Certificate Template Name.
* @param value Value to set for the certificateTemplateName property.
*/
public void setCertificateTemplateName(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("certificateTemplateName", value);
}
/**
* Sets the certificateValidityPeriodScale property value. Certificate Validity Period Options.
* @param value Value to set for the certificateValidityPeriodScale property.
*/
public void setCertificateValidityPeriodScale(@jakarta.annotation.Nullable final CertificateValidityPeriodScale value) {
this.backingStore.set("certificateValidityPeriodScale", value);
}
/**
* Sets the certificateValidityPeriodValue property value. Value for the Certificate Validity Period.
* @param value Value to set for the certificateValidityPeriodValue property.
*/
public void setCertificateValidityPeriodValue(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("certificateValidityPeriodValue", value);
}
/**
* Sets the certificationAuthority property value. PKCS Certification Authority.
* @param value Value to set for the certificationAuthority property.
*/
public void setCertificationAuthority(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("certificationAuthority", value);
}
/**
* Sets the certificationAuthorityName property value. PKCS Certification Authority Name.
* @param value Value to set for the certificationAuthorityName property.
*/
public void setCertificationAuthorityName(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("certificationAuthorityName", 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 renewalThresholdPercentage property value. Certificate renewal threshold percentage. Valid values 1 to 99
* @param value Value to set for the renewalThresholdPercentage property.
*/
public void setRenewalThresholdPercentage(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("renewalThresholdPercentage", value);
}
/**
* Sets the trustedRootCertificate property value. Trusted Root Certificate.
* @param value Value to set for the trustedRootCertificate property.
*/
public void setTrustedRootCertificate(@jakarta.annotation.Nullable final byte[] value) {
this.backingStore.set("trustedRootCertificate", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy