Class EndpointInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.resourcemanager.trafficmanager.fluent.models.EndpointInner
-
public class EndpointInner extends com.azure.core.management.ProxyResourceClass representing a Traffic Manager endpoint.
-
-
Constructor Summary
Constructors Constructor Description EndpointInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<EndpointPropertiesCustomHeadersItem>customHeaders()Get the customHeaders property: List of custom headers.StringendpointLocation()Get the endpointLocation property: Specifies the location of the external or nested endpoints when using the 'Performance' traffic routing method.EndpointMonitorStatusendpointMonitorStatus()Get the endpointMonitorStatus property: The monitoring status of the endpoint.EndpointStatusendpointStatus()Get the endpointStatus property: The status of the endpoint.List<String>geoMapping()Get the geoMapping property: The list of countries/regions mapped to this endpoint when using the 'Geographic' traffic routing method.Stringid()Get the id property: Fully qualified resource Id for the resource.LongminChildEndpoints()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.Stringname()Get the name property: The name of the resource.Longpriority()Get the priority property: The priority of this endpoint when using the 'Priority' traffic routing method.List<EndpointPropertiesSubnetsItem>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.Stringtarget()Get the target property: The fully-qualified DNS name or IP address of the endpoint.StringtargetResourceId()Get the targetResourceId property: The Azure Resource URI of the of the endpoint.Stringtype()Get the type property: The type of the resource.voidvalidate()Validates the instance.Longweight()Get the weight property: The weight of this endpoint when using the 'Weighted' traffic routing method.EndpointInnerwithCustomHeaders(List<EndpointPropertiesCustomHeadersItem> customHeaders)Set the customHeaders property: List of custom headers.EndpointInnerwithEndpointLocation(String endpointLocation)Set the endpointLocation property: Specifies the location of the external or nested endpoints when using the 'Performance' traffic routing method.EndpointInnerwithEndpointMonitorStatus(EndpointMonitorStatus endpointMonitorStatus)Set the endpointMonitorStatus property: The monitoring status of the endpoint.EndpointInnerwithEndpointStatus(EndpointStatus endpointStatus)Set the endpointStatus property: The status of the endpoint.EndpointInnerwithGeoMapping(List<String> geoMapping)Set the geoMapping property: The list of countries/regions mapped to this endpoint when using the 'Geographic' traffic routing method.EndpointInnerwithId(String id)Set the id property: Fully qualified resource Id for the resource.EndpointInnerwithMinChildEndpoints(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.EndpointInnerwithName(String name)Set the name property: The name of the resource.EndpointInnerwithPriority(Long priority)Set the priority property: The priority of this endpoint when using the 'Priority' traffic routing method.EndpointInnerwithSubnets(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.EndpointInnerwithTarget(String target)Set the target property: The fully-qualified DNS name or IP address of the endpoint.EndpointInnerwithTargetResourceId(String targetResourceId)Set the targetResourceId property: The Azure Resource URI of the of the endpoint.EndpointInnerwithType(String type)Set the type property: The type of the resource.EndpointInnerwithWeight(Long weight)Set the weight property: The weight of this endpoint when using the 'Weighted' traffic routing method.
-
-
-
Method Detail
-
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:
- the targetResourceId value.
-
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:
targetResourceId- the targetResourceId value to set.- Returns:
- the EndpointInner object itself.
-
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:
- the target value.
-
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:
target- the target value to set.- Returns:
- the EndpointInner object itself.
-
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:
- the endpointStatus value.
-
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:
endpointStatus- the endpointStatus value to set.- Returns:
- the EndpointInner object itself.
-
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:
- the weight value.
-
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:
weight- the weight value to set.- Returns:
- the EndpointInner object itself.
-
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:
- the priority value.
-
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:
priority- the priority value to set.- Returns:
- the EndpointInner object itself.
-
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:
- the endpointLocation value.
-
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:
endpointLocation- the endpointLocation value to set.- Returns:
- the EndpointInner object itself.
-
endpointMonitorStatus
public EndpointMonitorStatus endpointMonitorStatus()
Get the endpointMonitorStatus property: The monitoring status of the endpoint.- Returns:
- the endpointMonitorStatus value.
-
withEndpointMonitorStatus
public EndpointInner withEndpointMonitorStatus(EndpointMonitorStatus endpointMonitorStatus)
Set the endpointMonitorStatus property: The monitoring status of the endpoint.- Parameters:
endpointMonitorStatus- the endpointMonitorStatus value to set.- Returns:
- the EndpointInner object itself.
-
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:
- the minChildEndpoints value.
-
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:
minChildEndpoints- the minChildEndpoints value to set.- Returns:
- the EndpointInner object itself.
-
geoMapping
public List<String> 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
public EndpointInner withGeoMapping(List<String> geoMapping)
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 EndpointInner object itself.
-
subnets
public List<EndpointPropertiesSubnetsItem> 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
public EndpointInner 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. An empty list will match all ranges not covered by other endpoints.- Parameters:
subnets- the subnets value to set.- Returns:
- the EndpointInner object itself.
-
customHeaders
public List<EndpointPropertiesCustomHeadersItem> customHeaders()
Get the customHeaders property: List of custom headers.- Returns:
- the customHeaders value.
-
withCustomHeaders
public EndpointInner withCustomHeaders(List<EndpointPropertiesCustomHeadersItem> customHeaders)
Set the customHeaders property: List of custom headers.- Parameters:
customHeaders- the customHeaders value to set.- Returns:
- the EndpointInner object itself.
-
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:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
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:
id- the id value to set.- Returns:
- the EndpointInner object itself.
-
name
public String name()
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
withName
public EndpointInner withName(String name)
Set the name property: The name of the resource.- Parameters:
name- the name value to set.- Returns:
- the EndpointInner object itself.
-
type
public String type()
Get the type property: The type of the resource. Ex- Microsoft.Network/trafficManagerProfiles.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
withType
public EndpointInner withType(String type)
Set the type property: The type of the resource. Ex- Microsoft.Network/trafficManagerProfiles.- Parameters:
type- the type value to set.- Returns:
- the EndpointInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-