Package odata.msgraph.client.beta.entity
Class AndroidForWorkEnrollmentProfile
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.AndroidForWorkEnrollmentProfile
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class AndroidForWorkEnrollmentProfile extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Enrollment Profile used to enroll COSU devices using Google's Cloud Management.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAndroidForWorkEnrollmentProfile.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringaccountIdprotected OffsetDateTimecreatedDateTimeprotected Stringdescriptionprotected StringdisplayNameprotected IntegerenrolledDeviceCountprotected OffsetDateTimelastModifiedDateTimeprotected StringqrCodeContentprotected MimeContentqrCodeImageprotected OffsetDateTimetokenExpirationDateTimeprotected StringtokenValue-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAndroidForWorkEnrollmentProfile()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AndroidForWorkEnrollmentProfile.BuilderbuilderAndroidForWorkEnrollmentProfile()Returns a builder which is used to create a new instance of this class (given that this class is immutable).com.github.davidmoten.odata.client.ActionRequestNoReturncreateToken(Integer tokenValidityInSeconds)Optional<String>getAccountId()“Tenant GUID the enrollment profile belongs to.”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<OffsetDateTime>getCreatedDateTime()“Date time the enrollment profile was created.”Optional<String>getDescription()“Description for the enrollment profile.”Optional<String>getDisplayName()“Display name for the enrollment profile.”Optional<Integer>getEnrolledDeviceCount()“Total number of Android devices that have enrolled using this enrollment profile .”Optional<OffsetDateTime>getLastModifiedDateTime()“Date time the enrollment profile was last modified.”Optional<String>getQrCodeContent()“String used to generate a QR code for the token.”Optional<MimeContent>getQrCodeImage()“String used to generate a QR code for the token.”Optional<OffsetDateTime>getTokenExpirationDateTime()“Date time the most recently created token will expire.”Optional<String>getTokenValue()“Value of the most recently created token for this enrollment profile.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()AndroidForWorkEnrollmentProfilepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)AndroidForWorkEnrollmentProfileput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).com.github.davidmoten.odata.client.ActionRequestNoReturnrevokeToken()StringtoString()AndroidForWorkEnrollmentProfilewithAccountId(String accountId)Returns an immutable copy ofthiswith just theaccountIdfield changed.AndroidForWorkEnrollmentProfilewithCreatedDateTime(OffsetDateTime createdDateTime)Returns an immutable copy ofthiswith just thecreatedDateTimefield changed.AndroidForWorkEnrollmentProfilewithDescription(String description)Returns an immutable copy ofthiswith just thedescriptionfield changed.AndroidForWorkEnrollmentProfilewithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.AndroidForWorkEnrollmentProfilewithEnrolledDeviceCount(Integer enrolledDeviceCount)Returns an immutable copy ofthiswith just theenrolledDeviceCountfield changed.AndroidForWorkEnrollmentProfilewithLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)Returns an immutable copy ofthiswith just thelastModifiedDateTimefield changed.AndroidForWorkEnrollmentProfilewithQrCodeContent(String qrCodeContent)Returns an immutable copy ofthiswith just theqrCodeContentfield changed.AndroidForWorkEnrollmentProfilewithQrCodeImage(MimeContent qrCodeImage)Returns an immutable copy ofthiswith just theqrCodeImagefield changed.AndroidForWorkEnrollmentProfilewithTokenExpirationDateTime(OffsetDateTime tokenExpirationDateTime)Returns an immutable copy ofthiswith just thetokenExpirationDateTimefield changed.AndroidForWorkEnrollmentProfilewithTokenValue(String tokenValue)Returns an immutable copy ofthiswith just thetokenValuefield changed.AndroidForWorkEnrollmentProfilewithUnmappedField(String name, String value)
-
-
-
Field Detail
-
accountId
protected String accountId
-
createdDateTime
protected OffsetDateTime createdDateTime
-
description
protected String description
-
displayName
protected String displayName
-
enrolledDeviceCount
protected Integer enrolledDeviceCount
-
lastModifiedDateTime
protected OffsetDateTime lastModifiedDateTime
-
qrCodeContent
protected String qrCodeContent
-
qrCodeImage
protected MimeContent qrCodeImage
-
tokenExpirationDateTime
protected OffsetDateTime tokenExpirationDateTime
-
tokenValue
protected String tokenValue
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderAndroidForWorkEnrollmentProfile
public static AndroidForWorkEnrollmentProfile.Builder builderAndroidForWorkEnrollmentProfile()
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 classEntity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classEntity
-
getAccountId
public Optional<String> getAccountId()
“Tenant GUID the enrollment profile belongs to.”- Returns:
- property accountId
-
withAccountId
public AndroidForWorkEnrollmentProfile withAccountId(String accountId)
Returns an immutable copy ofthiswith just theaccountIdfield 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.“Tenant GUID the enrollment profile belongs to.”
- Parameters:
accountId- new value ofaccountIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theaccountIdfield changed
-
getCreatedDateTime
public Optional<OffsetDateTime> getCreatedDateTime()
“Date time the enrollment profile was created.”- Returns:
- property createdDateTime
-
withCreatedDateTime
public AndroidForWorkEnrollmentProfile withCreatedDateTime(OffsetDateTime createdDateTime)
Returns an immutable copy ofthiswith just thecreatedDateTimefield 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.“Date time the enrollment profile was created.”
- Parameters:
createdDateTime- new value ofcreatedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecreatedDateTimefield changed
-
getDescription
public Optional<String> getDescription()
“Description for the enrollment profile.”- Returns:
- property description
-
withDescription
public AndroidForWorkEnrollmentProfile withDescription(String description)
Returns an immutable copy ofthiswith just thedescriptionfield 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.“Description for the enrollment profile.”
- Parameters:
description- new value ofdescriptionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedescriptionfield changed
-
getDisplayName
public Optional<String> getDisplayName()
“Display name for the enrollment profile.”- Returns:
- property displayName
-
withDisplayName
public AndroidForWorkEnrollmentProfile withDisplayName(String displayName)
Returns an immutable copy ofthiswith just thedisplayNamefield 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.“Display name for the enrollment profile.”
- Parameters:
displayName- new value ofdisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisplayNamefield changed
-
getEnrolledDeviceCount
public Optional<Integer> getEnrolledDeviceCount()
“Total number of Android devices that have enrolled using this enrollment profile .”- Returns:
- property enrolledDeviceCount
-
withEnrolledDeviceCount
public AndroidForWorkEnrollmentProfile withEnrolledDeviceCount(Integer enrolledDeviceCount)
Returns an immutable copy ofthiswith just theenrolledDeviceCountfield 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.“Total number of Android devices that have enrolled using this enrollment profile .”
- Parameters:
enrolledDeviceCount- new value ofenrolledDeviceCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theenrolledDeviceCountfield changed
-
getLastModifiedDateTime
public Optional<OffsetDateTime> getLastModifiedDateTime()
“Date time the enrollment profile was last modified.”- Returns:
- property lastModifiedDateTime
-
withLastModifiedDateTime
public AndroidForWorkEnrollmentProfile withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
Returns an immutable copy ofthiswith just thelastModifiedDateTimefield 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.“Date time the enrollment profile was last modified.”
- Parameters:
lastModifiedDateTime- new value oflastModifiedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastModifiedDateTimefield changed
-
getQrCodeContent
public Optional<String> getQrCodeContent()
“String used to generate a QR code for the token.”- Returns:
- property qrCodeContent
-
withQrCodeContent
public AndroidForWorkEnrollmentProfile withQrCodeContent(String qrCodeContent)
Returns an immutable copy ofthiswith just theqrCodeContentfield 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.“String used to generate a QR code for the token.”
- Parameters:
qrCodeContent- new value ofqrCodeContentfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theqrCodeContentfield changed
-
getQrCodeImage
public Optional<MimeContent> getQrCodeImage()
“String used to generate a QR code for the token.”- Returns:
- property qrCodeImage
-
withQrCodeImage
public AndroidForWorkEnrollmentProfile withQrCodeImage(MimeContent qrCodeImage)
Returns an immutable copy ofthiswith just theqrCodeImagefield 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.“String used to generate a QR code for the token.”
- Parameters:
qrCodeImage- new value ofqrCodeImagefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theqrCodeImagefield changed
-
getTokenExpirationDateTime
public Optional<OffsetDateTime> getTokenExpirationDateTime()
“Date time the most recently created token will expire.”- Returns:
- property tokenExpirationDateTime
-
withTokenExpirationDateTime
public AndroidForWorkEnrollmentProfile withTokenExpirationDateTime(OffsetDateTime tokenExpirationDateTime)
Returns an immutable copy ofthiswith just thetokenExpirationDateTimefield 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.“Date time the most recently created token will expire.”
- Parameters:
tokenExpirationDateTime- new value oftokenExpirationDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thetokenExpirationDateTimefield changed
-
getTokenValue
public Optional<String> getTokenValue()
“Value of the most recently created token for this enrollment profile.”- Returns:
- property tokenValue
-
withTokenValue
public AndroidForWorkEnrollmentProfile withTokenValue(String tokenValue)
Returns an immutable copy ofthiswith just thetokenValuefield 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.“Value of the most recently created token for this enrollment profile.”
- Parameters:
tokenValue- new value oftokenValuefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thetokenValuefield changed
-
withUnmappedField
public AndroidForWorkEnrollmentProfile withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public AndroidForWorkEnrollmentProfile patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public AndroidForWorkEnrollmentProfile put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
createToken
public com.github.davidmoten.odata.client.ActionRequestNoReturn createToken(Integer tokenValidityInSeconds)
-
revokeToken
public com.github.davidmoten.odata.client.ActionRequestNoReturn revokeToken()
-
-