Package odata.msgraph.client.beta.entity
Class MicrosoftTunnelHealthThreshold
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.MicrosoftTunnelHealthThreshold
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class MicrosoftTunnelHealthThreshold extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Entity that represents the health thresholds of a health metric.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMicrosoftTunnelHealthThreshold.Builder
-
Field Summary
Fields Modifier and Type Field Description protected LongdefaultHealthyThresholdprotected LongdefaultUnhealthyThresholdprotected LonghealthyThresholdprotected LongunhealthyThreshold-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMicrosoftTunnelHealthThreshold()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MicrosoftTunnelHealthThreshold.BuilderbuilderMicrosoftTunnelHealthThreshold()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.internal.ChangedFieldsgetChangedFields()Optional<Long>getDefaultHealthyThreshold()“The default threshold for being healthy”Optional<Long>getDefaultUnhealthyThreshold()“The default threshold for being unhealthy”Optional<Long>getHealthyThreshold()“The threshold for being healthy”Optional<Long>getUnhealthyThreshold()“The threshold for being unhealthy”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()MicrosoftTunnelHealthThresholdpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)MicrosoftTunnelHealthThresholdput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()MicrosoftTunnelHealthThresholdwithDefaultHealthyThreshold(Long defaultHealthyThreshold)Returns an immutable copy ofthiswith just thedefaultHealthyThresholdfield changed.MicrosoftTunnelHealthThresholdwithDefaultUnhealthyThreshold(Long defaultUnhealthyThreshold)Returns an immutable copy ofthiswith just thedefaultUnhealthyThresholdfield changed.MicrosoftTunnelHealthThresholdwithHealthyThreshold(Long healthyThreshold)Returns an immutable copy ofthiswith just thehealthyThresholdfield changed.MicrosoftTunnelHealthThresholdwithUnhealthyThreshold(Long unhealthyThreshold)Returns an immutable copy ofthiswith just theunhealthyThresholdfield changed.MicrosoftTunnelHealthThresholdwithUnmappedField(String name, String value)
-
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderMicrosoftTunnelHealthThreshold
public static MicrosoftTunnelHealthThreshold.Builder builderMicrosoftTunnelHealthThreshold()
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
-
getDefaultHealthyThreshold
public Optional<Long> getDefaultHealthyThreshold()
“The default threshold for being healthy”- Returns:
- property defaultHealthyThreshold
-
withDefaultHealthyThreshold
public MicrosoftTunnelHealthThreshold withDefaultHealthyThreshold(Long defaultHealthyThreshold)
Returns an immutable copy ofthiswith just thedefaultHealthyThresholdfield 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 default threshold for being healthy”
- Parameters:
defaultHealthyThreshold- new value ofdefaultHealthyThresholdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedefaultHealthyThresholdfield changed
-
getDefaultUnhealthyThreshold
public Optional<Long> getDefaultUnhealthyThreshold()
“The default threshold for being unhealthy”- Returns:
- property defaultUnhealthyThreshold
-
withDefaultUnhealthyThreshold
public MicrosoftTunnelHealthThreshold withDefaultUnhealthyThreshold(Long defaultUnhealthyThreshold)
Returns an immutable copy ofthiswith just thedefaultUnhealthyThresholdfield 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 default threshold for being unhealthy”
- Parameters:
defaultUnhealthyThreshold- new value ofdefaultUnhealthyThresholdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedefaultUnhealthyThresholdfield changed
-
getHealthyThreshold
public Optional<Long> getHealthyThreshold()
“The threshold for being healthy”- Returns:
- property healthyThreshold
-
withHealthyThreshold
public MicrosoftTunnelHealthThreshold withHealthyThreshold(Long healthyThreshold)
Returns an immutable copy ofthiswith just thehealthyThresholdfield 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 threshold for being healthy”
- Parameters:
healthyThreshold- new value ofhealthyThresholdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thehealthyThresholdfield changed
-
getUnhealthyThreshold
public Optional<Long> getUnhealthyThreshold()
“The threshold for being unhealthy”- Returns:
- property unhealthyThreshold
-
withUnhealthyThreshold
public MicrosoftTunnelHealthThreshold withUnhealthyThreshold(Long unhealthyThreshold)
Returns an immutable copy ofthiswith just theunhealthyThresholdfield 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 threshold for being unhealthy”
- Parameters:
unhealthyThreshold- new value ofunhealthyThresholdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theunhealthyThresholdfield changed
-
withUnmappedField
public MicrosoftTunnelHealthThreshold 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 MicrosoftTunnelHealthThreshold patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public MicrosoftTunnelHealthThreshold put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-