Partager via


SecurityContextCapabilitiesDefinition Class

  • java.lang.Object
    • com.azure.resourcemanager.containerinstance.models.SecurityContextCapabilitiesDefinition

Implements

public final class SecurityContextCapabilitiesDefinition
implements JsonSerializable<SecurityContextCapabilitiesDefinition>

The capabilities to add or drop from a container.

Constructor Summary

Constructor Description
SecurityContextCapabilitiesDefinition()

Creates an instance of SecurityContextCapabilitiesDefinition class.

Method Summary

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

Get the add property: The capabilities to add to the container.

List<String> drop()

Get the drop property: The capabilities to drop from the container.

static SecurityContextCapabilitiesDefinition fromJson(JsonReader jsonReader)

Reads an instance of SecurityContextCapabilitiesDefinition from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SecurityContextCapabilitiesDefinition withAdd(List<String> add)

Set the add property: The capabilities to add to the container.

SecurityContextCapabilitiesDefinition withDrop(List<String> drop)

Set the drop property: The capabilities to drop from the container.

Methods inherited from java.lang.Object

Constructor Details

SecurityContextCapabilitiesDefinition

public SecurityContextCapabilitiesDefinition()

Creates an instance of SecurityContextCapabilitiesDefinition class.

Method Details

add

public List add()

Get the add property: The capabilities to add to the container.

Returns:

the add value.

drop

public List drop()

Get the drop property: The capabilities to drop from the container.

Returns:

the drop value.

fromJson

public static SecurityContextCapabilitiesDefinition fromJson(JsonReader jsonReader)

Reads an instance of SecurityContextCapabilitiesDefinition from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdd

public SecurityContextCapabilitiesDefinition withAdd(List add)

Set the add property: The capabilities to add to the container.

Parameters:

add - the add value to set.

Returns:

the SecurityContextCapabilitiesDefinition object itself.

withDrop

public SecurityContextCapabilitiesDefinition withDrop(List drop)

Set the drop property: The capabilities to drop from the container.

Parameters:

drop - the drop value to set.

Returns:

the SecurityContextCapabilitiesDefinition object itself.

Applies to