public final class LogSettings extends Object
| Constructor and Description |
|---|
LogSettings() |
| Modifier and Type | Method and Description |
|---|---|
String |
category()
Get the category property: Name of a Diagnostic Log category for a resource type this setting is applied to.
|
boolean |
enabled()
Get the enabled property: a value indicating whether this log is enabled.
|
RetentionPolicy |
retentionPolicy()
Get the retentionPolicy property: the retention policy for this log.
|
void |
validate()
Validates the instance.
|
LogSettings |
withCategory(String category)
Set the category property: Name of a Diagnostic Log category for a resource type this setting is applied to.
|
LogSettings |
withEnabled(boolean enabled)
Set the enabled property: a value indicating whether this log is enabled.
|
LogSettings |
withRetentionPolicy(RetentionPolicy retentionPolicy)
Set the retentionPolicy property: the retention policy for this log.
|
public String category()
public LogSettings withCategory(String category)
category - the category value to set.public boolean enabled()
public LogSettings withEnabled(boolean enabled)
enabled - the enabled value to set.public RetentionPolicy retentionPolicy()
public LogSettings withRetentionPolicy(RetentionPolicy retentionPolicy)
retentionPolicy - the retentionPolicy value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.