Package org.ivoa.dm.executionbroker
Class DockerExternalPort
java.lang.Object
org.ivoa.dm.executionbroker.DockerExternalPort
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations
@Embeddable
@VoDml(id="execbroker:DockerExternalPort",
role=dataType)
public class DockerExternalPort
extends Object
implements org.ivoa.vodml.jpa.JPAManipulations
Details of an external network port accessible from outside.
dataType: DockerExternalPort
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for DockerExternalPort, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new DockerExternalPortDockerExternalPort(Integer port, List<String> addresses) full parameter constructor.Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic DockerExternalPortcreate a DockerExternalPort in functional builder style.voidReturns addresses Attribute.getPort()Returns port Attribute.voidsetAddresses(List<String> pAddresses) Set addresses Attribute.voidSet port Attribute.voidupdateUsing(DockerExternalPort other) Update this object with the content of the given object.withAddresses(List<String> pAddresses) fluent setter for addresses Attribute.fluent setter for port Attribute.
-
Field Details
-
port
@VoDml(id="execbroker:DockerExternalPort.port", role=attribute, type="ivoa:integer", typeRole=primitiveType) protected Integer portThe port number of the external interface. The service will populate this value when it sets up the execution. : Attribute port : multiplicity 1 -
addresses
@VoDml(id="execbroker:DockerExternalPort.addresses", role=attribute, type="ivoa:string", typeRole=primitiveType) protected List<String> addressesA list of public hostnames or IPv4 or IPv6 addresses for the external interface. The service will populate this list when it sets up the execution. : Attribute addresses : multiplicity 1..*
-
-
Constructor Details
-
DockerExternalPort
public DockerExternalPort()Creates a new DockerExternalPort -
DockerExternalPort
full parameter constructor.- Parameters:
port- The port number of the external interface. The service will populate this value when it sets up the execution.addresses- A list of public hostnames or IPv4 or IPv6 addresses for the external interface. The service will populate this list when it sets up the execution.
-
DockerExternalPort
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
-
Method Details
-
updateUsing
Update this object with the content of the given object. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
getPort
Returns port Attribute.- Returns:
- port Attribute
-
setPort
Set port Attribute.- Parameters:
pPort- value to set
-
withPort
fluent setter for port Attribute.- Parameters:
pPort- value to set- Returns:
- DockerExternalPort
-
getAddresses
Returns addresses Attribute.- Returns:
- addresses Attribute
-
setAddresses
Set addresses Attribute.- Parameters:
pAddresses- value to set
-
withAddresses
fluent setter for addresses Attribute.- Parameters:
pAddresses- value to set- Returns:
- DockerExternalPort
-
createDockerExternalPort
public static DockerExternalPort createDockerExternalPort(Consumer<DockerExternalPort.DockerExternalPortBuilder> f) create a DockerExternalPort in functional builder style.- Parameters:
f- the functional builder.- Returns:
- an object initialized from the builder.
-
forceLoad
public void forceLoad()- Specified by:
forceLoadin interfaceorg.ivoa.vodml.jpa.JPAManipulations
-