Class NetworkConnectOptions
java.lang.Object
io.github.alersrt.pod4j.openapi.model.NetworkConnectOptions
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class NetworkConnectOptions
extends Object
implements Serializable
NetworkConnectOptions describes options for connecting a container to a network
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAliasesItem(String aliasesItem) addStaticIpsItem(String staticIpsItem) booleanstatic NetworkConnectOptionsCreate an instance of NetworkConnectOptions given an JSON stringAliases contains a list of names which the dns server should resolve to this container.Get containerInterfaceName for this container.Driver-specific options for this container.StaticIPs for this container.StaticMac for this container.inthashCode()interfaceName(String interfaceName) putOptionsItem(String key, String optionsItem) voidsetAliases(List<String> aliases) voidsetContainer(String container) voidsetInterfaceName(String interfaceName) voidsetOptions(Map<String, String> options) voidsetStaticIps(List<String> staticIps) voidsetStaticMac(String staticMac) toJson()Convert an instance of NetworkConnectOptions to an JSON stringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ALIASES
- See Also:
-
SERIALIZED_NAME_CONTAINER
- See Also:
-
SERIALIZED_NAME_INTERFACE_NAME
- See Also:
-
SERIALIZED_NAME_OPTIONS
- See Also:
-
SERIALIZED_NAME_STATIC_IPS
- See Also:
-
SERIALIZED_NAME_STATIC_MAC
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
NetworkConnectOptions
public NetworkConnectOptions()
-
-
Method Details
-
aliases
-
addAliasesItem
-
getAliases
Aliases contains a list of names which the dns server should resolve to this container. Should only be set when DNSEnabled is true on the Network. If aliases are set but there is no dns support for this network the network interface implementation should ignore this and NOT error. Optional.- Returns:
- aliases
-
setAliases
-
container
-
getContainer
Get container- Returns:
- container
-
setContainer
-
interfaceName
-
getInterfaceName
InterfaceName for this container. Required in the backend. Optional in the frontend. Will be filled with ethX (where X is a integer) when empty.- Returns:
- interfaceName
-
setInterfaceName
-
options
-
putOptionsItem
-
getOptions
Driver-specific options for this container.- Returns:
- options
-
setOptions
-
staticIps
-
addStaticIpsItem
-
getStaticIps
StaticIPs for this container. Optional.- Returns:
- staticIps
-
setStaticIps
-
staticMac
-
getStaticMac
StaticMac for this container. Optional.- Returns:
- staticMac
-
setStaticMac
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to NetworkConnectOptions
-
fromJson
Create an instance of NetworkConnectOptions given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of NetworkConnectOptions
- Throws:
IOException- if the JSON string is invalid with respect to NetworkConnectOptions
-
toJson
Convert an instance of NetworkConnectOptions to an JSON string- Returns:
- JSON string
-