BasicDependency Class

  • java.lang.Object
    • com.azure.resourcemanager.resources.models.BasicDependency

Implements

public final class BasicDependency
implements JsonSerializable<BasicDependency>

Deployment dependency information.

Constructor Summary

Constructor Description
BasicDependency()

Creates an instance of BasicDependency class.

Method Summary

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

Reads an instance of BasicDependency from the JsonReader.

String id()

Get the id property: The ID of the dependency.

String resourceName()

Get the resourceName property: The dependency resource name.

String resourceType()

Get the resourceType property: The dependency resource type.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

BasicDependency withId(String id)

Set the id property: The ID of the dependency.

BasicDependency withResourceName(String resourceName)

Set the resourceName property: The dependency resource name.

BasicDependency withResourceType(String resourceType)

Set the resourceType property: The dependency resource type.

Methods inherited from java.lang.Object

Constructor Details

BasicDependency

public BasicDependency()

Creates an instance of BasicDependency class.

Method Details

fromJson

public static BasicDependency fromJson(JsonReader jsonReader)

Reads an instance of BasicDependency from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: The ID of the dependency.

Returns:

the id value.

resourceName

public String resourceName()

Get the resourceName property: The dependency resource name.

Returns:

the resourceName value.

resourceType

public String resourceType()

Get the resourceType property: The dependency resource type.

Returns:

the resourceType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withId

public BasicDependency withId(String id)

Set the id property: The ID of the dependency.

Parameters:

id - the id value to set.

Returns:

the BasicDependency object itself.

withResourceName

public BasicDependency withResourceName(String resourceName)

Set the resourceName property: The dependency resource name.

Parameters:

resourceName - the resourceName value to set.

Returns:

the BasicDependency object itself.

withResourceType

public BasicDependency withResourceType(String resourceType)

Set the resourceType property: The dependency resource type.

Parameters:

resourceType - the resourceType value to set.

Returns:

the BasicDependency object itself.

Applies to