Package odata.msgraph.client.beta.entity
Class EmbeddedSIMActivationCodePool
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.EmbeddedSIMActivationCodePool
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class EmbeddedSIMActivationCodePool extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“A pool represents a group of embedded SIM activation codes.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEmbeddedSIMActivationCodePool.Builder
-
Field Summary
Fields Modifier and Type Field Description protected IntegeractivationCodeCountprotected List<EmbeddedSIMActivationCode>activationCodesprotected StringactivationCodesNextLinkprotected OffsetDateTimecreatedDateTimeprotected StringdisplayNameprotected OffsetDateTimemodifiedDateTime-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedEmbeddedSIMActivationCodePool()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.github.davidmoten.odata.client.CollectionPageNonEntityRequest<EmbeddedSIMActivationCodePoolAssignment>assign(List<EmbeddedSIMActivationCodePoolAssignment> assignments)static EmbeddedSIMActivationCodePool.BuilderbuilderEmbeddedSIMActivationCodePool()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<Integer>getActivationCodeCount()“The total count of activation codes which belong to this pool.”com.github.davidmoten.odata.client.CollectionPage<EmbeddedSIMActivationCode>getActivationCodes()“The activation codes which belong to this pool.com.github.davidmoten.odata.client.CollectionPage<EmbeddedSIMActivationCode>getActivationCodes(com.github.davidmoten.odata.client.HttpRequestOptions options)“The activation codes which belong to this pool.EmbeddedSIMActivationCodePoolAssignmentCollectionRequestgetAssignments()“Navigational property to a list of targets to which this pool is assigned.”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<OffsetDateTime>getCreatedDateTime()“The time the embedded SIM activation code pool was created.EmbeddedSIMDeviceStateCollectionRequestgetDeviceStates()“Navigational property to a list of device states for this pool.”Optional<String>getDisplayName()“The admin defined name of the embedded SIM activation code pool.”Optional<OffsetDateTime>getModifiedDateTime()“The time the embedded SIM activation code pool was last modified.com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()EmbeddedSIMActivationCodePoolpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)EmbeddedSIMActivationCodePoolput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()EmbeddedSIMActivationCodePoolwithActivationCodeCount(Integer activationCodeCount)Returns an immutable copy ofthiswith just theactivationCodeCountfield changed.EmbeddedSIMActivationCodePoolwithActivationCodes(List<EmbeddedSIMActivationCode> activationCodes)Returns an immutable copy ofthiswith just theactivationCodesfield changed.EmbeddedSIMActivationCodePoolwithCreatedDateTime(OffsetDateTime createdDateTime)Returns an immutable copy ofthiswith just thecreatedDateTimefield changed.EmbeddedSIMActivationCodePoolwithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.EmbeddedSIMActivationCodePoolwithModifiedDateTime(OffsetDateTime modifiedDateTime)Returns an immutable copy ofthiswith just themodifiedDateTimefield changed.EmbeddedSIMActivationCodePoolwithUnmappedField(String name, String value)
-
-
-
Field Detail
-
activationCodeCount
protected Integer activationCodeCount
-
activationCodes
protected List<EmbeddedSIMActivationCode> activationCodes
-
activationCodesNextLink
protected String activationCodesNextLink
-
createdDateTime
protected OffsetDateTime createdDateTime
-
displayName
protected String displayName
-
modifiedDateTime
protected OffsetDateTime modifiedDateTime
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderEmbeddedSIMActivationCodePool
public static EmbeddedSIMActivationCodePool.Builder builderEmbeddedSIMActivationCodePool()
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
-
getActivationCodeCount
public Optional<Integer> getActivationCodeCount()
“The total count of activation codes which belong to this pool.”- Returns:
- property activationCodeCount
-
withActivationCodeCount
public EmbeddedSIMActivationCodePool withActivationCodeCount(Integer activationCodeCount)
Returns an immutable copy ofthiswith just theactivationCodeCountfield 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.“The total count of activation codes which belong to this pool.”
- Parameters:
activationCodeCount- new value ofactivationCodeCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theactivationCodeCountfield changed
-
getActivationCodes
public com.github.davidmoten.odata.client.CollectionPage<EmbeddedSIMActivationCode> getActivationCodes()
“The activation codes which belong to this pool. This navigation property is used to post activation codes to Intune but cannot be used to read activation codes from Intune.”- Returns:
- property activationCodes
-
withActivationCodes
public EmbeddedSIMActivationCodePool withActivationCodes(List<EmbeddedSIMActivationCode> activationCodes)
Returns an immutable copy ofthiswith just theactivationCodesfield 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.“The activation codes which belong to this pool. This navigation property is used to post activation codes to Intune but cannot be used to read activation codes from Intune.”
- Parameters:
activationCodes- new value ofactivationCodesfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theactivationCodesfield changed
-
getActivationCodes
public com.github.davidmoten.odata.client.CollectionPage<EmbeddedSIMActivationCode> getActivationCodes(com.github.davidmoten.odata.client.HttpRequestOptions options)
“The activation codes which belong to this pool. This navigation property is used to post activation codes to Intune but cannot be used to read activation codes from Intune.”- Parameters:
options- specify connect and read timeouts- Returns:
- property activationCodes
-
getCreatedDateTime
public Optional<OffsetDateTime> getCreatedDateTime()
“The time the embedded SIM activation code pool was created. Generated service side.”- Returns:
- property createdDateTime
-
withCreatedDateTime
public EmbeddedSIMActivationCodePool 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.“The time the embedded SIM activation code pool was created. Generated service side.”
- Parameters:
createdDateTime- new value ofcreatedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecreatedDateTimefield changed
-
getDisplayName
public Optional<String> getDisplayName()
“The admin defined name of the embedded SIM activation code pool.”- Returns:
- property displayName
-
withDisplayName
public EmbeddedSIMActivationCodePool 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.“The admin defined name of the embedded SIM activation code pool.”
- Parameters:
displayName- new value ofdisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisplayNamefield changed
-
getModifiedDateTime
public Optional<OffsetDateTime> getModifiedDateTime()
“The time the embedded SIM activation code pool was last modified. Updated service side.”- Returns:
- property modifiedDateTime
-
withModifiedDateTime
public EmbeddedSIMActivationCodePool withModifiedDateTime(OffsetDateTime modifiedDateTime)
Returns an immutable copy ofthiswith just themodifiedDateTimefield 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.“The time the embedded SIM activation code pool was last modified. Updated service side.”
- Parameters:
modifiedDateTime- new value ofmodifiedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themodifiedDateTimefield changed
-
withUnmappedField
public EmbeddedSIMActivationCodePool withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getAssignments
public EmbeddedSIMActivationCodePoolAssignmentCollectionRequest getAssignments()
“Navigational property to a list of targets to which this pool is assigned.”- Returns:
- navigational property assignments
-
getDeviceStates
public EmbeddedSIMDeviceStateCollectionRequest getDeviceStates()
“Navigational property to a list of device states for this pool.”- Returns:
- navigational property deviceStates
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public EmbeddedSIMActivationCodePool patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public EmbeddedSIMActivationCodePool put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
assign
public com.github.davidmoten.odata.client.CollectionPageNonEntityRequest<EmbeddedSIMActivationCodePoolAssignment> assign(List<EmbeddedSIMActivationCodePoolAssignment> assignments)
-
-