Class PortOpts
- java.lang.Object
-
- io.fabric8.openshift.api.model.machine.v1alpha1.PortOpts
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<PortOptsBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class PortOpts extends Object implements io.fabric8.kubernetes.api.builder.Editable<PortOptsBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PortOpts()No args constructor for use in serializationPortOpts(Boolean adminStateUp, List<AddressPair> allowedAddressPairs, String description, List<FixedIPs> fixedIPs, String hostID, String macAddress, String nameSuffix, String networkID, Boolean portSecurity, Map<String,String> profile, String projectID, List<String> securityGroups, List<String> tags, String tenantID, Boolean trunk, String vnicType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PortOptsBuilderedit()Map<String,Object>getAdditionalProperties()BooleangetAdminStateUp()adminStateUp sets the administrative state of the created port to up (true), or down (false).List<AddressPair>getAllowedAddressPairs()allowedAddressPairs specifies a set of allowed address pairs to add to the port.StringgetDescription()description specifies the description of the created port.List<FixedIPs>getFixedIPs()fixedIPs specifies a set of fixed IPs to assign to the port.StringgetHostID()The ID of the host where the port is allocated.StringgetMacAddress()macAddress specifies the MAC address of the created port.StringgetNameSuffix()If nameSuffix is specified the created port will be named <machine name>-<nameSuffix>.StringgetNetworkID()networkID is the ID of the network the port will be created in.BooleangetPortSecurity()enable or disable security on a given port incompatible with securityGroups and allowedAddressPairsMap<String,String>getProfile()A dictionary that enables the application running on the specified host to pass and receive virtual network interface (VIF) port-specific information to the plug-in.StringgetProjectID()projectID specifies the project ID of the created port.List<String>getSecurityGroups()securityGroups specifies a set of security group UUIDs to use instead of the machine's default security groups.List<String>getTags()tags species a set of tags to add to the port.StringgetTenantID()tenantID specifies the tenant ID of the created port.BooleangetTrunk()Enables and disables trunk at port level.StringgetVnicType()The virtual network interface card (vNIC) type that is bound to the neutron port.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAdminStateUp(Boolean adminStateUp)adminStateUp sets the administrative state of the created port to up (true), or down (false).voidsetAllowedAddressPairs(List<AddressPair> allowedAddressPairs)allowedAddressPairs specifies a set of allowed address pairs to add to the port.voidsetDescription(String description)description specifies the description of the created port.voidsetFixedIPs(List<FixedIPs> fixedIPs)fixedIPs specifies a set of fixed IPs to assign to the port.voidsetHostID(String hostID)The ID of the host where the port is allocated.voidsetMacAddress(String macAddress)macAddress specifies the MAC address of the created port.voidsetNameSuffix(String nameSuffix)If nameSuffix is specified the created port will be named <machine name>-<nameSuffix>.voidsetNetworkID(String networkID)networkID is the ID of the network the port will be created in.voidsetPortSecurity(Boolean portSecurity)enable or disable security on a given port incompatible with securityGroups and allowedAddressPairsvoidsetProfile(Map<String,String> profile)A dictionary that enables the application running on the specified host to pass and receive virtual network interface (VIF) port-specific information to the plug-in.voidsetProjectID(String projectID)projectID specifies the project ID of the created port.voidsetSecurityGroups(List<String> securityGroups)securityGroups specifies a set of security group UUIDs to use instead of the machine's default security groups.voidsetTags(List<String> tags)tags species a set of tags to add to the port.voidsetTenantID(String tenantID)tenantID specifies the tenant ID of the created port.voidsetTrunk(Boolean trunk)Enables and disables trunk at port level.voidsetVnicType(String vnicType)The virtual network interface card (vNIC) type that is bound to the neutron port.PortOptsBuildertoBuilder()
-
-
-
Constructor Detail
-
PortOpts
public PortOpts()
No args constructor for use in serialization
-
PortOpts
public PortOpts(Boolean adminStateUp, List<AddressPair> allowedAddressPairs, String description, List<FixedIPs> fixedIPs, String hostID, String macAddress, String nameSuffix, String networkID, Boolean portSecurity, Map<String,String> profile, String projectID, List<String> securityGroups, List<String> tags, String tenantID, Boolean trunk, String vnicType)
-
-
Method Detail
-
getAdminStateUp
public Boolean getAdminStateUp()
adminStateUp sets the administrative state of the created port to up (true), or down (false).
-
setAdminStateUp
public void setAdminStateUp(Boolean adminStateUp)
adminStateUp sets the administrative state of the created port to up (true), or down (false).
-
getAllowedAddressPairs
public List<AddressPair> getAllowedAddressPairs()
allowedAddressPairs specifies a set of allowed address pairs to add to the port.
-
setAllowedAddressPairs
public void setAllowedAddressPairs(List<AddressPair> allowedAddressPairs)
allowedAddressPairs specifies a set of allowed address pairs to add to the port.
-
getDescription
public String getDescription()
description specifies the description of the created port.
-
setDescription
public void setDescription(String description)
description specifies the description of the created port.
-
getFixedIPs
public List<FixedIPs> getFixedIPs()
fixedIPs specifies a set of fixed IPs to assign to the port. They must all be valid for the port's network.
-
setFixedIPs
public void setFixedIPs(List<FixedIPs> fixedIPs)
fixedIPs specifies a set of fixed IPs to assign to the port. They must all be valid for the port's network.
-
getHostID
public String getHostID()
The ID of the host where the port is allocated. Do not use this field: it cannot be used correctly. Deprecated: hostID is silently ignored. It will be removed with no replacement.
-
setHostID
public void setHostID(String hostID)
The ID of the host where the port is allocated. Do not use this field: it cannot be used correctly. Deprecated: hostID is silently ignored. It will be removed with no replacement.
-
getMacAddress
public String getMacAddress()
macAddress specifies the MAC address of the created port.
-
setMacAddress
public void setMacAddress(String macAddress)
macAddress specifies the MAC address of the created port.
-
getNameSuffix
public String getNameSuffix()
If nameSuffix is specified the created port will be named <machine name>-<nameSuffix>. If not specified the port will be named <machine-name>-<index of this port>.
-
setNameSuffix
public void setNameSuffix(String nameSuffix)
If nameSuffix is specified the created port will be named <machine name>-<nameSuffix>. If not specified the port will be named <machine-name>-<index of this port>.
-
getNetworkID
public String getNetworkID()
networkID is the ID of the network the port will be created in. It is required.
-
setNetworkID
public void setNetworkID(String networkID)
networkID is the ID of the network the port will be created in. It is required.
-
getPortSecurity
public Boolean getPortSecurity()
enable or disable security on a given port incompatible with securityGroups and allowedAddressPairs
-
setPortSecurity
public void setPortSecurity(Boolean portSecurity)
enable or disable security on a given port incompatible with securityGroups and allowedAddressPairs
-
getProfile
public Map<String,String> getProfile()
A dictionary that enables the application running on the specified host to pass and receive virtual network interface (VIF) port-specific information to the plug-in.
-
setProfile
public void setProfile(Map<String,String> profile)
A dictionary that enables the application running on the specified host to pass and receive virtual network interface (VIF) port-specific information to the plug-in.
-
getProjectID
public String getProjectID()
projectID specifies the project ID of the created port. Note that this requires OpenShift to have administrative permissions, which is typically not the case. Use of this field is not recommended. Deprecated: projectID is silently ignored.
-
setProjectID
public void setProjectID(String projectID)
projectID specifies the project ID of the created port. Note that this requires OpenShift to have administrative permissions, which is typically not the case. Use of this field is not recommended. Deprecated: projectID is silently ignored.
-
getSecurityGroups
public List<String> getSecurityGroups()
securityGroups specifies a set of security group UUIDs to use instead of the machine's default security groups. The default security groups will be used if this is left empty or not specified.
-
setSecurityGroups
public void setSecurityGroups(List<String> securityGroups)
securityGroups specifies a set of security group UUIDs to use instead of the machine's default security groups. The default security groups will be used if this is left empty or not specified.
-
getTenantID
public String getTenantID()
tenantID specifies the tenant ID of the created port. Note that this requires OpenShift to have administrative permissions, which is typically not the case. Use of this field is not recommended. Deprecated: tenantID is silently ignored.
-
setTenantID
public void setTenantID(String tenantID)
tenantID specifies the tenant ID of the created port. Note that this requires OpenShift to have administrative permissions, which is typically not the case. Use of this field is not recommended. Deprecated: tenantID is silently ignored.
-
getTrunk
public Boolean getTrunk()
Enables and disables trunk at port level. If not provided, openStackMachine.Spec.Trunk is inherited.
-
setTrunk
public void setTrunk(Boolean trunk)
Enables and disables trunk at port level. If not provided, openStackMachine.Spec.Trunk is inherited.
-
getVnicType
public String getVnicType()
The virtual network interface card (vNIC) type that is bound to the neutron port.
-
setVnicType
public void setVnicType(String vnicType)
The virtual network interface card (vNIC) type that is bound to the neutron port.
-
edit
public PortOptsBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<PortOptsBuilder>
-
toBuilder
public PortOptsBuilder toBuilder()
-
-