LogProfileResourceInner Class

public final class LogProfileResourceInner
extends Resource

The log profile resource.

Constructor Summary

Constructor Description
LogProfileResourceInner()

Creates an instance of LogProfileResourceInner class.

Method Summary

Modifier and Type Method and Description
List<String> categories()

Get the categories property: the categories of the logs.

static LogProfileResourceInner fromJson(JsonReader jsonReader)

Reads an instance of LogProfileResourceInner from the JsonReader.

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.

RetentionPolicy retentionPolicy()

Get the retentionPolicy property: the retention policy for the events in the log.

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.

String storageAccountId()

Get the storageAccountId property: the resource id of the storage account to which you would like to send the Activity Log.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

LogProfileResourceInner withCategories(List<String> categories)

Set the categories property: the categories of the logs.

LogProfileResourceInner withLocation(String location)
LogProfileResourceInner withLocations(List<String> locations)

Set the locations property: List of regions for which Activity Log events should be stored or streamed.

LogProfileResourceInner withRetentionPolicy(RetentionPolicy retentionPolicy)

Set the retentionPolicy property: the retention policy for the events in the log.

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.

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.

LogProfileResourceInner 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 categories()

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:

the categories value.

fromJson

public static LogProfileResourceInner fromJson(JsonReader jsonReader)

Reads an instance of LogProfileResourceInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of LogProfileResourceInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

LogProfileResourceInner.id()

Returns:

the id value.

locations

public List locations()

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:

the locations value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

LogProfileResourceInner.name()

Returns:

the name value.

retentionPolicy

public RetentionPolicy retentionPolicy()

Get the retentionPolicy property: the retention policy for the events in the log.

Returns:

the retentionPolicy value.

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:

the serviceBusRuleId value.

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:

the storageAccountId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

LogProfileResourceInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

LogProfileResourceInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withCategories

public LogProfileResourceInner withCategories(List categories)

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:

categories - the categories value to set.

Returns:

the LogProfileResourceInner object itself.

withLocation

public LogProfileResourceInner withLocation(String location)

Overrides:

LogProfileResourceInner.withLocation(String location)

Parameters:

location

withLocations

public LogProfileResourceInner withLocations(List locations)

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:

locations - the locations value to set.

Returns:

the LogProfileResourceInner object itself.

withRetentionPolicy

public LogProfileResourceInner withRetentionPolicy(RetentionPolicy retentionPolicy)

Set the retentionPolicy property: the retention policy for the events in the log.

Parameters:

retentionPolicy - the retentionPolicy value to set.

Returns:

the LogProfileResourceInner object itself.

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:

serviceBusRuleId - the serviceBusRuleId value to set.

Returns:

the LogProfileResourceInner object itself.

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:

storageAccountId - the storageAccountId value to set.

Returns:

the LogProfileResourceInner object itself.

withTags

public LogProfileResourceInner withTags(Map tags)

Overrides:

LogProfileResourceInner.withTags(Map<String,String> tags)

Parameters:

tags

Applies to