com.microsoft.azure.management.network.FlowLogSettings Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-mgmt-network Show documentation
Show all versions of azure-mgmt-network Show documentation
This package contains Microsoft Azure Network Management SDK. A new set of management libraries are now Generally Available. For documentation on how to use the new libraries, please see https://aka.ms/azsdk/java/mgmt
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/
package com.microsoft.azure.management.network;
import com.microsoft.azure.management.apigeneration.Beta;
import com.microsoft.azure.management.apigeneration.Fluent;
import com.microsoft.azure.management.network.implementation.FlowLogInformationInner;
import com.microsoft.azure.management.resources.fluentcore.arm.models.HasParent;
import com.microsoft.azure.management.resources.fluentcore.model.Appliable;
import com.microsoft.azure.management.resources.fluentcore.model.HasInner;
import com.microsoft.azure.management.resources.fluentcore.model.Refreshable;
import com.microsoft.azure.management.resources.fluentcore.model.Updatable;
/**
* Client-side representation of the configuration of flow log, associated with network watcher and an Azure resource.
*/
@Fluent
@Beta
public interface FlowLogSettings extends
HasParent,
HasInner,
Updatable,
Refreshable {
/**
* Get the ID of the resource to configure for flow logging.
*
* @return the targetResourceId value
*/
String targetResourceId();
/**
* @return the id of the storage account used to store the flow log
*/
String storageId();
/**
* @return true if logging is enabled, false otherwise
*/
boolean enabled();
/**
* @return true if retention policy enabled, false otherwise
*/
boolean isRetentionEnabled();
/**
* @return the number of days to retain flow log records
*/
int retentionDays();
/**
* @return network security group id these flow log settings apply to
*/
String networkSecurityGroupId();
/**
* Grouping of flow log information update stages.
*/
interface UpdateStages {
/**
* The stage of the flow log information update allowing to set enable/disable property.
*/
interface WithEnabled {
/**
* Enable flow logging.
*
* @return the next stage of the flow log information update
*/
Update withLogging();
/**
* Disable flow logging.
*
* @return the next stage of the flow log information update
*/
Update withoutLogging();
}
/**
* The stage of the flow log information update allowing to specify storage account.
*/
interface WithStorageAccount {
/**
* Specifies the storage account to use for storing log.
* @param storageId id of the storage account
* @return the next stage of the flow log information update
*/
Update withStorageAccount(String storageId);
}
/**
* The stage of the flow log information update allowing to configure retention policy.
*/
interface WithRetentionPolicy {
/**
* Enable retention policy.
* @return the next stage of the flow log information update
*/
Update withRetentionPolicyEnabled();
/**
* Disable retention policy.
* @return the next stage of the flow log information update
*/
Update withRetentionPolicyDisabled();
/**
* Set the number of days to store flow log.
* @param days the number of days
* @return the next stage of the flow log information update
*/
Update withRetentionPolicyDays(int days);
}
}
/**
* The template for a flow log information update operation, containing all the settings that
* can be modified.
*
* Call {@link Update#apply()} to apply the changes to the resource in Azure.
*/
interface Update extends
Appliable,
UpdateStages.WithEnabled,
UpdateStages.WithStorageAccount,
UpdateStages.WithRetentionPolicy {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy