Class PerNetworkOptions
java.lang.Object
io.github.alersrt.pod4j.openapi.model.PerNetworkOptions
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-11-19T11:19:05.435500352+07:00[Asia/Barnaul]",
comments="Generator version: 7.7.0")
public class PerNetworkOptions
extends Object
PerNetworkOptions
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAliasesItem(String aliasesItem) addStaticIpsItem(String staticIpsItem) booleanstatic PerNetworkOptionsCreate an instance of PerNetworkOptions given an JSON stringAliases contains a list of names which the dns server should resolve to this container.InterfaceName 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) voidsetInterfaceName(String interfaceName) voidsetOptions(Map<String, String> options) voidsetStaticIps(List<String> staticIps) voidsetStaticMac(String staticMac) toJson()Convert an instance of PerNetworkOptions to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ALIASES
- 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
-
PerNetworkOptions
public PerNetworkOptions()
-
-
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
-
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
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to PerNetworkOptions
-
fromJson
Create an instance of PerNetworkOptions given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PerNetworkOptions
- Throws:
IOException- if the JSON string is invalid with respect to PerNetworkOptions
-
toJson
Convert an instance of PerNetworkOptions to an JSON string- Returns:
- JSON string
-