ProfileInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. trafficmanager. fluent. models. ProfileInner
- com.
- com.
- com.
public final class ProfileInner
extends Resource
Class representing a Traffic Manager profile.
Constructor Summary
Constructor | Description |
---|---|
ProfileInner() |
Creates an instance of Profile |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<Allowed |
allowedEndpointRecordTypes()
Get the allowed |
Dns |
dnsConfig()
Get the dns |
List<Endpoint |
endpoints()
Get the endpoints property: The list of endpoints in the Traffic Manager profile. |
static
Profile |
fromJson(JsonReader jsonReader)
Reads an instance of Profile |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
Long |
maxReturn()
Get the max |
Monitor |
monitorConfig()
Get the monitor |
String |
name()
Get the name property: The name of the resource. |
Profile |
profileStatus()
Get the profile |
Json |
toJson(JsonWriter jsonWriter) |
Traffic |
trafficRoutingMethod()
Get the traffic |
Traffic |
trafficViewEnrollmentStatus()
Get the traffic |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Profile |
withAllowedEndpointRecordTypes(List<AllowedEndpointRecordType> allowedEndpointRecordTypes)
Set the allowed |
Profile |
withDnsConfig(DnsConfig dnsConfig)
Set the dns |
Profile |
withEndpoints(List<EndpointInner> endpoints)
Set the endpoints property: The list of endpoints in the Traffic Manager profile. |
Profile |
withId(String id)
Set the id property: Fully qualified resource Id for the resource. |
Profile |
withLocation(String location) |
Profile |
withMaxReturn(Long maxReturn)
Set the max |
Profile |
withMonitorConfig(MonitorConfig monitorConfig)
Set the monitor |
Profile |
withName(String name)
Set the name property: The name of the resource. |
Profile |
withProfileStatus(ProfileStatus profileStatus)
Set the profile |
Profile |
withTags(Map<String,String> tags) |
Profile |
withTrafficRoutingMethod(TrafficRoutingMethod trafficRoutingMethod)
Set the traffic |
Profile |
withTrafficViewEnrollmentStatus(TrafficViewEnrollmentStatus trafficViewEnrollmentStatus)
Set the traffic |
Profile |
withType(String type)
Set the type property: The type of the resource. |
Methods inherited from ProxyResource
Methods inherited from Resource
Methods inherited from java.lang.Object
Constructor Details
ProfileInner
public ProfileInner()
Creates an instance of ProfileInner class.
Method Details
allowedEndpointRecordTypes
public List
Get the allowedEndpointRecordTypes property: The list of allowed endpoint record types.
Returns:
dnsConfig
public DnsConfig dnsConfig()
Get the dnsConfig property: The DNS settings of the Traffic Manager profile.
Returns:
endpoints
public List
Get the endpoints property: The list of endpoints in the Traffic Manager profile.
Returns:
fromJson
public static ProfileInner fromJson(JsonReader jsonReader)
Reads an instance of ProfileInner from the JsonReader.
Parameters:
Returns:
Throws:
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:
ProfileInner.id()Returns:
maxReturn
public Long maxReturn()
Get the maxReturn property: Maximum number of endpoints to be returned for MultiValue routing type.
Returns:
monitorConfig
public MonitorConfig monitorConfig()
Get the monitorConfig property: The endpoint monitoring settings of the Traffic Manager profile.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
ProfileInner.name()Returns:
profileStatus
public ProfileStatus profileStatus()
Get the profileStatus property: The status of the Traffic Manager profile.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ProfileInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
trafficRoutingMethod
public TrafficRoutingMethod trafficRoutingMethod()
Get the trafficRoutingMethod property: The traffic routing method of the Traffic Manager profile.
Returns:
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:
type
public String type()
Get the type property: The type of the resource. Ex- Microsoft.Network/trafficManagerProfiles.
Overrides:
ProfileInner.type()Returns:
validate
public void validate()
Validates the instance.
withAllowedEndpointRecordTypes
public ProfileInner withAllowedEndpointRecordTypes(List
Set the allowedEndpointRecordTypes property: The list of allowed endpoint record types.
Parameters:
Returns:
withDnsConfig
public ProfileInner withDnsConfig(DnsConfig dnsConfig)
Set the dnsConfig property: The DNS settings of the Traffic Manager profile.
Parameters:
Returns:
withEndpoints
public ProfileInner withEndpoints(List
Set the endpoints property: The list of endpoints in the Traffic Manager profile.
Parameters:
Returns:
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:
Returns:
withLocation
public ProfileInner withLocation(String location)
Overrides:
ProfileInner.withLocation(String location)Parameters:
withMaxReturn
public ProfileInner withMaxReturn(Long maxReturn)
Set the maxReturn property: Maximum number of endpoints to be returned for MultiValue routing type.
Parameters:
Returns:
withMonitorConfig
public ProfileInner withMonitorConfig(MonitorConfig monitorConfig)
Set the monitorConfig property: The endpoint monitoring settings of the Traffic Manager profile.
Parameters:
Returns:
withName
public ProfileInner withName(String name)
Set the name property: The name of the resource.
Parameters:
Returns:
withProfileStatus
public ProfileInner withProfileStatus(ProfileStatus profileStatus)
Set the profileStatus property: The status of the Traffic Manager profile.
Parameters:
Returns:
withTags
public ProfileInner withTags(Map
Overrides:
ProfileInner.withTags(Map<String,String> tags)Parameters:
withTrafficRoutingMethod
public ProfileInner withTrafficRoutingMethod(TrafficRoutingMethod trafficRoutingMethod)
Set the trafficRoutingMethod property: The traffic routing method of the Traffic Manager profile.
Parameters:
Returns:
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:
Returns:
withType
public ProfileInner withType(String type)
Set the type property: The type of the resource. Ex- Microsoft.Network/trafficManagerProfiles.
Parameters:
Returns:
Applies to
Azure SDK for Java