Package odata.msgraph.client.beta.entity
Class AndroidForWorkTrustedRootCertificate
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceConfiguration
-
- odata.msgraph.client.beta.entity.AndroidForWorkTrustedRootCertificate
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class AndroidForWorkTrustedRootCertificate extends DeviceConfiguration implements com.github.davidmoten.odata.client.ODataEntityType
“Android For Work Trusted Root Certificate configuration profile”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAndroidForWorkTrustedRootCertificate.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringcertFileNameprotected byte[]trustedRootCertificate-
Fields inherited from class odata.msgraph.client.beta.entity.DeviceConfiguration
createdDateTime, description, deviceManagementApplicabilityRuleDeviceMode, deviceManagementApplicabilityRuleOsEdition, deviceManagementApplicabilityRuleOsVersion, displayName, lastModifiedDateTime, roleScopeTagIds, roleScopeTagIdsNextLink, supportsScopeTags, version
-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAndroidForWorkTrustedRootCertificate()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AndroidForWorkTrustedRootCertificate.BuilderbuilderAndroidForWorkTrustedRootCertificate()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<String>getCertFileName()“File name to display in UI.”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<byte[]>getTrustedRootCertificate()“Trusted Root Certificate”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()AndroidForWorkTrustedRootCertificatepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)AndroidForWorkTrustedRootCertificateput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()AndroidForWorkTrustedRootCertificatewithCertFileName(String certFileName)Returns an immutable copy ofthiswith just thecertFileNamefield changed.AndroidForWorkTrustedRootCertificatewithTrustedRootCertificate(byte[] trustedRootCertificate)Returns an immutable copy ofthiswith just thetrustedRootCertificatefield changed.AndroidForWorkTrustedRootCertificatewithUnmappedField(String name, String value)-
Methods inherited from class odata.msgraph.client.beta.entity.DeviceConfiguration
assign, assignedAccessMultiModeProfiles, getAssignments, getCreatedDateTime, getDescription, getDeviceManagementApplicabilityRuleDeviceMode, getDeviceManagementApplicabilityRuleOsEdition, getDeviceManagementApplicabilityRuleOsVersion, getDeviceSettingStateSummaries, getDeviceStatuses, getDeviceStatusOverview, getDisplayName, getGroupAssignments, getLastModifiedDateTime, getOmaSettingPlainTextValue, getRoleScopeTagIds, getRoleScopeTagIds, getSupportsScopeTags, getUserStatuses, getUserStatusOverview, getVersion, windowsPrivacyAccessControls, withCreatedDateTime, withDescription, withDeviceManagementApplicabilityRuleDeviceMode, withDeviceManagementApplicabilityRuleOsEdition, withDeviceManagementApplicabilityRuleOsVersion, withDisplayName, withLastModifiedDateTime, withRoleScopeTagIds, withSupportsScopeTags, withVersion
-
-
-
-
Field Detail
-
certFileName
protected String certFileName
-
trustedRootCertificate
protected byte[] trustedRootCertificate
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classDeviceConfiguration
-
builderAndroidForWorkTrustedRootCertificate
public static AndroidForWorkTrustedRootCertificate.Builder builderAndroidForWorkTrustedRootCertificate()
Returns a builder which is used to create a new instance of this class (given that this class is immutable).- Returns:
- a new Builder for this class
-
getChangedFields
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
- Specified by:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classDeviceConfiguration
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classDeviceConfiguration
-
getCertFileName
public Optional<String> getCertFileName()
“File name to display in UI.”- Returns:
- property certFileName
-
withCertFileName
public AndroidForWorkTrustedRootCertificate withCertFileName(String certFileName)
Returns an immutable copy ofthiswith just thecertFileNamefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“File name to display in UI.”
- Parameters:
certFileName- new value ofcertFileNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecertFileNamefield changed
-
getTrustedRootCertificate
public Optional<byte[]> getTrustedRootCertificate()
“Trusted Root Certificate”- Returns:
- property trustedRootCertificate
-
withTrustedRootCertificate
public AndroidForWorkTrustedRootCertificate withTrustedRootCertificate(byte[] trustedRootCertificate)
Returns an immutable copy ofthiswith just thetrustedRootCertificatefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“Trusted Root Certificate”
- Parameters:
trustedRootCertificate- new value oftrustedRootCertificatefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thetrustedRootCertificatefield changed
-
withUnmappedField
public AndroidForWorkTrustedRootCertificate withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classDeviceConfiguration
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classDeviceConfiguration
-
patch
public AndroidForWorkTrustedRootCertificate patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classDeviceConfiguration- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
put
public AndroidForWorkTrustedRootCertificate put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classDeviceConfiguration- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
toString
public String toString()
- Overrides:
toStringin classDeviceConfiguration
-
-