Class WorkloadNetworkSegmentProperties


  • public final class WorkloadNetworkSegmentProperties
    extends Object
    NSX Segment Properties.
    • Constructor Detail

      • WorkloadNetworkSegmentProperties

        public WorkloadNetworkSegmentProperties()
    • Method Detail

      • displayName

        public String displayName()
        Get the displayName property: Display name of the segment.
        Returns:
        the displayName value.
      • withDisplayName

        public WorkloadNetworkSegmentProperties withDisplayName​(String displayName)
        Set the displayName property: Display name of the segment.
        Parameters:
        displayName - the displayName value to set.
        Returns:
        the WorkloadNetworkSegmentProperties object itself.
      • connectedGateway

        public String connectedGateway()
        Get the connectedGateway property: Gateway which to connect segment to.
        Returns:
        the connectedGateway value.
      • withConnectedGateway

        public WorkloadNetworkSegmentProperties withConnectedGateway​(String connectedGateway)
        Set the connectedGateway property: Gateway which to connect segment to.
        Parameters:
        connectedGateway - the connectedGateway value to set.
        Returns:
        the WorkloadNetworkSegmentProperties object itself.
      • subnet

        public WorkloadNetworkSegmentSubnet subnet()
        Get the subnet property: Subnet which to connect segment to.
        Returns:
        the subnet value.
      • status

        public SegmentStatusEnum status()
        Get the status property: Segment status.
        Returns:
        the status value.
      • revision

        public Long revision()
        Get the revision property: NSX revision number.
        Returns:
        the revision value.
      • withRevision

        public WorkloadNetworkSegmentProperties withRevision​(Long revision)
        Set the revision property: NSX revision number.
        Parameters:
        revision - the revision value to set.
        Returns:
        the WorkloadNetworkSegmentProperties object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.