com.microsoft.graph.beta.generated.models.AndroidForWorkPkcsCertificateProfile 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;
/**
* Android For Work PKCS certificate profile
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class AndroidForWorkPkcsCertificateProfile extends AndroidForWorkCertificateProfileBase implements Parsable {
/**
* Instantiates a new {@link AndroidForWorkPkcsCertificateProfile} and sets the default values.
*/
public AndroidForWorkPkcsCertificateProfile() {
super();
this.setOdataType("#microsoft.graph.androidForWorkPkcsCertificateProfile");
}
/**
* 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 AndroidForWorkPkcsCertificateProfile}
*/
@jakarta.annotation.Nonnull
public static AndroidForWorkPkcsCertificateProfile createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new AndroidForWorkPkcsCertificateProfile();
}
/**
* 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 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>(super.getFieldDeserializers());
deserializerMap.put("certificateTemplateName", (n) -> { this.setCertificateTemplateName(n.getStringValue()); });
deserializerMap.put("certificationAuthority", (n) -> { this.setCertificationAuthority(n.getStringValue()); });
deserializerMap.put("certificationAuthorityName", (n) -> { this.setCertificationAuthorityName(n.getStringValue()); });
deserializerMap.put("managedDeviceCertificateStates", (n) -> { this.setManagedDeviceCertificateStates(n.getCollectionOfObjectValues(ManagedDeviceCertificateState::createFromDiscriminatorValue)); });
deserializerMap.put("subjectAlternativeNameFormatString", (n) -> { this.setSubjectAlternativeNameFormatString(n.getStringValue()); });
return deserializerMap;
}
/**
* Gets the managedDeviceCertificateStates property value. Certificate state for devices. This collection can contain a maximum of 2147483647 elements.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getManagedDeviceCertificateStates() {
return this.backingStore.get("managedDeviceCertificateStates");
}
/**
* Gets the subjectAlternativeNameFormatString property value. Custom String that defines the AAD Attribute.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getSubjectAlternativeNameFormatString() {
return this.backingStore.get("subjectAlternativeNameFormatString");
}
/**
* 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("certificateTemplateName", this.getCertificateTemplateName());
writer.writeStringValue("certificationAuthority", this.getCertificationAuthority());
writer.writeStringValue("certificationAuthorityName", this.getCertificationAuthorityName());
writer.writeCollectionOfObjectValues("managedDeviceCertificateStates", this.getManagedDeviceCertificateStates());
writer.writeStringValue("subjectAlternativeNameFormatString", this.getSubjectAlternativeNameFormatString());
}
/**
* 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 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 managedDeviceCertificateStates property value. Certificate state for devices. This collection can contain a maximum of 2147483647 elements.
* @param value Value to set for the managedDeviceCertificateStates property.
*/
public void setManagedDeviceCertificateStates(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("managedDeviceCertificateStates", value);
}
/**
* Sets the subjectAlternativeNameFormatString property value. Custom String that defines the AAD Attribute.
* @param value Value to set for the subjectAlternativeNameFormatString property.
*/
public void setSubjectAlternativeNameFormatString(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("subjectAlternativeNameFormatString", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy