Container Class
- java.
lang. Object - com.
azure. core. management. SubResource - com.
azure. resourcemanager. network. models. Container
- com.
- com.
public final class Container
extends SubResource
Reference to container resource in remote resource provider.
Constructor Summary
Constructor | Description |
---|---|
Container() |
Creates an instance of Container class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
static Container |
fromJson(JsonReader jsonReader)
Reads an instance of Container from the Json |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Container | withId(String id) |
Methods inherited from SubResource
Methods inherited from java.lang.Object
Constructor Details
Container
public Container()
Creates an instance of Container class.
Method Details
fromJson
public static Container fromJson(JsonReader jsonReader)
Reads an instance of Container from the JsonReader.
Parameters:
jsonReader
- The JsonReader being read.
Returns:
An instance of Container if the JsonReader was pointing to an instance of it, or null if it was pointing
to JSON null.
Throws:
- If an error occurs while reading the Container.
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
Container.toJson(JsonWriter jsonWriter)Parameters:
jsonWriter
Throws:
validate
public void validate()
Validates the instance.
withId
public Container withId(String id)
Overrides:
Container.withId(String id)Parameters:
id
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java