RetentionPolicyParameters Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. RetentionPolicyParameters
- com.
Implements
public final class RetentionPolicyParameters
implements JsonSerializable<RetentionPolicyParameters>
Parameters that define the retention policy for flow log.
Constructor Summary
| Constructor | Description |
|---|---|
| RetentionPolicyParameters() |
Creates an instance of Retention |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Integer |
days()
Get the days property: Number of days to retain flow log records. |
| Boolean |
enabled()
Get the enabled property: Flag to enable/disable retention. |
|
static
Retention |
fromJson(JsonReader jsonReader)
Reads an instance of Retention |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Retention |
withDays(Integer days)
Set the days property: Number of days to retain flow log records. |
|
Retention |
withEnabled(Boolean enabled)
Set the enabled property: Flag to enable/disable retention. |
Methods inherited from java.lang.Object
Constructor Details
RetentionPolicyParameters
public RetentionPolicyParameters()
Creates an instance of RetentionPolicyParameters class.
Method Details
days
public Integer days()
Get the days property: Number of days to retain flow log records.
Returns:
enabled
public Boolean enabled()
Get the enabled property: Flag to enable/disable retention.
Returns:
fromJson
public static RetentionPolicyParameters fromJson(JsonReader jsonReader)
Reads an instance of RetentionPolicyParameters from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
withDays
public RetentionPolicyParameters withDays(Integer days)
Set the days property: Number of days to retain flow log records.
Parameters:
Returns:
withEnabled
public RetentionPolicyParameters withEnabled(Boolean enabled)
Set the enabled property: Flag to enable/disable retention.
Parameters:
Returns: