Package odata.msgraph.client.beta.entity
Class MicrosoftTunnelServerLogCollectionResponse
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.MicrosoftTunnelServerLogCollectionResponse
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class MicrosoftTunnelServerLogCollectionResponse extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Entity that stores the server log collection status.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMicrosoftTunnelServerLogCollectionResponse.Builder
-
Field Summary
Fields Modifier and Type Field Description protected OffsetDateTimeendDateTimeprotected OffsetDateTimeexpiryDateTimeprotected OffsetDateTimerequestDateTimeprotected StringserverIdprotected LongsizeInBytesprotected OffsetDateTimestartDateTimeprotected MicrosoftTunnelLogCollectionStatusstatus-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMicrosoftTunnelServerLogCollectionResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MicrosoftTunnelServerLogCollectionResponse.BuilderbuilderMicrosoftTunnelServerLogCollectionResponse()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.ActionRequestReturningNonCollection<String>createDownloadUrl()com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<OffsetDateTime>getEndDateTime()“The end time of the logs collected”Optional<OffsetDateTime>getExpiryDateTime()“The time when the log collection is expired”Optional<OffsetDateTime>getRequestDateTime()“The time when the log collection was requested”Optional<String>getServerId()“ID of the server the log collection is requested upon”Optional<Long>getSizeInBytes()“The size of the logs in bytes”Optional<OffsetDateTime>getStartDateTime()“The start time of the logs collected”Optional<MicrosoftTunnelLogCollectionStatus>getStatus()“The status of log collection”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()MicrosoftTunnelServerLogCollectionResponsepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)MicrosoftTunnelServerLogCollectionResponseput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()MicrosoftTunnelServerLogCollectionResponsewithEndDateTime(OffsetDateTime endDateTime)Returns an immutable copy ofthiswith just theendDateTimefield changed.MicrosoftTunnelServerLogCollectionResponsewithExpiryDateTime(OffsetDateTime expiryDateTime)Returns an immutable copy ofthiswith just theexpiryDateTimefield changed.MicrosoftTunnelServerLogCollectionResponsewithRequestDateTime(OffsetDateTime requestDateTime)Returns an immutable copy ofthiswith just therequestDateTimefield changed.MicrosoftTunnelServerLogCollectionResponsewithServerId(String serverId)Returns an immutable copy ofthiswith just theserverIdfield changed.MicrosoftTunnelServerLogCollectionResponsewithSizeInBytes(Long sizeInBytes)Returns an immutable copy ofthiswith just thesizeInBytesfield changed.MicrosoftTunnelServerLogCollectionResponsewithStartDateTime(OffsetDateTime startDateTime)Returns an immutable copy ofthiswith just thestartDateTimefield changed.MicrosoftTunnelServerLogCollectionResponsewithStatus(MicrosoftTunnelLogCollectionStatus status)Returns an immutable copy ofthiswith just thestatusfield changed.MicrosoftTunnelServerLogCollectionResponsewithUnmappedField(String name, String value)
-
-
-
Field Detail
-
endDateTime
protected OffsetDateTime endDateTime
-
expiryDateTime
protected OffsetDateTime expiryDateTime
-
requestDateTime
protected OffsetDateTime requestDateTime
-
serverId
protected String serverId
-
sizeInBytes
protected Long sizeInBytes
-
startDateTime
protected OffsetDateTime startDateTime
-
status
protected MicrosoftTunnelLogCollectionStatus status
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderMicrosoftTunnelServerLogCollectionResponse
public static MicrosoftTunnelServerLogCollectionResponse.Builder builderMicrosoftTunnelServerLogCollectionResponse()
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
-
getEndDateTime
public Optional<OffsetDateTime> getEndDateTime()
“The end time of the logs collected”- Returns:
- property endDateTime
-
withEndDateTime
public MicrosoftTunnelServerLogCollectionResponse withEndDateTime(OffsetDateTime endDateTime)
Returns an immutable copy ofthiswith just theendDateTimefield 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 end time of the logs collected”
- Parameters:
endDateTime- new value ofendDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theendDateTimefield changed
-
getExpiryDateTime
public Optional<OffsetDateTime> getExpiryDateTime()
“The time when the log collection is expired”- Returns:
- property expiryDateTime
-
withExpiryDateTime
public MicrosoftTunnelServerLogCollectionResponse withExpiryDateTime(OffsetDateTime expiryDateTime)
Returns an immutable copy ofthiswith just theexpiryDateTimefield 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 when the log collection is expired”
- Parameters:
expiryDateTime- new value ofexpiryDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theexpiryDateTimefield changed
-
getRequestDateTime
public Optional<OffsetDateTime> getRequestDateTime()
“The time when the log collection was requested”- Returns:
- property requestDateTime
-
withRequestDateTime
public MicrosoftTunnelServerLogCollectionResponse withRequestDateTime(OffsetDateTime requestDateTime)
Returns an immutable copy ofthiswith just therequestDateTimefield 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 when the log collection was requested”
- Parameters:
requestDateTime- new value ofrequestDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just therequestDateTimefield changed
-
getServerId
public Optional<String> getServerId()
“ID of the server the log collection is requested upon”- Returns:
- property serverId
-
withServerId
public MicrosoftTunnelServerLogCollectionResponse withServerId(String serverId)
Returns an immutable copy ofthiswith just theserverIdfield 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.“ID of the server the log collection is requested upon”
- Parameters:
serverId- new value ofserverIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theserverIdfield changed
-
getSizeInBytes
public Optional<Long> getSizeInBytes()
“The size of the logs in bytes”- Returns:
- property sizeInBytes
-
withSizeInBytes
public MicrosoftTunnelServerLogCollectionResponse withSizeInBytes(Long sizeInBytes)
Returns an immutable copy ofthiswith just thesizeInBytesfield 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 size of the logs in bytes”
- Parameters:
sizeInBytes- new value ofsizeInBytesfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesizeInBytesfield changed
-
getStartDateTime
public Optional<OffsetDateTime> getStartDateTime()
“The start time of the logs collected”- Returns:
- property startDateTime
-
withStartDateTime
public MicrosoftTunnelServerLogCollectionResponse withStartDateTime(OffsetDateTime startDateTime)
Returns an immutable copy ofthiswith just thestartDateTimefield 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 start time of the logs collected”
- Parameters:
startDateTime- new value ofstartDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thestartDateTimefield changed
-
getStatus
public Optional<MicrosoftTunnelLogCollectionStatus> getStatus()
“The status of log collection”- Returns:
- property status
-
withStatus
public MicrosoftTunnelServerLogCollectionResponse withStatus(MicrosoftTunnelLogCollectionStatus status)
Returns an immutable copy ofthiswith just thestatusfield 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 status of log collection”
- Parameters:
status- new value ofstatusfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thestatusfield changed
-
withUnmappedField
public MicrosoftTunnelServerLogCollectionResponse 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 MicrosoftTunnelServerLogCollectionResponse patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public MicrosoftTunnelServerLogCollectionResponse put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
createDownloadUrl
public com.github.davidmoten.odata.client.ActionRequestReturningNonCollection<String> createDownloadUrl()
-
-