Class ProfileInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.core.management.Resource
-
- com.azure.resourcemanager.trafficmanager.fluent.models.ProfileInner
-
public class ProfileInner extends com.azure.core.management.ResourceClass representing a Traffic Manager profile.
-
-
Constructor Summary
Constructors Constructor Description ProfileInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DnsConfigdnsConfig()Get the dnsConfig property: The DNS settings of the Traffic Manager profile.List<EndpointInner>endpoints()Get the endpoints property: The list of endpoints in the Traffic Manager profile.LongmaxReturn()Get the maxReturn property: Maximum number of endpoints to be returned for MultiValue routing type.MonitorConfigmonitorConfig()Get the monitorConfig property: The endpoint monitoring settings of the Traffic Manager profile.ProfileStatusprofileStatus()Get the profileStatus property: The status of the Traffic Manager profile.TrafficRoutingMethodtrafficRoutingMethod()Get the trafficRoutingMethod property: The traffic routing method of the Traffic Manager profile.TrafficViewEnrollmentStatustrafficViewEnrollmentStatus()Get the trafficViewEnrollmentStatus property: Indicates whether Traffic View is 'Enabled' or 'Disabled' for the Traffic Manager profile.voidvalidate()Validates the instance.ProfileInnerwithDnsConfig(DnsConfig dnsConfig)Set the dnsConfig property: The DNS settings of the Traffic Manager profile.ProfileInnerwithEndpoints(List<EndpointInner> endpoints)Set the endpoints property: The list of endpoints in the Traffic Manager profile.ProfileInnerwithMaxReturn(Long maxReturn)Set the maxReturn property: Maximum number of endpoints to be returned for MultiValue routing type.ProfileInnerwithMonitorConfig(MonitorConfig monitorConfig)Set the monitorConfig property: The endpoint monitoring settings of the Traffic Manager profile.ProfileInnerwithProfileStatus(ProfileStatus profileStatus)Set the profileStatus property: The status of the Traffic Manager profile.ProfileInnerwithTrafficRoutingMethod(TrafficRoutingMethod trafficRoutingMethod)Set the trafficRoutingMethod property: The traffic routing method of the Traffic Manager profile.ProfileInnerwithTrafficViewEnrollmentStatus(TrafficViewEnrollmentStatus trafficViewEnrollmentStatus)Set the trafficViewEnrollmentStatus property: Indicates whether Traffic View is 'Enabled' or 'Disabled' for the Traffic Manager profile.
-
-
-
Method Detail
-
profileStatus
public ProfileStatus profileStatus()
Get the profileStatus property: The status of the Traffic Manager profile.- Returns:
- the profileStatus value.
-
withProfileStatus
public ProfileInner withProfileStatus(ProfileStatus profileStatus)
Set the profileStatus property: The status of the Traffic Manager profile.- Parameters:
profileStatus- the profileStatus value to set.- Returns:
- the ProfileInner object itself.
-
trafficRoutingMethod
public TrafficRoutingMethod trafficRoutingMethod()
Get the trafficRoutingMethod property: The traffic routing method of the Traffic Manager profile.- Returns:
- the trafficRoutingMethod value.
-
withTrafficRoutingMethod
public ProfileInner withTrafficRoutingMethod(TrafficRoutingMethod trafficRoutingMethod)
Set the trafficRoutingMethod property: The traffic routing method of the Traffic Manager profile.- Parameters:
trafficRoutingMethod- the trafficRoutingMethod value to set.- Returns:
- the ProfileInner object itself.
-
dnsConfig
public DnsConfig dnsConfig()
Get the dnsConfig property: The DNS settings of the Traffic Manager profile.- Returns:
- the dnsConfig value.
-
withDnsConfig
public ProfileInner withDnsConfig(DnsConfig dnsConfig)
Set the dnsConfig property: The DNS settings of the Traffic Manager profile.- Parameters:
dnsConfig- the dnsConfig value to set.- Returns:
- the ProfileInner object itself.
-
monitorConfig
public MonitorConfig monitorConfig()
Get the monitorConfig property: The endpoint monitoring settings of the Traffic Manager profile.- Returns:
- the monitorConfig value.
-
withMonitorConfig
public ProfileInner withMonitorConfig(MonitorConfig monitorConfig)
Set the monitorConfig property: The endpoint monitoring settings of the Traffic Manager profile.- Parameters:
monitorConfig- the monitorConfig value to set.- Returns:
- the ProfileInner object itself.
-
endpoints
public List<EndpointInner> endpoints()
Get the endpoints property: The list of endpoints in the Traffic Manager profile.- Returns:
- the endpoints value.
-
withEndpoints
public ProfileInner withEndpoints(List<EndpointInner> endpoints)
Set the endpoints property: The list of endpoints in the Traffic Manager profile.- Parameters:
endpoints- the endpoints value to set.- Returns:
- the ProfileInner object itself.
-
trafficViewEnrollmentStatus
public TrafficViewEnrollmentStatus trafficViewEnrollmentStatus()
Get the trafficViewEnrollmentStatus property: Indicates whether Traffic View is 'Enabled' or 'Disabled' for the Traffic Manager profile. Null, indicates 'Disabled'. Enabling this feature will increase the cost of the Traffic Manage profile.- Returns:
- the trafficViewEnrollmentStatus value.
-
withTrafficViewEnrollmentStatus
public ProfileInner withTrafficViewEnrollmentStatus(TrafficViewEnrollmentStatus trafficViewEnrollmentStatus)
Set the trafficViewEnrollmentStatus property: Indicates whether Traffic View is 'Enabled' or 'Disabled' for the Traffic Manager profile. Null, indicates 'Disabled'. Enabling this feature will increase the cost of the Traffic Manage profile.- Parameters:
trafficViewEnrollmentStatus- the trafficViewEnrollmentStatus value to set.- Returns:
- the ProfileInner object itself.
-
maxReturn
public Long maxReturn()
Get the maxReturn property: Maximum number of endpoints to be returned for MultiValue routing type.- Returns:
- the maxReturn value.
-
withMaxReturn
public ProfileInner withMaxReturn(Long maxReturn)
Set the maxReturn property: Maximum number of endpoints to be returned for MultiValue routing type.- Parameters:
maxReturn- the maxReturn value to set.- Returns:
- the ProfileInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-