Class ClusterPoolResourcePropertiesLogAnalyticsProfile
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.ClusterPoolLogAnalyticsProfile
com.azure.resourcemanager.hdinsight.containers.models.ClusterPoolResourcePropertiesLogAnalyticsProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ClusterPoolLogAnalyticsProfile>
public final class ClusterPoolResourcePropertiesLogAnalyticsProfile
extends ClusterPoolLogAnalyticsProfile
Cluster pool log analytics profile to enable OMS agent for AKS cluster.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ClusterPoolResourcePropertiesLogAnalyticsProfile class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ClusterPoolResourcePropertiesLogAnalyticsProfile 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.Methods inherited from class ClusterPoolLogAnalyticsProfile
enabled, workspaceIdMethods 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
-
ClusterPoolResourcePropertiesLogAnalyticsProfile
public ClusterPoolResourcePropertiesLogAnalyticsProfile()Creates an instance of ClusterPoolResourcePropertiesLogAnalyticsProfile class.
-
-
Method Details
-
withEnabled
Set the enabled property: True if log analytics is enabled for cluster pool, otherwise false.- Overrides:
withEnabledin classClusterPoolLogAnalyticsProfile- Parameters:
enabled- the enabled value to set.- Returns:
- the ClusterPoolLogAnalyticsProfile object itself.
-
withWorkspaceId
Set the workspaceId property: Log analytics workspace to associate with the OMS agent.- Overrides:
withWorkspaceIdin classClusterPoolLogAnalyticsProfile- Parameters:
workspaceId- the workspaceId value to set.- Returns:
- the ClusterPoolLogAnalyticsProfile object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classClusterPoolLogAnalyticsProfile- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ClusterPoolLogAnalyticsProfile>- Overrides:
toJsonin classClusterPoolLogAnalyticsProfile- Throws:
IOException
-
fromJson
public static ClusterPoolResourcePropertiesLogAnalyticsProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ClusterPoolResourcePropertiesLogAnalyticsProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ClusterPoolResourcePropertiesLogAnalyticsProfile 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 ClusterPoolResourcePropertiesLogAnalyticsProfile.
-