public class Container extends Object
| Constructor and Description |
|---|
Container() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
command()
Get the command value.
|
List<EnvironmentVariable> |
environmentVariables()
Get the environmentVariables value.
|
String |
image()
Get the image value.
|
ContainerPropertiesInstanceView |
instanceView()
Get the instanceView value.
|
String |
name()
Get the name value.
|
List<ContainerPort> |
ports()
Get the ports value.
|
ResourceRequirements |
resources()
Get the resources value.
|
List<VolumeMount> |
volumeMounts()
Get the volumeMounts value.
|
Container |
withCommand(List<String> command)
Set the command value.
|
Container |
withEnvironmentVariables(List<EnvironmentVariable> environmentVariables)
Set the environmentVariables value.
|
Container |
withImage(String image)
Set the image value.
|
Container |
withName(String name)
Set the name value.
|
Container |
withPorts(List<ContainerPort> ports)
Set the ports value.
|
Container |
withResources(ResourceRequirements resources)
Set the resources value.
|
Container |
withVolumeMounts(List<VolumeMount> volumeMounts)
Set the volumeMounts value.
|
public String name()
public Container withName(String name)
name - the name value to setpublic String image()
public Container withImage(String image)
image - the image value to setpublic Container withCommand(List<String> command)
command - the command value to setpublic List<ContainerPort> ports()
public Container withPorts(List<ContainerPort> ports)
ports - the ports value to setpublic List<EnvironmentVariable> environmentVariables()
public Container withEnvironmentVariables(List<EnvironmentVariable> environmentVariables)
environmentVariables - the environmentVariables value to setpublic ContainerPropertiesInstanceView instanceView()
public ResourceRequirements resources()
public Container withResources(ResourceRequirements resources)
resources - the resources value to setpublic List<VolumeMount> volumeMounts()
public Container withVolumeMounts(List<VolumeMount> volumeMounts)
volumeMounts - the volumeMounts value to set/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/