Class ConnectionWrapper
java.lang.Object
com.eqixiac.equinix.core.model.ResourceImpl<Connection>
com.eqixiac.equinix.fabric.model.wrappers.ConnectionWrapper
- All Implemented Interfaces:
Resource<Connection>, Connection, DeletableResource
- Author:
- ianjones
-
Constructor Summary
ConstructorsConstructorDescriptionConnectionWrapper(ConnectionJson portJson, Pageable<Connection> serviceClient) -
Method Summary
Modifier and TypeMethodDescriptiondelete()booleanReturns whetherdelete(...)was called successfully on this model instance.performOperation(ConnectionOperationType connectionOperation) performOperation(ConnectionOperationType connectionOperation, String description) performOperation(ConnectionOperationType connectionOperationType, String description, Object bodyObject) Performs a connection action (accept, reject, retry...) and returns the action result (spec schemaConnectionAction).voidrefresh()update()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Connection
getAccount, getAdditionalInfo, getASide, getBandwidth, getChange, getChangeLog, getDescription, getDirection, getGeoScope, getHref, getIsRemote, getMarketplaceSubscription, getName, getNotifications, getOperation, getOrder, getProject, getRedundancy, getState, getType, getUuid, getZSideMethods inherited from interface Resource
getServiceClient
-
Constructor Details
-
ConnectionWrapper
-
-
Method Details
-
performOperation
public ConnectionAction performOperation(ConnectionOperationType connectionOperationType, String description, Object bodyObject) Description copied from interface:ConnectionPerforms a connection action (accept, reject, retry...) and returns the action result (spec schemaConnectionAction). Callrefresh()afterwards to re-read the connection's updated state.- Specified by:
performOperationin interfaceConnection- Parameters:
connectionOperationType- the action typedescription- action description (e.g. rejection reason)bodyObject- optional action data- Returns:
- the
ConnectionActionreturned by the API
-
performOperation
public ConnectionAction performOperation(ConnectionOperationType connectionOperation, String description) - Specified by:
performOperationin interfaceConnection
-
update
- Specified by:
updatein interfaceConnection
-
performOperation
- Specified by:
performOperationin interfaceConnection
-
delete
- Specified by:
deletein interfaceConnection
-
isDeleted
public boolean isDeleted()Description copied from interface:DeletableResourceReturns whetherdelete(...)was called successfully on this model instance.- Specified by:
isDeletedin interfaceDeletableResource- Returns:
trueonce this instance has been deleted
-
refresh
public void refresh()- Specified by:
refreshin interfaceConnection
-