Class HasPayloadLinkResultItem
- java.lang.Object
-
- odata.msgraph.client.beta.complex.HasPayloadLinkResultItem
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class HasPayloadLinkResultItem extends Object implements com.github.davidmoten.odata.client.ODataType
“A class containing the result of HasPayloadLinks action.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHasPayloadLinkResultItem.Builder
-
Field Summary
Fields Modifier and Type Field Description protected com.github.davidmoten.odata.client.ContextPathcontextPathprotected Stringerrorprotected BooleanhasLinkprotected StringodataTypeprotected StringpayloadIdprotected List<DeviceAndAppManagementAssignmentSource>sourcesprotected StringsourcesNextLinkprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFields
-
Constructor Summary
Constructors Modifier Constructor Description protectedHasPayloadLinkResultItem()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HasPayloadLinkResultItem.Builderbuilder()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<String>getError()“Exception information indicates if check for this item was successful or not.Optional<Boolean>getHasLink()“Indicate whether a payload has any link or not.”Optional<String>getPayloadId()“Key of the Payload, In the format of Guid.”com.github.davidmoten.odata.client.CollectionPage<DeviceAndAppManagementAssignmentSource>getSources()“The reason where the link comes from.”com.github.davidmoten.odata.client.CollectionPage<DeviceAndAppManagementAssignmentSource>getSources(com.github.davidmoten.odata.client.HttpRequestOptions options)“The reason where the link comes from.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()HasPayloadLinkResultItemwithError(String error)Returns an immutable copy ofthiswith just theerrorfield changed.HasPayloadLinkResultItemwithHasLink(Boolean hasLink)Returns an immutable copy ofthiswith just thehasLinkfield changed.HasPayloadLinkResultItemwithPayloadId(String payloadId)Returns an immutable copy ofthiswith just thepayloadIdfield changed.HasPayloadLinkResultItemwithUnmappedField(String name, String value)
-
-
-
Field Detail
-
contextPath
protected com.github.davidmoten.odata.client.ContextPath contextPath
-
unmappedFields
protected com.github.davidmoten.odata.client.internal.UnmappedFieldsImpl unmappedFields
-
odataType
protected String odataType
-
error
protected String error
-
hasLink
protected Boolean hasLink
-
payloadId
protected String payloadId
-
sources
protected List<DeviceAndAppManagementAssignmentSource> sources
-
sourcesNextLink
protected String sourcesNextLink
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType
-
getError
public Optional<String> getError()
“Exception information indicates if check for this item was successful or not. Empty string for no error.”- Returns:
- property error
-
withError
public HasPayloadLinkResultItem withError(String error)
Returns an immutable copy ofthiswith just theerrorfield 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.“Exception information indicates if check for this item was successful or not. Empty string for no error.”
- Parameters:
error- new value oferrorfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theerrorfield changed
-
getHasLink
public Optional<Boolean> getHasLink()
“Indicate whether a payload has any link or not.”- Returns:
- property hasLink
-
withHasLink
public HasPayloadLinkResultItem withHasLink(Boolean hasLink)
Returns an immutable copy ofthiswith just thehasLinkfield 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.“Indicate whether a payload has any link or not.”
- Parameters:
hasLink- new value ofhasLinkfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thehasLinkfield changed
-
getPayloadId
public Optional<String> getPayloadId()
“Key of the Payload, In the format of Guid.”- Returns:
- property payloadId
-
withPayloadId
public HasPayloadLinkResultItem withPayloadId(String payloadId)
Returns an immutable copy ofthiswith just thepayloadIdfield 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.“Key of the Payload, In the format of Guid.”
- Parameters:
payloadId- new value ofpayloadIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepayloadIdfield changed
-
getSources
public com.github.davidmoten.odata.client.CollectionPage<DeviceAndAppManagementAssignmentSource> getSources()
“The reason where the link comes from.”- Returns:
- property sources
-
getSources
public com.github.davidmoten.odata.client.CollectionPage<DeviceAndAppManagementAssignmentSource> getSources(com.github.davidmoten.odata.client.HttpRequestOptions options)
“The reason where the link comes from.”- Parameters:
options- specify connect and read timeouts- Returns:
- property sources
-
withUnmappedField
public HasPayloadLinkResultItem withUnmappedField(String name, String value)
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType
-
builder
public static HasPayloadLinkResultItem.Builder builder()
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
-
-