java.lang.Object
com.azure.resourcemanager.trafficmanager.fluent.models.ProfileProperties

public final class ProfileProperties extends Object
Class representing the Traffic Manager profile properties.
  • Constructor Details

    • ProfileProperties

      public ProfileProperties()
      Creates an instance of ProfileProperties class.
  • Method Details

    • profileStatus

      public ProfileStatus profileStatus()
      Get the profileStatus property: The status of the Traffic Manager profile.
      Returns:
      the profileStatus value.
    • withProfileStatus

      public ProfileProperties withProfileStatus(ProfileStatus profileStatus)
      Set the profileStatus property: The status of the Traffic Manager profile.
      Parameters:
      profileStatus - the profileStatus value to set.
      Returns:
      the ProfileProperties 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 ProfileProperties 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 ProfileProperties object itself.
    • dnsConfig

      public DnsConfig dnsConfig()
      Get the dnsConfig property: The DNS settings of the Traffic Manager profile.
      Returns:
      the dnsConfig value.
    • withDnsConfig

      public ProfileProperties withDnsConfig(DnsConfig dnsConfig)
      Set the dnsConfig property: The DNS settings of the Traffic Manager profile.
      Parameters:
      dnsConfig - the dnsConfig value to set.
      Returns:
      the ProfileProperties 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 ProfileProperties 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 ProfileProperties 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 ProfileProperties 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 ProfileProperties 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 ProfileProperties 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 ProfileProperties object itself.
    • allowedEndpointRecordTypes

      public List<AllowedEndpointRecordType> allowedEndpointRecordTypes()
      Get the allowedEndpointRecordTypes property: The list of allowed endpoint record types.
      Returns:
      the allowedEndpointRecordTypes value.
    • withAllowedEndpointRecordTypes

      public ProfileProperties withAllowedEndpointRecordTypes(List<AllowedEndpointRecordType> allowedEndpointRecordTypes)
      Set the allowedEndpointRecordTypes property: The list of allowed endpoint record types.
      Parameters:
      allowedEndpointRecordTypes - the allowedEndpointRecordTypes value to set.
      Returns:
      the ProfileProperties 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 ProfileProperties 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 ProfileProperties object itself.
    • validate

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