Class EndpointProperties
java.lang.Object
com.azure.resourcemanager.trafficmanager.fluent.models.EndpointProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<EndpointProperties>
public final class EndpointProperties
extends Object
implements com.azure.json.JsonSerializable<EndpointProperties>
Class representing a Traffic Manager endpoint properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the alwaysServe property: If Always Serve is enabled, probing for endpoint health will be disabled and endpoints will be included in the traffic routing method.Get the customHeaders property: List of custom headers.Get the endpointLocation property: Specifies the location of the external or nested endpoints when using the 'Performance' traffic routing method.Get the endpointMonitorStatus property: The monitoring status of the endpoint.Get the endpointStatus property: The status of the endpoint.static EndpointPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of EndpointProperties from the JsonReader.Get the geoMapping property: The list of countries/regions mapped to this endpoint when using the 'Geographic' traffic routing method.Get the minChildEndpoints property: The minimum number of endpoints that must be available in the child profile in order for the parent profile to be considered available.Get the minChildEndpointsIPv4 property: The minimum number of IPv4 (DNS record type A) endpoints that must be available in the child profile in order for the parent profile to be considered available.Get the minChildEndpointsIPv6 property: The minimum number of IPv6 (DNS record type AAAA) endpoints that must be available in the child profile in order for the parent profile to be considered available.priority()Get the priority property: The priority of this endpoint when using the 'Priority' traffic routing method.subnets()Get the subnets property: The list of subnets, IP addresses, and/or address ranges mapped to this endpoint when using the 'Subnet' traffic routing method.target()Get the target property: The fully-qualified DNS name or IP address of the endpoint.Get the targetResourceId property: The Azure Resource URI of the of the endpoint.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.weight()Get the weight property: The weight of this endpoint when using the 'Weighted' traffic routing method.withAlwaysServe(AlwaysServe alwaysServe) Set the alwaysServe property: If Always Serve is enabled, probing for endpoint health will be disabled and endpoints will be included in the traffic routing method.withCustomHeaders(List<EndpointPropertiesCustomHeadersItem> customHeaders) Set the customHeaders property: List of custom headers.withEndpointLocation(String endpointLocation) Set the endpointLocation property: Specifies the location of the external or nested endpoints when using the 'Performance' traffic routing method.withEndpointMonitorStatus(EndpointMonitorStatus endpointMonitorStatus) Set the endpointMonitorStatus property: The monitoring status of the endpoint.withEndpointStatus(EndpointStatus endpointStatus) Set the endpointStatus property: The status of the endpoint.withGeoMapping(List<String> geoMapping) Set the geoMapping property: The list of countries/regions mapped to this endpoint when using the 'Geographic' traffic routing method.withMinChildEndpoints(Long minChildEndpoints) Set the minChildEndpoints property: The minimum number of endpoints that must be available in the child profile in order for the parent profile to be considered available.withMinChildEndpointsIPv4(Long minChildEndpointsIPv4) Set the minChildEndpointsIPv4 property: The minimum number of IPv4 (DNS record type A) endpoints that must be available in the child profile in order for the parent profile to be considered available.withMinChildEndpointsIPv6(Long minChildEndpointsIPv6) Set the minChildEndpointsIPv6 property: The minimum number of IPv6 (DNS record type AAAA) endpoints that must be available in the child profile in order for the parent profile to be considered available.withPriority(Long priority) Set the priority property: The priority of this endpoint when using the 'Priority' traffic routing method.withSubnets(List<EndpointPropertiesSubnetsItem> subnets) Set the subnets property: The list of subnets, IP addresses, and/or address ranges mapped to this endpoint when using the 'Subnet' traffic routing method.withTarget(String target) Set the target property: The fully-qualified DNS name or IP address of the endpoint.withTargetResourceId(String targetResourceId) Set the targetResourceId property: The Azure Resource URI of the of the endpoint.withWeight(Long weight) Set the weight property: The weight of this endpoint when using the 'Weighted' traffic routing method.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
EndpointProperties
public EndpointProperties()Creates an instance of EndpointProperties class.
-
-
Method Details
-
targetResourceId
Get the targetResourceId property: The Azure Resource URI of the of the endpoint. Not applicable to endpoints of type 'ExternalEndpoints'.- Returns:
- the targetResourceId value.
-
withTargetResourceId
Set the targetResourceId property: The Azure Resource URI of the of the endpoint. Not applicable to endpoints of type 'ExternalEndpoints'.- Parameters:
targetResourceId- the targetResourceId value to set.- Returns:
- the EndpointProperties object itself.
-
target
Get the target property: The fully-qualified DNS name or IP address of the endpoint. Traffic Manager returns this value in DNS responses to direct traffic to this endpoint.- Returns:
- the target value.
-
withTarget
Set the target property: The fully-qualified DNS name or IP address of the endpoint. Traffic Manager returns this value in DNS responses to direct traffic to this endpoint.- Parameters:
target- the target value to set.- Returns:
- the EndpointProperties object itself.
-
endpointStatus
Get the endpointStatus property: The status of the endpoint. If the endpoint is Enabled, it is probed for endpoint health and is included in the traffic routing method.- Returns:
- the endpointStatus value.
-
withEndpointStatus
Set the endpointStatus property: The status of the endpoint. If the endpoint is Enabled, it is probed for endpoint health and is included in the traffic routing method.- Parameters:
endpointStatus- the endpointStatus value to set.- Returns:
- the EndpointProperties object itself.
-
weight
Get the weight property: The weight of this endpoint when using the 'Weighted' traffic routing method. Possible values are from 1 to 1000.- Returns:
- the weight value.
-
withWeight
Set the weight property: The weight of this endpoint when using the 'Weighted' traffic routing method. Possible values are from 1 to 1000.- Parameters:
weight- the weight value to set.- Returns:
- the EndpointProperties object itself.
-
priority
Get the priority property: The priority of this endpoint when using the 'Priority' traffic routing method. Possible values are from 1 to 1000, lower values represent higher priority. This is an optional parameter. If specified, it must be specified on all endpoints, and no two endpoints can share the same priority value.- Returns:
- the priority value.
-
withPriority
Set the priority property: The priority of this endpoint when using the 'Priority' traffic routing method. Possible values are from 1 to 1000, lower values represent higher priority. This is an optional parameter. If specified, it must be specified on all endpoints, and no two endpoints can share the same priority value.- Parameters:
priority- the priority value to set.- Returns:
- the EndpointProperties object itself.
-
endpointLocation
Get the endpointLocation property: Specifies the location of the external or nested endpoints when using the 'Performance' traffic routing method.- Returns:
- the endpointLocation value.
-
withEndpointLocation
Set the endpointLocation property: Specifies the location of the external or nested endpoints when using the 'Performance' traffic routing method.- Parameters:
endpointLocation- the endpointLocation value to set.- Returns:
- the EndpointProperties object itself.
-
endpointMonitorStatus
Get the endpointMonitorStatus property: The monitoring status of the endpoint.- Returns:
- the endpointMonitorStatus value.
-
withEndpointMonitorStatus
Set the endpointMonitorStatus property: The monitoring status of the endpoint.- Parameters:
endpointMonitorStatus- the endpointMonitorStatus value to set.- Returns:
- the EndpointProperties object itself.
-
minChildEndpoints
Get the minChildEndpoints property: The minimum number of endpoints that must be available in the child profile in order for the parent profile to be considered available. Only applicable to endpoint of type 'NestedEndpoints'.- Returns:
- the minChildEndpoints value.
-
withMinChildEndpoints
Set the minChildEndpoints property: The minimum number of endpoints that must be available in the child profile in order for the parent profile to be considered available. Only applicable to endpoint of type 'NestedEndpoints'.- Parameters:
minChildEndpoints- the minChildEndpoints value to set.- Returns:
- the EndpointProperties object itself.
-
minChildEndpointsIPv4
Get the minChildEndpointsIPv4 property: The minimum number of IPv4 (DNS record type A) endpoints that must be available in the child profile in order for the parent profile to be considered available. Only applicable to endpoint of type 'NestedEndpoints'.- Returns:
- the minChildEndpointsIPv4 value.
-
withMinChildEndpointsIPv4
Set the minChildEndpointsIPv4 property: The minimum number of IPv4 (DNS record type A) endpoints that must be available in the child profile in order for the parent profile to be considered available. Only applicable to endpoint of type 'NestedEndpoints'.- Parameters:
minChildEndpointsIPv4- the minChildEndpointsIPv4 value to set.- Returns:
- the EndpointProperties object itself.
-
minChildEndpointsIPv6
Get the minChildEndpointsIPv6 property: The minimum number of IPv6 (DNS record type AAAA) endpoints that must be available in the child profile in order for the parent profile to be considered available. Only applicable to endpoint of type 'NestedEndpoints'.- Returns:
- the minChildEndpointsIPv6 value.
-
withMinChildEndpointsIPv6
Set the minChildEndpointsIPv6 property: The minimum number of IPv6 (DNS record type AAAA) endpoints that must be available in the child profile in order for the parent profile to be considered available. Only applicable to endpoint of type 'NestedEndpoints'.- Parameters:
minChildEndpointsIPv6- the minChildEndpointsIPv6 value to set.- Returns:
- the EndpointProperties object itself.
-
geoMapping
Get the geoMapping property: The list of countries/regions mapped to this endpoint when using the 'Geographic' traffic routing method. Please consult Traffic Manager Geographic documentation for a full list of accepted values.- Returns:
- the geoMapping value.
-
withGeoMapping
Set the geoMapping property: The list of countries/regions mapped to this endpoint when using the 'Geographic' traffic routing method. Please consult Traffic Manager Geographic documentation for a full list of accepted values.- Parameters:
geoMapping- the geoMapping value to set.- Returns:
- the EndpointProperties object itself.
-
subnets
Get the subnets property: The list of subnets, IP addresses, and/or address ranges mapped to this endpoint when using the 'Subnet' traffic routing method. An empty list will match all ranges not covered by other endpoints.- Returns:
- the subnets value.
-
withSubnets
Set the subnets property: The list of subnets, IP addresses, and/or address ranges mapped to this endpoint when using the 'Subnet' traffic routing method. An empty list will match all ranges not covered by other endpoints.- Parameters:
subnets- the subnets value to set.- Returns:
- the EndpointProperties object itself.
-
customHeaders
Get the customHeaders property: List of custom headers.- Returns:
- the customHeaders value.
-
withCustomHeaders
public EndpointProperties withCustomHeaders(List<EndpointPropertiesCustomHeadersItem> customHeaders) Set the customHeaders property: List of custom headers.- Parameters:
customHeaders- the customHeaders value to set.- Returns:
- the EndpointProperties object itself.
-
alwaysServe
Get the alwaysServe property: If Always Serve is enabled, probing for endpoint health will be disabled and endpoints will be included in the traffic routing method.- Returns:
- the alwaysServe value.
-
withAlwaysServe
Set the alwaysServe property: If Always Serve is enabled, probing for endpoint health will be disabled and endpoints will be included in the traffic routing method.- Parameters:
alwaysServe- the alwaysServe value to set.- Returns:
- the EndpointProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<EndpointProperties>- Throws:
IOException
-
fromJson
Reads an instance of EndpointProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of EndpointProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the EndpointProperties.
-