Class ClusterLogAnalyticsApplicationLogs
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.ClusterLogAnalyticsApplicationLogs
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ClusterLogAnalyticsApplicationLogs>
public final class ClusterLogAnalyticsApplicationLogs
extends Object
implements com.azure.json.JsonSerializable<ClusterLogAnalyticsApplicationLogs>
Collection of logs to be enabled or disabled for log analytics.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ClusterLogAnalyticsApplicationLogs class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ClusterLogAnalyticsApplicationLogs from the JsonReader.Get the stdErrorEnabled property: True if stderror is enabled, otherwise false.Get the stdOutEnabled property: True if stdout is enabled, otherwise false.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withStdErrorEnabled(Boolean stdErrorEnabled) Set the stdErrorEnabled property: True if stderror is enabled, otherwise false.withStdOutEnabled(Boolean stdOutEnabled) Set the stdOutEnabled property: True if stdout is enabled, otherwise false.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
-
ClusterLogAnalyticsApplicationLogs
public ClusterLogAnalyticsApplicationLogs()Creates an instance of ClusterLogAnalyticsApplicationLogs class.
-
-
Method Details
-
stdOutEnabled
Get the stdOutEnabled property: True if stdout is enabled, otherwise false.- Returns:
- the stdOutEnabled value.
-
withStdOutEnabled
Set the stdOutEnabled property: True if stdout is enabled, otherwise false.- Parameters:
stdOutEnabled- the stdOutEnabled value to set.- Returns:
- the ClusterLogAnalyticsApplicationLogs object itself.
-
stdErrorEnabled
Get the stdErrorEnabled property: True if stderror is enabled, otherwise false.- Returns:
- the stdErrorEnabled value.
-
withStdErrorEnabled
Set the stdErrorEnabled property: True if stderror is enabled, otherwise false.- Parameters:
stdErrorEnabled- the stdErrorEnabled value to set.- Returns:
- the ClusterLogAnalyticsApplicationLogs 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<ClusterLogAnalyticsApplicationLogs>- Throws:
IOException
-
fromJson
public static ClusterLogAnalyticsApplicationLogs fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ClusterLogAnalyticsApplicationLogs from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ClusterLogAnalyticsApplicationLogs if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ClusterLogAnalyticsApplicationLogs.
-