Class ClusterPoolLogAnalyticsProfile
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.ClusterPoolLogAnalyticsProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ClusterPoolLogAnalyticsProfile>
- Direct Known Subclasses:
ClusterPoolResourcePropertiesLogAnalyticsProfile
public class ClusterPoolLogAnalyticsProfile
extends Object
implements com.azure.json.JsonSerializable<ClusterPoolLogAnalyticsProfile>
Cluster pool log analytics profile used to enable or disable OMS agent for AKS cluster.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ClusterPoolLogAnalyticsProfile class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanenabled()Get the enabled property: True if log analytics is enabled for cluster pool, otherwise false.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ClusterPoolLogAnalyticsProfile from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withEnabled(boolean enabled) Set the enabled property: True if log analytics is enabled for cluster pool, otherwise false.withWorkspaceId(String workspaceId) Set the workspaceId property: Log analytics workspace to associate with the OMS agent.Get the workspaceId property: Log analytics workspace to associate with the OMS agent.Methods inherited from class 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
-
ClusterPoolLogAnalyticsProfile
public ClusterPoolLogAnalyticsProfile()Creates an instance of ClusterPoolLogAnalyticsProfile class.
-
-
Method Details
-
enabled
public boolean enabled()Get the enabled property: True if log analytics is enabled for cluster pool, otherwise false.- Returns:
- the enabled value.
-
withEnabled
Set the enabled property: True if log analytics is enabled for cluster pool, otherwise false.- Parameters:
enabled- the enabled value to set.- Returns:
- the ClusterPoolLogAnalyticsProfile object itself.
-
workspaceId
Get the workspaceId property: Log analytics workspace to associate with the OMS agent.- Returns:
- the workspaceId value.
-
withWorkspaceId
Set the workspaceId property: Log analytics workspace to associate with the OMS agent.- Parameters:
workspaceId- the workspaceId value to set.- Returns:
- the ClusterPoolLogAnalyticsProfile 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<ClusterPoolLogAnalyticsProfile>- Throws:
IOException
-
fromJson
public static ClusterPoolLogAnalyticsProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ClusterPoolLogAnalyticsProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ClusterPoolLogAnalyticsProfile 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 ClusterPoolLogAnalyticsProfile.
-