odata.msgraph.client.beta.entity.WindowsPhone81SCEPCertificateProfile Maven / Gradle / Ivy
Show all versions of odata-client-msgraph-beta Show documentation
package odata.msgraph.client.beta.entity;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.github.davidmoten.odata.client.ClientException;
import com.github.davidmoten.odata.client.CollectionPage;
import com.github.davidmoten.odata.client.HttpRequestOptions;
import com.github.davidmoten.odata.client.NameValue;
import com.github.davidmoten.odata.client.ODataEntityType;
import com.github.davidmoten.odata.client.RequestOptions;
import com.github.davidmoten.odata.client.UnmappedFields;
import com.github.davidmoten.odata.client.Util;
import com.github.davidmoten.odata.client.annotation.NavigationProperty;
import com.github.davidmoten.odata.client.annotation.Property;
import com.github.davidmoten.odata.client.internal.ChangedFields;
import com.github.davidmoten.odata.client.internal.RequestHelper;
import com.github.davidmoten.odata.client.internal.UnmappedFieldsImpl;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.Object;
import java.lang.Override;
import java.lang.String;
import java.lang.StringBuilder;
import java.time.OffsetDateTime;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Optional;
import odata.msgraph.client.beta.complex.DeviceManagementApplicabilityRuleDeviceMode;
import odata.msgraph.client.beta.complex.DeviceManagementApplicabilityRuleOsEdition;
import odata.msgraph.client.beta.complex.DeviceManagementApplicabilityRuleOsVersion;
import odata.msgraph.client.beta.complex.ExtendedKeyUsage;
import odata.msgraph.client.beta.entity.collection.request.ManagedDeviceCertificateStateCollectionRequest;
import odata.msgraph.client.beta.entity.request.WindowsPhone81TrustedRootCertificateRequest;
import odata.msgraph.client.beta.enums.CertificateValidityPeriodScale;
import odata.msgraph.client.beta.enums.HashAlgorithms;
import odata.msgraph.client.beta.enums.KeySize;
import odata.msgraph.client.beta.enums.KeyStorageProviderOption;
import odata.msgraph.client.beta.enums.KeyUsages;
import odata.msgraph.client.beta.enums.SubjectAlternativeNameType;
import odata.msgraph.client.beta.enums.SubjectNameFormat;
/**
* “Windows Phone 8.1+ SCEP certificate profile”
*/@JsonPropertyOrder({
"@odata.type",
"hashAlgorithm",
"keySize",
"keyUsage",
"scepServerUrls",
"subjectAlternativeNameFormatString",
"subjectNameFormatString"})
@JsonInclude(Include.NON_NULL)
public class WindowsPhone81SCEPCertificateProfile extends WindowsPhone81CertificateProfileBase implements ODataEntityType {
@Override
public String odataTypeName() {
return "microsoft.graph.windowsPhone81SCEPCertificateProfile";
}
@JsonProperty("hashAlgorithm")
protected HashAlgorithms hashAlgorithm;
@JsonProperty("keySize")
protected KeySize keySize;
@JsonProperty("keyUsage")
protected KeyUsages keyUsage;
@JsonProperty("scepServerUrls")
protected List scepServerUrls;
@JsonProperty("scepServerUrls@nextLink")
protected String scepServerUrlsNextLink;
@JsonProperty("subjectAlternativeNameFormatString")
protected String subjectAlternativeNameFormatString;
@JsonProperty("subjectNameFormatString")
protected String subjectNameFormatString;
protected WindowsPhone81SCEPCertificateProfile() {
super();
}
/**
* Returns a builder which is used to create a new
* instance of this class (given that this class is immutable).
*
* @return a new Builder for this class
*/
// Suffix used on builder factory method to differentiate the method
// from static builder methods on superclasses
public static Builder builderWindowsPhone81SCEPCertificateProfile() {
return new Builder();
}
public static final class Builder {
private String id;
private OffsetDateTime createdDateTime;
private String description;
private DeviceManagementApplicabilityRuleDeviceMode deviceManagementApplicabilityRuleDeviceMode;
private DeviceManagementApplicabilityRuleOsEdition deviceManagementApplicabilityRuleOsEdition;
private DeviceManagementApplicabilityRuleOsVersion deviceManagementApplicabilityRuleOsVersion;
private String displayName;
private OffsetDateTime lastModifiedDateTime;
private List roleScopeTagIds;
private String roleScopeTagIdsNextLink;
private Boolean supportsScopeTags;
private Integer version;
private CertificateValidityPeriodScale certificateValidityPeriodScale;
private Integer certificateValidityPeriodValue;
private List extendedKeyUsages;
private String extendedKeyUsagesNextLink;
private KeyStorageProviderOption keyStorageProvider;
private Integer renewalThresholdPercentage;
private SubjectAlternativeNameType subjectAlternativeNameType;
private SubjectNameFormat subjectNameFormat;
private HashAlgorithms hashAlgorithm;
private KeySize keySize;
private KeyUsages keyUsage;
private List scepServerUrls;
private String scepServerUrlsNextLink;
private String subjectAlternativeNameFormatString;
private String subjectNameFormatString;
private ChangedFields changedFields = ChangedFields.EMPTY;
Builder() {
// prevent instantiation
}
public Builder id(String id) {
this.id = id;
this.changedFields = changedFields.add("id");
return this;
}
public Builder createdDateTime(OffsetDateTime createdDateTime) {
this.createdDateTime = createdDateTime;
this.changedFields = changedFields.add("createdDateTime");
return this;
}
public Builder description(String description) {
this.description = description;
this.changedFields = changedFields.add("description");
return this;
}
public Builder deviceManagementApplicabilityRuleDeviceMode(DeviceManagementApplicabilityRuleDeviceMode deviceManagementApplicabilityRuleDeviceMode) {
this.deviceManagementApplicabilityRuleDeviceMode = deviceManagementApplicabilityRuleDeviceMode;
this.changedFields = changedFields.add("deviceManagementApplicabilityRuleDeviceMode");
return this;
}
public Builder deviceManagementApplicabilityRuleOsEdition(DeviceManagementApplicabilityRuleOsEdition deviceManagementApplicabilityRuleOsEdition) {
this.deviceManagementApplicabilityRuleOsEdition = deviceManagementApplicabilityRuleOsEdition;
this.changedFields = changedFields.add("deviceManagementApplicabilityRuleOsEdition");
return this;
}
public Builder deviceManagementApplicabilityRuleOsVersion(DeviceManagementApplicabilityRuleOsVersion deviceManagementApplicabilityRuleOsVersion) {
this.deviceManagementApplicabilityRuleOsVersion = deviceManagementApplicabilityRuleOsVersion;
this.changedFields = changedFields.add("deviceManagementApplicabilityRuleOsVersion");
return this;
}
public Builder displayName(String displayName) {
this.displayName = displayName;
this.changedFields = changedFields.add("displayName");
return this;
}
public Builder lastModifiedDateTime(OffsetDateTime lastModifiedDateTime) {
this.lastModifiedDateTime = lastModifiedDateTime;
this.changedFields = changedFields.add("lastModifiedDateTime");
return this;
}
public Builder roleScopeTagIds(List roleScopeTagIds) {
this.roleScopeTagIds = roleScopeTagIds;
this.changedFields = changedFields.add("roleScopeTagIds");
return this;
}
public Builder roleScopeTagIds(String... roleScopeTagIds) {
return roleScopeTagIds(Arrays.asList(roleScopeTagIds));
}
public Builder roleScopeTagIdsNextLink(String roleScopeTagIdsNextLink) {
this.roleScopeTagIdsNextLink = roleScopeTagIdsNextLink;
this.changedFields = changedFields.add("roleScopeTagIds");
return this;
}
public Builder supportsScopeTags(Boolean supportsScopeTags) {
this.supportsScopeTags = supportsScopeTags;
this.changedFields = changedFields.add("supportsScopeTags");
return this;
}
public Builder version(Integer version) {
this.version = version;
this.changedFields = changedFields.add("version");
return this;
}
public Builder certificateValidityPeriodScale(CertificateValidityPeriodScale certificateValidityPeriodScale) {
this.certificateValidityPeriodScale = certificateValidityPeriodScale;
this.changedFields = changedFields.add("certificateValidityPeriodScale");
return this;
}
public Builder certificateValidityPeriodValue(Integer certificateValidityPeriodValue) {
this.certificateValidityPeriodValue = certificateValidityPeriodValue;
this.changedFields = changedFields.add("certificateValidityPeriodValue");
return this;
}
public Builder extendedKeyUsages(List extendedKeyUsages) {
this.extendedKeyUsages = extendedKeyUsages;
this.changedFields = changedFields.add("extendedKeyUsages");
return this;
}
public Builder extendedKeyUsages(ExtendedKeyUsage... extendedKeyUsages) {
return extendedKeyUsages(Arrays.asList(extendedKeyUsages));
}
public Builder extendedKeyUsagesNextLink(String extendedKeyUsagesNextLink) {
this.extendedKeyUsagesNextLink = extendedKeyUsagesNextLink;
this.changedFields = changedFields.add("extendedKeyUsages");
return this;
}
public Builder keyStorageProvider(KeyStorageProviderOption keyStorageProvider) {
this.keyStorageProvider = keyStorageProvider;
this.changedFields = changedFields.add("keyStorageProvider");
return this;
}
public Builder renewalThresholdPercentage(Integer renewalThresholdPercentage) {
this.renewalThresholdPercentage = renewalThresholdPercentage;
this.changedFields = changedFields.add("renewalThresholdPercentage");
return this;
}
public Builder subjectAlternativeNameType(SubjectAlternativeNameType subjectAlternativeNameType) {
this.subjectAlternativeNameType = subjectAlternativeNameType;
this.changedFields = changedFields.add("subjectAlternativeNameType");
return this;
}
public Builder subjectNameFormat(SubjectNameFormat subjectNameFormat) {
this.subjectNameFormat = subjectNameFormat;
this.changedFields = changedFields.add("subjectNameFormat");
return this;
}
/**
* “SCEP Hash Algorithm.”
*
* @param hashAlgorithm
* value of {@code hashAlgorithm} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder hashAlgorithm(HashAlgorithms hashAlgorithm) {
this.hashAlgorithm = hashAlgorithm;
this.changedFields = changedFields.add("hashAlgorithm");
return this;
}
/**
* “SCEP Key Size.”
*
* @param keySize
* value of {@code keySize} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder keySize(KeySize keySize) {
this.keySize = keySize;
this.changedFields = changedFields.add("keySize");
return this;
}
/**
* “SCEP Key Usage.”
*
* @param keyUsage
* value of {@code keyUsage} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder keyUsage(KeyUsages keyUsage) {
this.keyUsage = keyUsage;
this.changedFields = changedFields.add("keyUsage");
return this;
}
/**
* “SCEP Server Url(s).”
*
* @param scepServerUrls
* value of {@code scepServerUrls} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder scepServerUrls(List scepServerUrls) {
this.scepServerUrls = scepServerUrls;
this.changedFields = changedFields.add("scepServerUrls");
return this;
}
/**
* “SCEP Server Url(s).”
*
* @param scepServerUrls
* value of {@code scepServerUrls} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder scepServerUrls(String... scepServerUrls) {
return scepServerUrls(Arrays.asList(scepServerUrls));
}
/**
* “SCEP Server Url(s).”
*
* @param scepServerUrlsNextLink
* value of {@code scepServerUrls@nextLink} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder scepServerUrlsNextLink(String scepServerUrlsNextLink) {
this.scepServerUrlsNextLink = scepServerUrlsNextLink;
this.changedFields = changedFields.add("scepServerUrls");
return this;
}
/**
* “Custom String that defines the AAD Attribute.”
*
* @param subjectAlternativeNameFormatString
* value of {@code subjectAlternativeNameFormatString} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder subjectAlternativeNameFormatString(String subjectAlternativeNameFormatString) {
this.subjectAlternativeNameFormatString = subjectAlternativeNameFormatString;
this.changedFields = changedFields.add("subjectAlternativeNameFormatString");
return this;
}
/**
* “Custom format to use with SubjectNameFormat = Custom. Example: CN={{EmailAddress
* }},E={{EmailAddress}},OU=Enterprise Users,O=Contoso Corporation,L=Redmond,ST=WA,
* C=US”
*
* @param subjectNameFormatString
* value of {@code subjectNameFormatString} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder subjectNameFormatString(String subjectNameFormatString) {
this.subjectNameFormatString = subjectNameFormatString;
this.changedFields = changedFields.add("subjectNameFormatString");
return this;
}
public WindowsPhone81SCEPCertificateProfile build() {
WindowsPhone81SCEPCertificateProfile _x = new WindowsPhone81SCEPCertificateProfile();
_x.contextPath = null;
_x.changedFields = changedFields;
_x.unmappedFields = new UnmappedFieldsImpl();
_x.odataType = "microsoft.graph.windowsPhone81SCEPCertificateProfile";
_x.id = id;
_x.createdDateTime = createdDateTime;
_x.description = description;
_x.deviceManagementApplicabilityRuleDeviceMode = deviceManagementApplicabilityRuleDeviceMode;
_x.deviceManagementApplicabilityRuleOsEdition = deviceManagementApplicabilityRuleOsEdition;
_x.deviceManagementApplicabilityRuleOsVersion = deviceManagementApplicabilityRuleOsVersion;
_x.displayName = displayName;
_x.lastModifiedDateTime = lastModifiedDateTime;
_x.roleScopeTagIds = roleScopeTagIds;
_x.roleScopeTagIdsNextLink = roleScopeTagIdsNextLink;
_x.supportsScopeTags = supportsScopeTags;
_x.version = version;
_x.certificateValidityPeriodScale = certificateValidityPeriodScale;
_x.certificateValidityPeriodValue = certificateValidityPeriodValue;
_x.extendedKeyUsages = extendedKeyUsages;
_x.extendedKeyUsagesNextLink = extendedKeyUsagesNextLink;
_x.keyStorageProvider = keyStorageProvider;
_x.renewalThresholdPercentage = renewalThresholdPercentage;
_x.subjectAlternativeNameType = subjectAlternativeNameType;
_x.subjectNameFormat = subjectNameFormat;
_x.hashAlgorithm = hashAlgorithm;
_x.keySize = keySize;
_x.keyUsage = keyUsage;
_x.scepServerUrls = scepServerUrls;
_x.scepServerUrlsNextLink = scepServerUrlsNextLink;
_x.subjectAlternativeNameFormatString = subjectAlternativeNameFormatString;
_x.subjectNameFormatString = subjectNameFormatString;
return _x;
}
}
@Override
@JsonIgnore
public ChangedFields getChangedFields() {
return changedFields;
}
@Override
public void postInject(boolean addKeysToContextPath) {
if (addKeysToContextPath && id != null) {
contextPath = contextPath.clearQueries().addKeys(new NameValue(id.toString()));
}
}
/**
* “SCEP Hash Algorithm.”
*
* @return property hashAlgorithm
*/
@Property(name="hashAlgorithm")
@JsonIgnore
public Optional getHashAlgorithm() {
return Optional.ofNullable(hashAlgorithm);
}
/**
* Returns an immutable copy of {@code this} with just the {@code hashAlgorithm}
* field changed. Field description below. The field name is also added to an
* internal map of changed fields in the returned object so that when {@code this.
* patch()} is called (if available)on the returned object only the changed fields
* are submitted.
*
* “SCEP Hash Algorithm.”
*
* @param hashAlgorithm
* new value of {@code hashAlgorithm} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code hashAlgorithm} field changed
*/
public WindowsPhone81SCEPCertificateProfile withHashAlgorithm(HashAlgorithms hashAlgorithm) {
WindowsPhone81SCEPCertificateProfile _x = _copy();
_x.changedFields = changedFields.add("hashAlgorithm");
_x.odataType = Util.nvl(odataType, "microsoft.graph.windowsPhone81SCEPCertificateProfile");
_x.hashAlgorithm = hashAlgorithm;
return _x;
}
/**
* “SCEP Key Size.”
*
* @return property keySize
*/
@Property(name="keySize")
@JsonIgnore
public Optional getKeySize() {
return Optional.ofNullable(keySize);
}
/**
* Returns an immutable copy of {@code this} with just the {@code keySize} field
* changed. Field description below. The field name is also added to an internal
* map of changed fields in the returned object so that when {@code this.patch()}
* is called (if available)on the returned object only the changed fields are
* submitted.
*
* “SCEP Key Size.”
*
* @param keySize
* new value of {@code keySize} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code keySize} field changed
*/
public WindowsPhone81SCEPCertificateProfile withKeySize(KeySize keySize) {
WindowsPhone81SCEPCertificateProfile _x = _copy();
_x.changedFields = changedFields.add("keySize");
_x.odataType = Util.nvl(odataType, "microsoft.graph.windowsPhone81SCEPCertificateProfile");
_x.keySize = keySize;
return _x;
}
/**
* “SCEP Key Usage.”
*
* @return property keyUsage
*/
@Property(name="keyUsage")
@JsonIgnore
public Optional getKeyUsage() {
return Optional.ofNullable(keyUsage);
}
/**
* Returns an immutable copy of {@code this} with just the {@code keyUsage} field
* changed. Field description below. The field name is also added to an internal
* map of changed fields in the returned object so that when {@code this.patch()}
* is called (if available)on the returned object only the changed fields are
* submitted.
*
* “SCEP Key Usage.”
*
* @param keyUsage
* new value of {@code keyUsage} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code keyUsage} field changed
*/
public WindowsPhone81SCEPCertificateProfile withKeyUsage(KeyUsages keyUsage) {
WindowsPhone81SCEPCertificateProfile _x = _copy();
_x.changedFields = changedFields.add("keyUsage");
_x.odataType = Util.nvl(odataType, "microsoft.graph.windowsPhone81SCEPCertificateProfile");
_x.keyUsage = keyUsage;
return _x;
}
/**
* “SCEP Server Url(s).”
*
* @return property scepServerUrls
*/
@Property(name="scepServerUrls")
@JsonIgnore
public CollectionPage getScepServerUrls() {
return new CollectionPage(contextPath, String.class, this.scepServerUrls, Optional.ofNullable(scepServerUrlsNextLink), Collections.emptyList(), HttpRequestOptions.EMPTY);
}
/**
* Returns an immutable copy of {@code this} with just the {@code scepServerUrls}
* field changed. Field description below. The field name is also added to an
* internal map of changed fields in the returned object so that when {@code this.
* patch()} is called (if available)on the returned object only the changed fields
* are submitted.
*
* “SCEP Server Url(s).”
*
* @param scepServerUrls
* new value of {@code scepServerUrls} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code scepServerUrls} field changed
*/
public WindowsPhone81SCEPCertificateProfile withScepServerUrls(List scepServerUrls) {
WindowsPhone81SCEPCertificateProfile _x = _copy();
_x.changedFields = changedFields.add("scepServerUrls");
_x.odataType = Util.nvl(odataType, "microsoft.graph.windowsPhone81SCEPCertificateProfile");
_x.scepServerUrls = scepServerUrls;
return _x;
}
/**
* “SCEP Server Url(s).”
*
* @param options
* specify connect and read timeouts
* @return property scepServerUrls
*/
@Property(name="scepServerUrls")
@JsonIgnore
public CollectionPage getScepServerUrls(HttpRequestOptions options) {
return new CollectionPage(contextPath, String.class, this.scepServerUrls, Optional.ofNullable(scepServerUrlsNextLink), Collections.emptyList(), options);
}
/**
* “Custom String that defines the AAD Attribute.”
*
* @return property subjectAlternativeNameFormatString
*/
@Property(name="subjectAlternativeNameFormatString")
@JsonIgnore
public Optional getSubjectAlternativeNameFormatString() {
return Optional.ofNullable(subjectAlternativeNameFormatString);
}
/**
* Returns an immutable copy of {@code this} with just the {@code
* subjectAlternativeNameFormatString} field changed. Field description below. The
* field name is also added to an internal map of changed fields in the returned
* object so that when {@code this.patch()} is called (if available)on the returned
* object only the changed fields are submitted.
*
* “Custom String that defines the AAD Attribute.”
*
* @param subjectAlternativeNameFormatString
* new value of {@code subjectAlternativeNameFormatString} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code subjectAlternativeNameFormatString} field changed
*/
public WindowsPhone81SCEPCertificateProfile withSubjectAlternativeNameFormatString(String subjectAlternativeNameFormatString) {
WindowsPhone81SCEPCertificateProfile _x = _copy();
_x.changedFields = changedFields.add("subjectAlternativeNameFormatString");
_x.odataType = Util.nvl(odataType, "microsoft.graph.windowsPhone81SCEPCertificateProfile");
_x.subjectAlternativeNameFormatString = subjectAlternativeNameFormatString;
return _x;
}
/**
* “Custom format to use with SubjectNameFormat = Custom. Example: CN={{EmailAddress
* }},E={{EmailAddress}},OU=Enterprise Users,O=Contoso Corporation,L=Redmond,ST=WA,
* C=US”
*
* @return property subjectNameFormatString
*/
@Property(name="subjectNameFormatString")
@JsonIgnore
public Optional getSubjectNameFormatString() {
return Optional.ofNullable(subjectNameFormatString);
}
/**
* Returns an immutable copy of {@code this} with just the {@code
* subjectNameFormatString} field changed. Field description below. The field name
* is also added to an internal map of changed fields in the returned object so
* that when {@code this.patch()} is called (if available)on the returned object
* only the changed fields are submitted.
*
* “Custom format to use with SubjectNameFormat = Custom. Example: CN={{EmailAddress
* }},E={{EmailAddress}},OU=Enterprise Users,O=Contoso Corporation,L=Redmond,ST=WA,
* C=US”
*
* @param subjectNameFormatString
* new value of {@code subjectNameFormatString} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code subjectNameFormatString} field changed
*/
public WindowsPhone81SCEPCertificateProfile withSubjectNameFormatString(String subjectNameFormatString) {
WindowsPhone81SCEPCertificateProfile _x = _copy();
_x.changedFields = changedFields.add("subjectNameFormatString");
_x.odataType = Util.nvl(odataType, "microsoft.graph.windowsPhone81SCEPCertificateProfile");
_x.subjectNameFormatString = subjectNameFormatString;
return _x;
}
public WindowsPhone81SCEPCertificateProfile withUnmappedField(String name, String value) {
WindowsPhone81SCEPCertificateProfile _x = _copy();
_x.setUnmappedField(name, value);
return _x;
}
/**
* “Certificate state for devices”
*
* @return navigational property managedDeviceCertificateStates
*/
@NavigationProperty(name="managedDeviceCertificateStates")
@JsonIgnore
public ManagedDeviceCertificateStateCollectionRequest getManagedDeviceCertificateStates() {
return new ManagedDeviceCertificateStateCollectionRequest(
contextPath.addSegment("managedDeviceCertificateStates"), RequestHelper.getValue(unmappedFields, "managedDeviceCertificateStates"));
}
/**
* “Trusted Root Certificate.”
*
* @return navigational property rootCertificate
*/
@NavigationProperty(name="rootCertificate")
@JsonIgnore
public WindowsPhone81TrustedRootCertificateRequest getRootCertificate() {
return new WindowsPhone81TrustedRootCertificateRequest(contextPath.addSegment("rootCertificate"), RequestHelper.getValue(unmappedFields, "rootCertificate"));
}
@JsonAnySetter
private void setUnmappedField(String name, Object value) {
if (unmappedFields == null) {
unmappedFields = new UnmappedFieldsImpl();
}
unmappedFields.put(name, value);
}
@JsonAnyGetter
private UnmappedFieldsImpl unmappedFields() {
return unmappedFields == null ? UnmappedFieldsImpl.EMPTY : unmappedFields;
}
@Override
public UnmappedFields getUnmappedFields() {
return unmappedFields();
}
/**
* Submits only changed fields for update and returns an
* immutable copy of {@code this} with changed fields reset.
*
* @return a copy of {@code this} with changed fields reset
* @throws ClientException if HTTP response is not as expected
*/
public WindowsPhone81SCEPCertificateProfile patch() {
RequestHelper.patch(this, contextPath, RequestOptions.EMPTY);
WindowsPhone81SCEPCertificateProfile _x = _copy();
_x.changedFields = null;
return _x;
}
/**
* Submits all fields for update and returns an immutable copy of {@code this}
* with changed fields reset (they were ignored anyway).
*
* @return a copy of {@code this} with changed fields reset
* @throws ClientException if HTTP response is not as expected
*/
public WindowsPhone81SCEPCertificateProfile put() {
RequestHelper.put(this, contextPath, RequestOptions.EMPTY);
WindowsPhone81SCEPCertificateProfile _x = _copy();
_x.changedFields = null;
return _x;
}
private WindowsPhone81SCEPCertificateProfile _copy() {
WindowsPhone81SCEPCertificateProfile _x = new WindowsPhone81SCEPCertificateProfile();
_x.contextPath = contextPath;
_x.changedFields = changedFields;
_x.unmappedFields = unmappedFields.copy();
_x.odataType = odataType;
_x.id = id;
_x.createdDateTime = createdDateTime;
_x.description = description;
_x.deviceManagementApplicabilityRuleDeviceMode = deviceManagementApplicabilityRuleDeviceMode;
_x.deviceManagementApplicabilityRuleOsEdition = deviceManagementApplicabilityRuleOsEdition;
_x.deviceManagementApplicabilityRuleOsVersion = deviceManagementApplicabilityRuleOsVersion;
_x.displayName = displayName;
_x.lastModifiedDateTime = lastModifiedDateTime;
_x.roleScopeTagIds = roleScopeTagIds;
_x.supportsScopeTags = supportsScopeTags;
_x.version = version;
_x.certificateValidityPeriodScale = certificateValidityPeriodScale;
_x.certificateValidityPeriodValue = certificateValidityPeriodValue;
_x.extendedKeyUsages = extendedKeyUsages;
_x.keyStorageProvider = keyStorageProvider;
_x.renewalThresholdPercentage = renewalThresholdPercentage;
_x.subjectAlternativeNameType = subjectAlternativeNameType;
_x.subjectNameFormat = subjectNameFormat;
_x.hashAlgorithm = hashAlgorithm;
_x.keySize = keySize;
_x.keyUsage = keyUsage;
_x.scepServerUrls = scepServerUrls;
_x.subjectAlternativeNameFormatString = subjectAlternativeNameFormatString;
_x.subjectNameFormatString = subjectNameFormatString;
return _x;
}
@Override
public String toString() {
StringBuilder b = new StringBuilder();
b.append("WindowsPhone81SCEPCertificateProfile[");
b.append("id=");
b.append(this.id);
b.append(", ");
b.append("createdDateTime=");
b.append(this.createdDateTime);
b.append(", ");
b.append("description=");
b.append(this.description);
b.append(", ");
b.append("deviceManagementApplicabilityRuleDeviceMode=");
b.append(this.deviceManagementApplicabilityRuleDeviceMode);
b.append(", ");
b.append("deviceManagementApplicabilityRuleOsEdition=");
b.append(this.deviceManagementApplicabilityRuleOsEdition);
b.append(", ");
b.append("deviceManagementApplicabilityRuleOsVersion=");
b.append(this.deviceManagementApplicabilityRuleOsVersion);
b.append(", ");
b.append("displayName=");
b.append(this.displayName);
b.append(", ");
b.append("lastModifiedDateTime=");
b.append(this.lastModifiedDateTime);
b.append(", ");
b.append("roleScopeTagIds=");
b.append(this.roleScopeTagIds);
b.append(", ");
b.append("supportsScopeTags=");
b.append(this.supportsScopeTags);
b.append(", ");
b.append("version=");
b.append(this.version);
b.append(", ");
b.append("certificateValidityPeriodScale=");
b.append(this.certificateValidityPeriodScale);
b.append(", ");
b.append("certificateValidityPeriodValue=");
b.append(this.certificateValidityPeriodValue);
b.append(", ");
b.append("extendedKeyUsages=");
b.append(this.extendedKeyUsages);
b.append(", ");
b.append("keyStorageProvider=");
b.append(this.keyStorageProvider);
b.append(", ");
b.append("renewalThresholdPercentage=");
b.append(this.renewalThresholdPercentage);
b.append(", ");
b.append("subjectAlternativeNameType=");
b.append(this.subjectAlternativeNameType);
b.append(", ");
b.append("subjectNameFormat=");
b.append(this.subjectNameFormat);
b.append(", ");
b.append("hashAlgorithm=");
b.append(this.hashAlgorithm);
b.append(", ");
b.append("keySize=");
b.append(this.keySize);
b.append(", ");
b.append("keyUsage=");
b.append(this.keyUsage);
b.append(", ");
b.append("scepServerUrls=");
b.append(this.scepServerUrls);
b.append(", ");
b.append("subjectAlternativeNameFormatString=");
b.append(this.subjectAlternativeNameFormatString);
b.append(", ");
b.append("subjectNameFormatString=");
b.append(this.subjectNameFormatString);
b.append("]");
b.append(",unmappedFields=");
b.append(unmappedFields);
b.append(",odataType=");
b.append(odataType);
return b.toString();
}
}