SecurityContextCapabilitiesDefinition Class
- java.
lang. Object - com.
azure. resourcemanager. containerinstance. models. SecurityContextCapabilitiesDefinition
- com.
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 Security |
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
Security |
fromJson(JsonReader jsonReader)
Reads an instance of Security |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Security |
withAdd(List<String> add)
Set the add property: The capabilities to add to the container. |
Security |
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
Get the add property: The capabilities to add to the container.
Returns:
drop
public List
Get the drop property: The capabilities to drop from the container.
Returns:
fromJson
public static SecurityContextCapabilitiesDefinition fromJson(JsonReader jsonReader)
Reads an instance of SecurityContextCapabilitiesDefinition from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
withAdd
public SecurityContextCapabilitiesDefinition withAdd(List
Set the add property: The capabilities to add to the container.
Parameters:
Returns:
withDrop
public SecurityContextCapabilitiesDefinition withDrop(List
Set the drop property: The capabilities to drop from the container.
Parameters:
Returns:
Applies to
Azure SDK for Java