DatadogHostInner Class

  • java.lang.Object
    • com.azure.resourcemanager.datadog.fluent.models.DatadogHostInner

Implements

public final class DatadogHostInner
implements JsonSerializable<DatadogHostInner>

The DatadogHost model.

Constructor Summary

Constructor Description
DatadogHostInner()

Creates an instance of DatadogHostInner class.

Method Summary

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

Get the aliases property: The aliases for the host installed via the Datadog agent.

List<String> apps()

Get the apps property: The Datadog integrations reporting metrics for the host.

static DatadogHostInner fromJson(JsonReader jsonReader)

Reads an instance of DatadogHostInner from the JsonReader.

DatadogHostMetadata meta()

Get the meta property: The meta property.

String name()

Get the name property: The name of the host.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DatadogHostInner withAliases(List<String> aliases)

Set the aliases property: The aliases for the host installed via the Datadog agent.

DatadogHostInner withApps(List<String> apps)

Set the apps property: The Datadog integrations reporting metrics for the host.

DatadogHostInner withMeta(DatadogHostMetadata meta)

Set the meta property: The meta property.

DatadogHostInner withName(String name)

Set the name property: The name of the host.

Methods inherited from java.lang.Object

Constructor Details

DatadogHostInner

public DatadogHostInner()

Creates an instance of DatadogHostInner class.

Method Details

aliases

public List<String> aliases()

Get the aliases property: The aliases for the host installed via the Datadog agent.

Returns:

the aliases value.

apps

public List<String> apps()

Get the apps property: The Datadog integrations reporting metrics for the host.

Returns:

the apps value.

fromJson

public static DatadogHostInner fromJson(JsonReader jsonReader)

Reads an instance of DatadogHostInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DatadogHostInner 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 DatadogHostInner.

meta

public DatadogHostMetadata meta()

Get the meta property: The meta property.

Returns:

the meta value.

name

public String name()

Get the name property: The name of the host.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAliases

public DatadogHostInner withAliases(List<String> aliases)

Set the aliases property: The aliases for the host installed via the Datadog agent.

Parameters:

aliases - the aliases value to set.

Returns:

the DatadogHostInner object itself.

withApps

public DatadogHostInner withApps(List<String> apps)

Set the apps property: The Datadog integrations reporting metrics for the host.

Parameters:

apps - the apps value to set.

Returns:

the DatadogHostInner object itself.

withMeta

public DatadogHostInner withMeta(DatadogHostMetadata meta)

Set the meta property: The meta property.

Parameters:

meta - the meta value to set.

Returns:

the DatadogHostInner object itself.

withName

public DatadogHostInner withName(String name)

Set the name property: The name of the host.

Parameters:

name - the name value to set.

Returns:

the DatadogHostInner object itself.

Applies to