LogProfileResourceInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. monitor. fluent. models. LogProfileResourceInner
- com.
- com.
- com.
public final class LogProfileResourceInner
extends Resource
The log profile resource.
Constructor Summary
Constructor | Description |
---|---|
LogProfileResourceInner() |
Creates an instance of Log |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<String> |
categories()
Get the categories property: the categories of the logs. |
static
Log |
fromJson(JsonReader jsonReader)
Reads an instance of Log |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
List<String> |
locations()
Get the locations property: List of regions for which Activity Log events should be stored or streamed. |
String |
name()
Get the name property: The name of the resource. |
Retention |
retentionPolicy()
Get the retention |
String |
serviceBusRuleId()
Get the service |
String |
storageAccountId()
Get the storage |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Log |
withCategories(List<String> categories)
Set the categories property: the categories of the logs. |
Log |
withLocation(String location) |
Log |
withLocations(List<String> locations)
Set the locations property: List of regions for which Activity Log events should be stored or streamed. |
Log |
withRetentionPolicy(RetentionPolicy retentionPolicy)
Set the retention |
Log |
withServiceBusRuleId(String serviceBusRuleId)
Set the service |
Log |
withStorageAccountId(String storageAccountId)
Set the storage |
Log |
withTags(Map<String,String> tags) |
Methods inherited from ProxyResource
Methods inherited from Resource
Methods inherited from java.lang.Object
Constructor Details
LogProfileResourceInner
public LogProfileResourceInner()
Creates an instance of LogProfileResourceInner class.
Method Details
categories
public List
Get the categories property: the categories of the logs. These categories are created as is convenient to the user. Some values are: 'Write', 'Delete', and/or 'Action.'.
Returns:
fromJson
public static LogProfileResourceInner fromJson(JsonReader jsonReader)
Reads an instance of LogProfileResourceInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
LogProfileResourceInner.id()Returns:
locations
public List
Get the locations property: List of regions for which Activity Log events should be stored or streamed. It is a comma separated list of valid ARM locations including the 'global' location.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
LogProfileResourceInner.name()Returns:
retentionPolicy
public RetentionPolicy retentionPolicy()
Get the retentionPolicy property: the retention policy for the events in the log.
Returns:
serviceBusRuleId
public String serviceBusRuleId()
Get the serviceBusRuleId property: The service bus rule ID of the service bus namespace in which you would like to have Event Hubs created for streaming the Activity Log. The rule ID is of the format: '{service bus resource ID}/authorizationrules/{key name}'.
Returns:
storageAccountId
public String storageAccountId()
Get the storageAccountId property: the resource id of the storage account to which you would like to send the Activity Log.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
LogProfileResourceInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
LogProfileResourceInner.type()Returns:
validate
public void validate()
Validates the instance.
withCategories
public LogProfileResourceInner withCategories(List
Set the categories property: the categories of the logs. These categories are created as is convenient to the user. Some values are: 'Write', 'Delete', and/or 'Action.'.
Parameters:
Returns:
withLocation
public LogProfileResourceInner withLocation(String location)
Overrides:
LogProfileResourceInner.withLocation(String location)Parameters:
withLocations
public LogProfileResourceInner withLocations(List
Set the locations property: List of regions for which Activity Log events should be stored or streamed. It is a comma separated list of valid ARM locations including the 'global' location.
Parameters:
Returns:
withRetentionPolicy
public LogProfileResourceInner withRetentionPolicy(RetentionPolicy retentionPolicy)
Set the retentionPolicy property: the retention policy for the events in the log.
Parameters:
Returns:
withServiceBusRuleId
public LogProfileResourceInner withServiceBusRuleId(String serviceBusRuleId)
Set the serviceBusRuleId property: The service bus rule ID of the service bus namespace in which you would like to have Event Hubs created for streaming the Activity Log. The rule ID is of the format: '{service bus resource ID}/authorizationrules/{key name}'.
Parameters:
Returns:
withStorageAccountId
public LogProfileResourceInner withStorageAccountId(String storageAccountId)
Set the storageAccountId property: the resource id of the storage account to which you would like to send the Activity Log.
Parameters:
Returns:
withTags
public LogProfileResourceInner withTags(Map
Overrides:
LogProfileResourceInner.withTags(Map<String,String> tags)Parameters:
Applies to
Azure SDK for Java