Package com.vmware.nsx_policy.model
Class VirtualMachineDetails.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.VirtualMachineDetails.Builder
-
- Enclosing class:
- VirtualMachineDetails
public static final class VirtualMachineDetails.Builder extends java.lang.Object
Builder class forVirtualMachineDetails
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofVirtualMachineDetails
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VirtualMachineDetails
build()
VirtualMachineDetails.Builder
setActiveSessions(java.util.List<UserSession> activeSessions)
List of active (still logged in) user login/session data (no limit).VirtualMachineDetails.Builder
setArchivedSessions(java.util.List<UserSession> archivedSessions)
Optional list of up to 5 most recent archived (previously logged in) user login/session data.VirtualMachineDetails.Builder
setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource.VirtualMachineDetails.Builder
setSchema(java.lang.String schema)
Schema for this resource This property may be present in responses from the server, but if it is present in a request to server it will be ignored.VirtualMachineDetails.Builder
setSelf(SelfResourceLink self)
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofVirtualMachineDetails
.
-
-
Method Detail
-
setLinks
public VirtualMachineDetails.Builder setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource. Ignored on PUT and POST. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
links
- New value for the property.
-
setSchema
public VirtualMachineDetails.Builder setSchema(java.lang.String schema)
Schema for this resource This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
schema
- New value for the property.
-
setSelf
public VirtualMachineDetails.Builder setSelf(SelfResourceLink self)
- Parameters:
self
- New value for the property.
-
setActiveSessions
public VirtualMachineDetails.Builder setActiveSessions(java.util.List<UserSession> activeSessions)
List of active (still logged in) user login/session data (no limit).- Parameters:
activeSessions
- New value for the property.
-
setArchivedSessions
public VirtualMachineDetails.Builder setArchivedSessions(java.util.List<UserSession> archivedSessions)
Optional list of up to 5 most recent archived (previously logged in) user login/session data.- Parameters:
archivedSessions
- New value for the property.
-
build
public VirtualMachineDetails build()
-
-