Package odata.msgraph.client.beta.entity
Class MicrosoftTunnelServer
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.MicrosoftTunnelServer
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class MicrosoftTunnelServer extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Entity that represents a single Microsoft Tunnel server”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMicrosoftTunnelServer.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringagentImageDigestprotected StringdisplayNameprotected OffsetDateTimelastCheckinDateTimeprotected StringserverImageDigestprotected MicrosoftTunnelServerHealthStatustunnelServerHealthStatus-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMicrosoftTunnelServer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MicrosoftTunnelServer.BuilderbuilderMicrosoftTunnelServer()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.ActionRequestReturningNonCollectionUnwrapped<MicrosoftTunnelServerLogCollectionResponse>createServerLogCollectionRequest(OffsetDateTime startDateTime, OffsetDateTime endDateTime)Optional<String>getAgentImageDigest()“The digest of the current agent image running on this server”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<String>getDisplayName()“The MicrosoftTunnelServer's display name”com.github.davidmoten.odata.client.CollectionPageNonEntityRequest<KeyLongValuePair>getHealthMetrics(List<String> metricNames)com.github.davidmoten.odata.client.CollectionPageNonEntityRequest<MetricTimeSeriesDataPoint>getHealthMetricTimeSeries(String metricName, OffsetDateTime startDateTime, OffsetDateTime endDateTime)Optional<OffsetDateTime>getLastCheckinDateTime()“When the MicrosoftTunnelServer last checked in”Optional<String>getServerImageDigest()“The digest of the current server image running on this server”Optional<MicrosoftTunnelServerHealthStatus>getTunnelServerHealthStatus()“The MicrosoftTunnelServer's health status”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()MicrosoftTunnelServerpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)MicrosoftTunnelServerput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()MicrosoftTunnelServerwithAgentImageDigest(String agentImageDigest)Returns an immutable copy ofthiswith just theagentImageDigestfield changed.MicrosoftTunnelServerwithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.MicrosoftTunnelServerwithLastCheckinDateTime(OffsetDateTime lastCheckinDateTime)Returns an immutable copy ofthiswith just thelastCheckinDateTimefield changed.MicrosoftTunnelServerwithServerImageDigest(String serverImageDigest)Returns an immutable copy ofthiswith just theserverImageDigestfield changed.MicrosoftTunnelServerwithTunnelServerHealthStatus(MicrosoftTunnelServerHealthStatus tunnelServerHealthStatus)Returns an immutable copy ofthiswith just thetunnelServerHealthStatusfield changed.MicrosoftTunnelServerwithUnmappedField(String name, String value)
-
-
-
Field Detail
-
agentImageDigest
protected String agentImageDigest
-
displayName
protected String displayName
-
lastCheckinDateTime
protected OffsetDateTime lastCheckinDateTime
-
serverImageDigest
protected String serverImageDigest
-
tunnelServerHealthStatus
protected MicrosoftTunnelServerHealthStatus tunnelServerHealthStatus
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderMicrosoftTunnelServer
public static MicrosoftTunnelServer.Builder builderMicrosoftTunnelServer()
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
-
getAgentImageDigest
public Optional<String> getAgentImageDigest()
“The digest of the current agent image running on this server”- Returns:
- property agentImageDigest
-
withAgentImageDigest
public MicrosoftTunnelServer withAgentImageDigest(String agentImageDigest)
Returns an immutable copy ofthiswith just theagentImageDigestfield 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 digest of the current agent image running on this server”
- Parameters:
agentImageDigest- new value ofagentImageDigestfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theagentImageDigestfield changed
-
getDisplayName
public Optional<String> getDisplayName()
“The MicrosoftTunnelServer's display name”- Returns:
- property displayName
-
withDisplayName
public MicrosoftTunnelServer 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 MicrosoftTunnelServer's display name”
- Parameters:
displayName- new value ofdisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisplayNamefield changed
-
getLastCheckinDateTime
public Optional<OffsetDateTime> getLastCheckinDateTime()
“When the MicrosoftTunnelServer last checked in”- Returns:
- property lastCheckinDateTime
-
withLastCheckinDateTime
public MicrosoftTunnelServer withLastCheckinDateTime(OffsetDateTime lastCheckinDateTime)
Returns an immutable copy ofthiswith just thelastCheckinDateTimefield 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.“When the MicrosoftTunnelServer last checked in”
- Parameters:
lastCheckinDateTime- new value oflastCheckinDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastCheckinDateTimefield changed
-
getServerImageDigest
public Optional<String> getServerImageDigest()
“The digest of the current server image running on this server”- Returns:
- property serverImageDigest
-
withServerImageDigest
public MicrosoftTunnelServer withServerImageDigest(String serverImageDigest)
Returns an immutable copy ofthiswith just theserverImageDigestfield 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 digest of the current server image running on this server”
- Parameters:
serverImageDigest- new value ofserverImageDigestfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theserverImageDigestfield changed
-
getTunnelServerHealthStatus
public Optional<MicrosoftTunnelServerHealthStatus> getTunnelServerHealthStatus()
“The MicrosoftTunnelServer's health status”- Returns:
- property tunnelServerHealthStatus
-
withTunnelServerHealthStatus
public MicrosoftTunnelServer withTunnelServerHealthStatus(MicrosoftTunnelServerHealthStatus tunnelServerHealthStatus)
Returns an immutable copy ofthiswith just thetunnelServerHealthStatusfield 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 MicrosoftTunnelServer's health status”
- Parameters:
tunnelServerHealthStatus- new value oftunnelServerHealthStatusfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thetunnelServerHealthStatusfield changed
-
withUnmappedField
public MicrosoftTunnelServer 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 MicrosoftTunnelServer patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public MicrosoftTunnelServer put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
createServerLogCollectionRequest
public com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<MicrosoftTunnelServerLogCollectionResponse> createServerLogCollectionRequest(OffsetDateTime startDateTime, OffsetDateTime endDateTime)
-
getHealthMetrics
public com.github.davidmoten.odata.client.CollectionPageNonEntityRequest<KeyLongValuePair> getHealthMetrics(List<String> metricNames)
-
getHealthMetricTimeSeries
public com.github.davidmoten.odata.client.CollectionPageNonEntityRequest<MetricTimeSeriesDataPoint> getHealthMetricTimeSeries(String metricName, OffsetDateTime startDateTime, OffsetDateTime endDateTime)
-
-