java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.trafficmanager.fluent.models.ProfileInner

public final class ProfileInner extends com.azure.core.management.Resource
Class representing a Traffic Manager profile.
  • Constructor Details

    • ProfileInner

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

    • 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:
      id in class com.azure.core.management.ProxyResource
      Returns:
      the id value.
    • withId

      public ProfileInner 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 ProfileInner object itself.
    • name

      public String name()
      Get the name property: The name of the resource.
      Overrides:
      name in class com.azure.core.management.ProxyResource
      Returns:
      the name value.
    • withName

      public ProfileInner withName(String name)
      Set the name property: The name of the resource.
      Parameters:
      name - the name value to set.
      Returns:
      the ProfileInner object itself.
    • type

      public String type()
      Get the type property: The type of the resource. Ex- Microsoft.Network/trafficManagerProfiles.
      Overrides:
      type in class com.azure.core.management.ProxyResource
      Returns:
      the type value.
    • withType

      public ProfileInner 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 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
    • 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.
    • allowedEndpointRecordTypes

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

      public ProfileInner withAllowedEndpointRecordTypes(List<AllowedEndpointRecordType> allowedEndpointRecordTypes)
      Set the allowedEndpointRecordTypes property: The list of allowed endpoint record types.
      Parameters:
      allowedEndpointRecordTypes - the allowedEndpointRecordTypes 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.