EndpointInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. trafficmanager. fluent. models. EndpointInner
- com.
- com.
public final class EndpointInner
extends ProxyResource
Class representing a Traffic Manager endpoint.
Constructor Summary
Constructor | Description |
---|---|
EndpointInner() |
Creates an instance of Endpoint |
Method Summary
Modifier and Type | Method and Description |
---|---|
Always |
alwaysServe()
Get the always |
List<Endpoint |
customHeaders()
Get the custom |
String |
endpointLocation()
Get the endpoint |
Endpoint |
endpointMonitorStatus()
Get the endpoint |
Endpoint |
endpointStatus()
Get the endpoint |
static
Endpoint |
fromJson(JsonReader jsonReader)
Reads an instance of Endpoint |
List<String> |
geoMapping()
Get the geo |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
Long |
minChildEndpoints()
Get the min |
Long |
minChildEndpointsIPv4()
Get the min |
Long |
minChildEndpointsIPv6()
Get the min |
String |
name()
Get the name property: The name of the resource. |
Long |
priority()
Get the priority property: The priority of this endpoint when using the 'Priority' traffic routing method. |
List<Endpoint |
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. |
String |
target()
Get the target property: The fully-qualified DNS name or IP address of the endpoint. |
String |
targetResourceId()
Get the target |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Long |
weight()
Get the weight property: The weight of this endpoint when using the 'Weighted' traffic routing method. |
Endpoint |
withAlwaysServe(AlwaysServe alwaysServe)
Set the always |
Endpoint |
withCustomHeaders(List<EndpointPropertiesCustomHeadersItem> customHeaders)
Set the custom |
Endpoint |
withEndpointLocation(String endpointLocation)
Set the endpoint |
Endpoint |
withEndpointMonitorStatus(EndpointMonitorStatus endpointMonitorStatus)
Set the endpoint |
Endpoint |
withEndpointStatus(EndpointStatus endpointStatus)
Set the endpoint |
Endpoint |
withGeoMapping(List<String> geoMapping)
Set the geo |
Endpoint |
withId(String id)
Set the id property: Fully qualified resource Id for the resource. |
Endpoint |
withMinChildEndpoints(Long minChildEndpoints)
Set the min |
Endpoint |
withMinChildEndpointsIPv4(Long minChildEndpointsIPv4)
Set the min |
Endpoint |
withMinChildEndpointsIPv6(Long minChildEndpointsIPv6)
Set the min |
Endpoint |
withName(String name)
Set the name property: The name of the resource. |
Endpoint |
withPriority(Long priority)
Set the priority property: The priority of this endpoint when using the 'Priority' traffic routing method. |
Endpoint |
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. |
Endpoint |
withTarget(String target)
Set the target property: The fully-qualified DNS name or IP address of the endpoint. |
Endpoint |
withTargetResourceId(String targetResourceId)
Set the target |
Endpoint |
withType(String type)
Set the type property: The type of the resource. |
Endpoint |
withWeight(Long weight)
Set the weight property: The weight of this endpoint when using the 'Weighted' traffic routing method. |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
EndpointInner
public EndpointInner()
Creates an instance of EndpointInner class.
Method Details
alwaysServe
public AlwaysServe 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:
customHeaders
public List
Get the customHeaders property: List of custom headers.
Returns:
endpointLocation
public String endpointLocation()
Get the endpointLocation property: Specifies the location of the external or nested endpoints when using the 'Performance' traffic routing method.
Returns:
endpointMonitorStatus
public EndpointMonitorStatus endpointMonitorStatus()
Get the endpointMonitorStatus property: The monitoring status of the endpoint.
Returns:
endpointStatus
public EndpointStatus 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:
fromJson
public static EndpointInner fromJson(JsonReader jsonReader)
Reads an instance of EndpointInner from the JsonReader.
Parameters:
Returns:
Throws:
geoMapping
public List
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:
id
public String id()
Get the id property: Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}.
Overrides:
EndpointInner.id()Returns:
minChildEndpoints
public Long 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:
minChildEndpointsIPv4
public Long 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:
minChildEndpointsIPv6
public Long 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:
name
public String name()
Get the name property: The name of the resource.
Overrides:
EndpointInner.name()Returns:
priority
public Long 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:
subnets
public List
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:
target
public String 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:
targetResourceId
public String targetResourceId()
Get the targetResourceId property: The Azure Resource URI of the of the endpoint. Not applicable to endpoints of type 'ExternalEndpoints'.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
EndpointInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource. Ex- Microsoft.Network/trafficManagerProfiles.
Overrides:
EndpointInner.type()Returns:
validate
public void validate()
Validates the instance.
weight
public Long 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:
withAlwaysServe
public EndpointInner 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.
Parameters:
Returns:
withCustomHeaders
public EndpointInner withCustomHeaders(List
Set the customHeaders property: List of custom headers.
Parameters:
Returns:
withEndpointLocation
public EndpointInner withEndpointLocation(String endpointLocation)
Set the endpointLocation property: Specifies the location of the external or nested endpoints when using the 'Performance' traffic routing method.
Parameters:
Returns:
withEndpointMonitorStatus
public EndpointInner withEndpointMonitorStatus(EndpointMonitorStatus endpointMonitorStatus)
Set the endpointMonitorStatus property: The monitoring status of the endpoint.
Parameters:
Returns:
withEndpointStatus
public EndpointInner withEndpointStatus(EndpointStatus endpointStatus)
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:
Returns:
withGeoMapping
public EndpointInner withGeoMapping(List
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:
Returns:
withId
public EndpointInner withId(String id)
Set the id property: Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}.
Parameters:
Returns:
withMinChildEndpoints
public EndpointInner 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. Only applicable to endpoint of type 'NestedEndpoints'.
Parameters:
Returns:
withMinChildEndpointsIPv4
public EndpointInner 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. Only applicable to endpoint of type 'NestedEndpoints'.
Parameters:
Returns:
withMinChildEndpointsIPv6
public EndpointInner 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. Only applicable to endpoint of type 'NestedEndpoints'.
Parameters:
Returns:
withName
public EndpointInner withName(String name)
Set the name property: The name of the resource.
Parameters:
Returns:
withPriority
public EndpointInner withPriority(Long priority)
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:
Returns:
withSubnets
public EndpointInner withSubnets(List
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:
Returns:
withTarget
public EndpointInner withTarget(String target)
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:
Returns:
withTargetResourceId
public EndpointInner withTargetResourceId(String targetResourceId)
Set the targetResourceId property: The Azure Resource URI of the of the endpoint. Not applicable to endpoints of type 'ExternalEndpoints'.
Parameters:
Returns:
withType
public EndpointInner withType(String type)
Set the type property: The type of the resource. Ex- Microsoft.Network/trafficManagerProfiles.
Parameters:
Returns:
withWeight
public EndpointInner withWeight(Long weight)
Set the weight property: The weight of this endpoint when using the 'Weighted' traffic routing method. Possible values are from 1 to 1000.
Parameters:
Returns:
Applies to
Azure SDK for Java