Partager via


DataCollectionRuleResourceInner Class

public final class DataCollectionRuleResourceInner
extends Resource

Definition of ARM tracked top level resource.

Constructor Summary

Constructor Description
DataCollectionRuleResourceInner()

Creates an instance of DataCollectionRuleResourceInner class.

Method Summary

Modifier and Type Method and Description
String dataCollectionEndpointId()

Get the dataCollectionEndpointId property: The resource ID of the data collection endpoint that this rule can be used with.

List<DataFlow> dataFlows()

Get the dataFlows property: The specification of data flows.

DataCollectionRuleDataSources dataSources()

Get the dataSources property: The specification of data sources.

String description()

Get the description property: Description of the data collection rule.

DataCollectionRuleDestinations destinations()

Get the destinations property: The specification of destinations.

String etag()

Get the etag property: Resource entity tag (ETag).

static DataCollectionRuleResourceInner fromJson(JsonReader jsonReader)

Reads an instance of DataCollectionRuleResourceInner from the JsonReader.

String id()

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

String immutableId()

Get the immutableId property: The immutable ID of this data collection rule.

KnownDataCollectionRuleResourceKind kind()

Get the kind property: The kind of the resource.

DataCollectionRuleMetadata metadata()

Get the metadata property: Metadata about the resource.

String name()

Get the name property: The name of the resource.

KnownDataCollectionRuleProvisioningState provisioningState()

Get the provisioningState property: The resource provisioning state.

Map<String,StreamDeclaration> streamDeclarations()

Get the streamDeclarations property: Declaration of custom streams used in this rule.

SystemData systemData()

Get the systemData property: Metadata pertaining to creation and last modification of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

DataCollectionRuleResourceInner withDataCollectionEndpointId(String dataCollectionEndpointId)

Set the dataCollectionEndpointId property: The resource ID of the data collection endpoint that this rule can be used with.

DataCollectionRuleResourceInner withDataFlows(List<DataFlow> dataFlows)

Set the dataFlows property: The specification of data flows.

DataCollectionRuleResourceInner withDataSources(DataCollectionRuleDataSources dataSources)

Set the dataSources property: The specification of data sources.

DataCollectionRuleResourceInner withDescription(String description)

Set the description property: Description of the data collection rule.

DataCollectionRuleResourceInner withDestinations(DataCollectionRuleDestinations destinations)

Set the destinations property: The specification of destinations.

DataCollectionRuleResourceInner withKind(KnownDataCollectionRuleResourceKind kind)

Set the kind property: The kind of the resource.

DataCollectionRuleResourceInner withLocation(String location)
DataCollectionRuleResourceInner withStreamDeclarations(Map<String,StreamDeclaration> streamDeclarations)

Set the streamDeclarations property: Declaration of custom streams used in this rule.

DataCollectionRuleResourceInner withTags(Map<String,String> tags)

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

DataCollectionRuleResourceInner

public DataCollectionRuleResourceInner()

Creates an instance of DataCollectionRuleResourceInner class.

Method Details

dataCollectionEndpointId

public String dataCollectionEndpointId()

Get the dataCollectionEndpointId property: The resource ID of the data collection endpoint that this rule can be used with.

Returns:

the dataCollectionEndpointId value.

dataFlows

public List dataFlows()

Get the dataFlows property: The specification of data flows.

Returns:

the dataFlows value.

dataSources

public DataCollectionRuleDataSources dataSources()

Get the dataSources property: The specification of data sources. This property is optional and can be omitted if the rule is meant to be used via direct calls to the provisioned endpoint.

Returns:

the dataSources value.

description

public String description()

Get the description property: Description of the data collection rule.

Returns:

the description value.

destinations

public DataCollectionRuleDestinations destinations()

Get the destinations property: The specification of destinations.

Returns:

the destinations value.

etag

public String etag()

Get the etag property: Resource entity tag (ETag).

Returns:

the etag value.

fromJson

public static DataCollectionRuleResourceInner fromJson(JsonReader jsonReader)

Reads an instance of DataCollectionRuleResourceInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DataCollectionRuleResourceInner 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:

DataCollectionRuleResourceInner.id()

Returns:

the id value.

immutableId

public String immutableId()

Get the immutableId property: The immutable ID of this data collection rule. This property is READ-ONLY.

Returns:

the immutableId value.

kind

public KnownDataCollectionRuleResourceKind kind()

Get the kind property: The kind of the resource.

Returns:

the kind value.

metadata

public DataCollectionRuleMetadata metadata()

Get the metadata property: Metadata about the resource.

Returns:

the metadata value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

DataCollectionRuleResourceInner.name()

Returns:

the name value.

provisioningState

public KnownDataCollectionRuleProvisioningState provisioningState()

Get the provisioningState property: The resource provisioning state.

Returns:

the provisioningState value.

streamDeclarations

public Map streamDeclarations()

Get the streamDeclarations property: Declaration of custom streams used in this rule.

Returns:

the streamDeclarations value.

systemData

public SystemData systemData()

Get the systemData property: Metadata pertaining to creation and last modification of the resource.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DataCollectionRuleResourceInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

DataCollectionRuleResourceInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withDataCollectionEndpointId

public DataCollectionRuleResourceInner withDataCollectionEndpointId(String dataCollectionEndpointId)

Set the dataCollectionEndpointId property: The resource ID of the data collection endpoint that this rule can be used with.

Parameters:

dataCollectionEndpointId - the dataCollectionEndpointId value to set.

Returns:

the DataCollectionRuleResourceInner object itself.

withDataFlows

public DataCollectionRuleResourceInner withDataFlows(List dataFlows)

Set the dataFlows property: The specification of data flows.

Parameters:

dataFlows - the dataFlows value to set.

Returns:

the DataCollectionRuleResourceInner object itself.

withDataSources

public DataCollectionRuleResourceInner withDataSources(DataCollectionRuleDataSources dataSources)

Set the dataSources property: The specification of data sources. This property is optional and can be omitted if the rule is meant to be used via direct calls to the provisioned endpoint.

Parameters:

dataSources - the dataSources value to set.

Returns:

the DataCollectionRuleResourceInner object itself.

withDescription

public DataCollectionRuleResourceInner withDescription(String description)

Set the description property: Description of the data collection rule.

Parameters:

description - the description value to set.

Returns:

the DataCollectionRuleResourceInner object itself.

withDestinations

public DataCollectionRuleResourceInner withDestinations(DataCollectionRuleDestinations destinations)

Set the destinations property: The specification of destinations.

Parameters:

destinations - the destinations value to set.

Returns:

the DataCollectionRuleResourceInner object itself.

withKind

public DataCollectionRuleResourceInner withKind(KnownDataCollectionRuleResourceKind kind)

Set the kind property: The kind of the resource.

Parameters:

kind - the kind value to set.

Returns:

the DataCollectionRuleResourceInner object itself.

withLocation

public DataCollectionRuleResourceInner withLocation(String location)

Overrides:

DataCollectionRuleResourceInner.withLocation(String location)

Parameters:

location

withStreamDeclarations

public DataCollectionRuleResourceInner withStreamDeclarations(Map streamDeclarations)

Set the streamDeclarations property: Declaration of custom streams used in this rule.

Parameters:

streamDeclarations - the streamDeclarations value to set.

Returns:

the DataCollectionRuleResourceInner object itself.

withTags

public DataCollectionRuleResourceInner withTags(Map tags)

Overrides:

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

Parameters:

tags

Applies to