Class ProfileInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.trafficmanager.fluent.models.ProfileInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class ProfileInner
extends com.azure.core.management.Resource
Class representing a Traffic Manager profile.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the allowedEndpointRecordTypes property: The list of allowed endpoint record types.Get the dnsConfig property: The DNS settings of the Traffic Manager profile.Get the endpoints property: The list of endpoints in the Traffic Manager profile.static ProfileInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ProfileInner from the JsonReader.id()Get the id property: Fully qualified resource Id for the resource.Get the maxReturn property: Maximum number of endpoints to be returned for MultiValue routing type.Get the monitorConfig property: The endpoint monitoring settings of the Traffic Manager profile.name()Get the name property: The name of the resource.Get the profileStatus property: The status of the Traffic Manager profile.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the trafficRoutingMethod property: The traffic routing method of the Traffic Manager profile.Get the trafficViewEnrollmentStatus property: Indicates whether Traffic View is 'Enabled' or 'Disabled' for the Traffic Manager profile.type()Get the type property: The type of the resource.voidvalidate()Validates the instance.withAllowedEndpointRecordTypes(List<AllowedEndpointRecordType> allowedEndpointRecordTypes) Set the allowedEndpointRecordTypes property: The list of allowed endpoint record types.withDnsConfig(DnsConfig dnsConfig) Set the dnsConfig property: The DNS settings of the Traffic Manager profile.withEndpoints(List<EndpointInner> endpoints) Set the endpoints property: The list of endpoints in the Traffic Manager profile.Set the id property: Fully qualified resource Id for the resource.withLocation(String location) withMaxReturn(Long maxReturn) Set the maxReturn property: Maximum number of endpoints to be returned for MultiValue routing type.withMonitorConfig(MonitorConfig monitorConfig) Set the monitorConfig property: The endpoint monitoring settings of the Traffic Manager profile.Set the name property: The name of the resource.withProfileStatus(ProfileStatus profileStatus) Set the profileStatus property: The status of the Traffic Manager profile.withTrafficRoutingMethod(TrafficRoutingMethod trafficRoutingMethod) Set the trafficRoutingMethod property: The traffic routing method of the Traffic Manager profile.withTrafficViewEnrollmentStatus(TrafficViewEnrollmentStatus trafficViewEnrollmentStatus) Set the trafficViewEnrollmentStatus property: Indicates whether Traffic View is 'Enabled' or 'Disabled' for the Traffic Manager profile.Set the type property: The type of the resource.Methods inherited from class com.azure.core.management.Resource
location, tagsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ProfileInner
public ProfileInner()Creates an instance of ProfileInner class.
-
-
Method Details
-
id
Get the id property: Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
withId
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
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
withName
Set the name property: The name of the resource.- Parameters:
name- the name value to set.- Returns:
- the ProfileInner object itself.
-
type
Get the type property: The type of the resource. Ex- Microsoft.Network/trafficManagerProfiles.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
withType
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
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
profileStatus
Get the profileStatus property: The status of the Traffic Manager profile.- Returns:
- the profileStatus value.
-
withProfileStatus
Set the profileStatus property: The status of the Traffic Manager profile.- Parameters:
profileStatus- the profileStatus value to set.- Returns:
- the ProfileInner object itself.
-
trafficRoutingMethod
Get the trafficRoutingMethod property: The traffic routing method of the Traffic Manager profile.- Returns:
- the trafficRoutingMethod value.
-
withTrafficRoutingMethod
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
Get the dnsConfig property: The DNS settings of the Traffic Manager profile.- Returns:
- the dnsConfig value.
-
withDnsConfig
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
Get the monitorConfig property: The endpoint monitoring settings of the Traffic Manager profile.- Returns:
- the monitorConfig value.
-
withMonitorConfig
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
Get the endpoints property: The list of endpoints in the Traffic Manager profile.- Returns:
- the endpoints value.
-
withEndpoints
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
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
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
Get the maxReturn property: Maximum number of endpoints to be returned for MultiValue routing type.- Returns:
- the maxReturn value.
-
withMaxReturn
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.Resource- Throws:
IOException
-
fromJson
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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the ProfileInner.
-