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.Resource
Class representing a Traffic Manager profile.
  • Constructor Details

    • ProfileInner

      public ProfileInner()
  • Method Details

    • 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.
    • withLocation

      public ProfileInner withLocation(String location)
      Overrides:
      withLocation in class com.azure.core.management.Resource
    • withTags

      public ProfileInner withTags(Map<String,String> tags)
      Overrides:
      withTags in class com.azure.core.management.Resource
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.