SubscriptionList Class

  • java.lang.Object
    • com.azure.resourcemanager.datadog.models.SubscriptionList

Implements

public final class SubscriptionList
implements JsonSerializable<SubscriptionList>

The request to update subscriptions needed to be monitored by the Datadog monitor resource.

Constructor Summary

Constructor Description
SubscriptionList()

Creates an instance of SubscriptionList class.

Method Summary

Modifier and Type Method and Description
static SubscriptionList fromJson(JsonReader jsonReader)

Reads an instance of SubscriptionList from the JsonReader.

List<MonitoredSubscription> monitoredSubscriptionList()

Get the monitoredSubscriptionList property: List of subscriptions and the state of the monitoring.

Operation operation()

Get the operation property: The operation for the patch on the resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SubscriptionList withMonitoredSubscriptionList(List<MonitoredSubscription> monitoredSubscriptionList)

Set the monitoredSubscriptionList property: List of subscriptions and the state of the monitoring.

SubscriptionList withOperation(Operation operation)

Set the operation property: The operation for the patch on the resource.

Methods inherited from java.lang.Object

Constructor Details

SubscriptionList

public SubscriptionList()

Creates an instance of SubscriptionList class.

Method Details

fromJson

public static SubscriptionList fromJson(JsonReader jsonReader)

Reads an instance of SubscriptionList from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the SubscriptionList.

monitoredSubscriptionList

public List<MonitoredSubscription> monitoredSubscriptionList()

Get the monitoredSubscriptionList property: List of subscriptions and the state of the monitoring.

Returns:

the monitoredSubscriptionList value.

operation

public Operation operation()

Get the operation property: The operation for the patch on the resource.

Returns:

the operation value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withMonitoredSubscriptionList

public SubscriptionList withMonitoredSubscriptionList(List<MonitoredSubscription> monitoredSubscriptionList)

Set the monitoredSubscriptionList property: List of subscriptions and the state of the monitoring.

Parameters:

monitoredSubscriptionList - the monitoredSubscriptionList value to set.

Returns:

the SubscriptionList object itself.

withOperation

public SubscriptionList withOperation(Operation operation)

Set the operation property: The operation for the patch on the resource.

Parameters:

operation - the operation value to set.

Returns:

the SubscriptionList object itself.

Applies to