Class WorkloadNetworkSegmentInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.resourcemanager.avs.fluent.models.WorkloadNetworkSegmentInner
-
public final class WorkloadNetworkSegmentInner extends com.azure.core.management.ProxyResource
NSX Segment.
-
-
Constructor Summary
Constructors Constructor Description WorkloadNetworkSegmentInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
connectedGateway()
Get the connectedGateway property: Gateway which to connect segment to.String
displayName()
Get the displayName property: Display name of the segment.List<WorkloadNetworkSegmentPortVif>
portVif()
Get the portVif property: Port Vif which segment is associated with.WorkloadNetworkSegmentProvisioningState
provisioningState()
Get the provisioningState property: The provisioning state.Long
revision()
Get the revision property: NSX revision number.SegmentStatusEnum
status()
Get the status property: Segment status.WorkloadNetworkSegmentSubnet
subnet()
Get the subnet property: Subnet which to connect segment to.void
validate()
Validates the instance.WorkloadNetworkSegmentInner
withConnectedGateway(String connectedGateway)
Set the connectedGateway property: Gateway which to connect segment to.WorkloadNetworkSegmentInner
withDisplayName(String displayName)
Set the displayName property: Display name of the segment.WorkloadNetworkSegmentInner
withRevision(Long revision)
Set the revision property: NSX revision number.WorkloadNetworkSegmentInner
withSubnet(WorkloadNetworkSegmentSubnet subnet)
Set the subnet property: Subnet which to connect segment to.
-
-
-
Method Detail
-
displayName
public String displayName()
Get the displayName property: Display name of the segment.- Returns:
- the displayName value.
-
withDisplayName
public WorkloadNetworkSegmentInner withDisplayName(String displayName)
Set the displayName property: Display name of the segment.- Parameters:
displayName
- the displayName value to set.- Returns:
- the WorkloadNetworkSegmentInner object itself.
-
connectedGateway
public String connectedGateway()
Get the connectedGateway property: Gateway which to connect segment to.- Returns:
- the connectedGateway value.
-
withConnectedGateway
public WorkloadNetworkSegmentInner withConnectedGateway(String connectedGateway)
Set the connectedGateway property: Gateway which to connect segment to.- Parameters:
connectedGateway
- the connectedGateway value to set.- Returns:
- the WorkloadNetworkSegmentInner object itself.
-
subnet
public WorkloadNetworkSegmentSubnet subnet()
Get the subnet property: Subnet which to connect segment to.- Returns:
- the subnet value.
-
withSubnet
public WorkloadNetworkSegmentInner withSubnet(WorkloadNetworkSegmentSubnet subnet)
Set the subnet property: Subnet which to connect segment to.- Parameters:
subnet
- the subnet value to set.- Returns:
- the WorkloadNetworkSegmentInner object itself.
-
portVif
public List<WorkloadNetworkSegmentPortVif> portVif()
Get the portVif property: Port Vif which segment is associated with.- Returns:
- the portVif value.
-
status
public SegmentStatusEnum status()
Get the status property: Segment status.- Returns:
- the status value.
-
provisioningState
public WorkloadNetworkSegmentProvisioningState provisioningState()
Get the provisioningState property: The provisioning state.- Returns:
- the provisioningState value.
-
revision
public Long revision()
Get the revision property: NSX revision number.- Returns:
- the revision value.
-
withRevision
public WorkloadNetworkSegmentInner withRevision(Long revision)
Set the revision property: NSX revision number.- Parameters:
revision
- the revision value to set.- Returns:
- the WorkloadNetworkSegmentInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-