Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. See License.txt in the project root for
license information.
Code generated by Microsoft (R) AutoRest Code Generator.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.monitor;
import com.fasterxml.jackson.annotation.JsonProperty;
Part of MultiTenantDiagnosticSettings. Specifies the settings for a
particular log.
/**
* Part of MultiTenantDiagnosticSettings. Specifies the settings for a
* particular log.
*/
public class LogSettings {
Name of a Diagnostic Log category for a resource type this setting is
applied to. To obtain the list of Diagnostic Log categories for a
resource, first perform a GET diagnostic settings operation.
/**
* Name of a Diagnostic Log category for a resource type this setting is
* applied to. To obtain the list of Diagnostic Log categories for a
* resource, first perform a GET diagnostic settings operation.
*/
@JsonProperty(value = "category")
private String category;
a value indicating whether this log is enabled.
/**
* a value indicating whether this log is enabled.
*/
@JsonProperty(value = "enabled", required = true)
private boolean enabled;
the retention policy for this log.
/**
* the retention policy for this log.
*/
@JsonProperty(value = "retentionPolicy")
private RetentionPolicy retentionPolicy;
Get name of a Diagnostic Log category for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation.
Returns: the category value
/**
* Get name of a Diagnostic Log category for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation.
*
* @return the category value
*/
public String category() {
return this.category;
}
Set name of a Diagnostic Log category for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation.
Params: - category – the category value to set
Returns: the LogSettings object itself.
/**
* Set name of a Diagnostic Log category for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation.
*
* @param category the category value to set
* @return the LogSettings object itself.
*/
public LogSettings withCategory(String category) {
this.category = category;
return this;
}
Get a value indicating whether this log is enabled.
Returns: the enabled value
/**
* Get a value indicating whether this log is enabled.
*
* @return the enabled value
*/
public boolean enabled() {
return this.enabled;
}
Set a value indicating whether this log is enabled.
Params: - enabled – the enabled value to set
Returns: the LogSettings object itself.
/**
* Set a value indicating whether this log is enabled.
*
* @param enabled the enabled value to set
* @return the LogSettings object itself.
*/
public LogSettings withEnabled(boolean enabled) {
this.enabled = enabled;
return this;
}
Get the retention policy for this log.
Returns: the retentionPolicy value
/**
* Get the retention policy for this log.
*
* @return the retentionPolicy value
*/
public RetentionPolicy retentionPolicy() {
return this.retentionPolicy;
}
Set the retention policy for this log.
Params: - retentionPolicy – the retentionPolicy value to set
Returns: the LogSettings object itself.
/**
* Set the retention policy for this log.
*
* @param retentionPolicy the retentionPolicy value to set
* @return the LogSettings object itself.
*/
public LogSettings withRetentionPolicy(RetentionPolicy retentionPolicy) {
this.retentionPolicy = retentionPolicy;
return this;
}
}