com.microsoft.graph.beta.generated.models.MacOSPkcsCertificateProfile 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;
/**
* MacOS PKCS certificate profile.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class MacOSPkcsCertificateProfile extends MacOSCertificateProfileBase implements Parsable {
/**
* Instantiates a new {@link MacOSPkcsCertificateProfile} and sets the default values.
*/
public MacOSPkcsCertificateProfile() {
super();
this.setOdataType("#microsoft.graph.macOSPkcsCertificateProfile");
}
/**
* 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 MacOSPkcsCertificateProfile}
*/
@jakarta.annotation.Nonnull
public static MacOSPkcsCertificateProfile createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new MacOSPkcsCertificateProfile();
}
/**
* Gets the allowAllAppsAccess property value. AllowAllAppsAccess setting
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getAllowAllAppsAccess() {
return this.backingStore.get("allowAllAppsAccess");
}
/**
* Gets the certificateStore property value. Target store certificate. Possible values are: user, machine.
* @return a {@link CertificateStore}
*/
@jakarta.annotation.Nullable
public CertificateStore getCertificateStore() {
return this.backingStore.get("certificateStore");
}
/**
* 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 FQDN.
* @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");
}
/**
* Gets the customSubjectAlternativeNames property value. Custom Subject Alternative Name Settings. This collection can contain a maximum of 500 elements.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getCustomSubjectAlternativeNames() {
return this.backingStore.get("customSubjectAlternativeNames");
}
/**
* Gets the deploymentChannel property value. Indicates the deployment channel type used to deploy the configuration profile. Possible values are deviceChannel, userChannel. Possible values are: deviceChannel, userChannel, unknownFutureValue.
* @return a {@link AppleDeploymentChannel}
*/
@jakarta.annotation.Nullable
public AppleDeploymentChannel getDeploymentChannel() {
return this.backingStore.get("deploymentChannel");
}
/**
* 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("allowAllAppsAccess", (n) -> { this.setAllowAllAppsAccess(n.getBooleanValue()); });
deserializerMap.put("certificateStore", (n) -> { this.setCertificateStore(n.getEnumValue(CertificateStore::forValue)); });
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("customSubjectAlternativeNames", (n) -> { this.setCustomSubjectAlternativeNames(n.getCollectionOfObjectValues(CustomSubjectAlternativeName::createFromDiscriminatorValue)); });
deserializerMap.put("deploymentChannel", (n) -> { this.setDeploymentChannel(n.getEnumValue(AppleDeploymentChannel::forValue)); });
deserializerMap.put("managedDeviceCertificateStates", (n) -> { this.setManagedDeviceCertificateStates(n.getCollectionOfObjectValues(ManagedDeviceCertificateState::createFromDiscriminatorValue)); });
deserializerMap.put("subjectAlternativeNameFormatString", (n) -> { this.setSubjectAlternativeNameFormatString(n.getStringValue()); });
deserializerMap.put("subjectNameFormatString", (n) -> { this.setSubjectNameFormatString(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. Format string that defines the subject alternative name.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getSubjectAlternativeNameFormatString() {
return this.backingStore.get("subjectAlternativeNameFormatString");
}
/**
* Gets the subjectNameFormatString property value. Format string that defines the subject name. Example: CN={{EmailAddress}},E={{EmailAddress}},OU=Enterprise Users,O=Contoso Corporation,L=Redmond,ST=WA,C=US
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getSubjectNameFormatString() {
return this.backingStore.get("subjectNameFormatString");
}
/**
* 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.writeBooleanValue("allowAllAppsAccess", this.getAllowAllAppsAccess());
writer.writeEnumValue("certificateStore", this.getCertificateStore());
writer.writeStringValue("certificateTemplateName", this.getCertificateTemplateName());
writer.writeStringValue("certificationAuthority", this.getCertificationAuthority());
writer.writeStringValue("certificationAuthorityName", this.getCertificationAuthorityName());
writer.writeCollectionOfObjectValues("customSubjectAlternativeNames", this.getCustomSubjectAlternativeNames());
writer.writeEnumValue("deploymentChannel", this.getDeploymentChannel());
writer.writeCollectionOfObjectValues("managedDeviceCertificateStates", this.getManagedDeviceCertificateStates());
writer.writeStringValue("subjectAlternativeNameFormatString", this.getSubjectAlternativeNameFormatString());
writer.writeStringValue("subjectNameFormatString", this.getSubjectNameFormatString());
}
/**
* Sets the allowAllAppsAccess property value. AllowAllAppsAccess setting
* @param value Value to set for the allowAllAppsAccess property.
*/
public void setAllowAllAppsAccess(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("allowAllAppsAccess", value);
}
/**
* Sets the certificateStore property value. Target store certificate. Possible values are: user, machine.
* @param value Value to set for the certificateStore property.
*/
public void setCertificateStore(@jakarta.annotation.Nullable final CertificateStore value) {
this.backingStore.set("certificateStore", 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 certificationAuthority property value. PKCS certification authority FQDN.
* @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 customSubjectAlternativeNames property value. Custom Subject Alternative Name Settings. This collection can contain a maximum of 500 elements.
* @param value Value to set for the customSubjectAlternativeNames property.
*/
public void setCustomSubjectAlternativeNames(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("customSubjectAlternativeNames", value);
}
/**
* Sets the deploymentChannel property value. Indicates the deployment channel type used to deploy the configuration profile. Possible values are deviceChannel, userChannel. Possible values are: deviceChannel, userChannel, unknownFutureValue.
* @param value Value to set for the deploymentChannel property.
*/
public void setDeploymentChannel(@jakarta.annotation.Nullable final AppleDeploymentChannel value) {
this.backingStore.set("deploymentChannel", 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. Format string that defines the subject alternative name.
* @param value Value to set for the subjectAlternativeNameFormatString property.
*/
public void setSubjectAlternativeNameFormatString(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("subjectAlternativeNameFormatString", value);
}
/**
* Sets the subjectNameFormatString property value. Format string that defines the subject name. Example: CN={{EmailAddress}},E={{EmailAddress}},OU=Enterprise Users,O=Contoso Corporation,L=Redmond,ST=WA,C=US
* @param value Value to set for the subjectNameFormatString property.
*/
public void setSubjectNameFormatString(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("subjectNameFormatString", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy