다음을 통해 공유


ProfileInner Class

public final class ProfileInner
extends Resource

Class representing a Traffic Manager profile.

Constructor Summary

Constructor Description
ProfileInner()

Creates an instance of ProfileInner class.

Method Summary

Modifier and Type Method and Description
List<AllowedEndpointRecordType> allowedEndpointRecordTypes()

Get the allowedEndpointRecordTypes property: The list of allowed endpoint record types.

DnsConfig dnsConfig()

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.

static ProfileInner fromJson(JsonReader jsonReader)

Reads an instance of ProfileInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

Long maxReturn()

Get the maxReturn property: Maximum number of endpoints to be returned for MultiValue routing type.

MonitorConfig monitorConfig()

Get the monitorConfig property: The endpoint monitoring settings of the Traffic Manager profile.

String name()

Get the name property: The name of the resource.

ProfileStatus profileStatus()

Get the profileStatus property: The status of the Traffic Manager profile.

JsonWriter toJson(JsonWriter jsonWriter)
TrafficRoutingMethod trafficRoutingMethod()

Get the trafficRoutingMethod property: The traffic routing method of the Traffic Manager profile.

TrafficViewEnrollmentStatus trafficViewEnrollmentStatus()

Get the trafficViewEnrollmentStatus property: Indicates whether Traffic View is 'Enabled' or 'Disabled' for the Traffic Manager profile.

String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

ProfileInner withAllowedEndpointRecordTypes(List<AllowedEndpointRecordType> allowedEndpointRecordTypes)

Set the allowedEndpointRecordTypes property: The list of allowed endpoint record types.

ProfileInner withDnsConfig(DnsConfig dnsConfig)

Set the dnsConfig property: The DNS settings of the Traffic Manager profile.

ProfileInner withEndpoints(List<EndpointInner> endpoints)

Set the endpoints property: The list of endpoints in the Traffic Manager profile.

ProfileInner withId(String id)

Set the id property: Fully qualified resource Id for the resource.

ProfileInner withLocation(String location)
ProfileInner withMaxReturn(Long maxReturn)

Set the maxReturn property: Maximum number of endpoints to be returned for MultiValue routing type.

ProfileInner withMonitorConfig(MonitorConfig monitorConfig)

Set the monitorConfig property: The endpoint monitoring settings of the Traffic Manager profile.

ProfileInner withName(String name)

Set the name property: The name of the resource.

ProfileInner withProfileStatus(ProfileStatus profileStatus)

Set the profileStatus property: The status of the Traffic Manager profile.

ProfileInner withTags(Map<String,String> tags)
ProfileInner withTrafficRoutingMethod(TrafficRoutingMethod trafficRoutingMethod)

Set the trafficRoutingMethod property: The traffic routing method of the Traffic Manager profile.

ProfileInner withTrafficViewEnrollmentStatus(TrafficViewEnrollmentStatus trafficViewEnrollmentStatus)

Set the trafficViewEnrollmentStatus property: Indicates whether Traffic View is 'Enabled' or 'Disabled' for the Traffic Manager profile.

ProfileInner 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 allowedEndpointRecordTypes()

Get the allowedEndpointRecordTypes property: The list of allowed endpoint record types.

Returns:

the allowedEndpointRecordTypes value.

dnsConfig

public DnsConfig dnsConfig()

Get the dnsConfig property: The DNS settings of the Traffic Manager profile.

Returns:

the dnsConfig value.

endpoints

public List endpoints()

Get the endpoints property: The list of endpoints in the Traffic Manager profile.

Returns:

the endpoints value.

fromJson

public static ProfileInner fromJson(JsonReader jsonReader)

Reads an instance of ProfileInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ProfileInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

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:

the id value.

maxReturn

public Long maxReturn()

Get the maxReturn property: Maximum number of endpoints to be returned for MultiValue routing type.

Returns:

the maxReturn value.

monitorConfig

public MonitorConfig monitorConfig()

Get the monitorConfig property: The endpoint monitoring settings of the Traffic Manager profile.

Returns:

the monitorConfig value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ProfileInner.name()

Returns:

the name value.

profileStatus

public ProfileStatus profileStatus()

Get the profileStatus property: The status of the Traffic Manager profile.

Returns:

the profileStatus value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ProfileInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

trafficRoutingMethod

public TrafficRoutingMethod trafficRoutingMethod()

Get the trafficRoutingMethod property: The traffic routing method of the Traffic Manager profile.

Returns:

the trafficRoutingMethod value.

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.

type

public String type()

Get the type property: The type of the resource. Ex- Microsoft.Network/trafficManagerProfiles.

Overrides:

ProfileInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withAllowedEndpointRecordTypes

public ProfileInner withAllowedEndpointRecordTypes(List allowedEndpointRecordTypes)

Set the allowedEndpointRecordTypes property: The list of allowed endpoint record types.

Parameters:

allowedEndpointRecordTypes - the allowedEndpointRecordTypes value to set.

Returns:

the ProfileInner object itself.

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.

withEndpoints

public ProfileInner withEndpoints(List 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.

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.

withLocation

public ProfileInner withLocation(String location)

Overrides:

ProfileInner.withLocation(String location)

Parameters:

location

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.

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.

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.

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.

withTags

public ProfileInner withTags(Map tags)

Overrides:

ProfileInner.withTags(Map<String,String> tags)

Parameters:

tags

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.

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.

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.

Applies to