Package com.vmware.nsx_policy.model
Class FullSyncInfo.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.FullSyncInfo.Builder
-
- Enclosing class:
- FullSyncInfo
public static final class FullSyncInfo.Builder extends java.lang.Object
Builder class forFullSyncInfo
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofFullSyncInfo
.
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofFullSyncInfo
.
-
-
Method Detail
-
setDataStreamingFromSourceEndTime
public FullSyncInfo.Builder setDataStreamingFromSourceEndTime(java.lang.Long dataStreamingFromSourceEndTime)
End time of streaming full state from source format: int64- Parameters:
dataStreamingFromSourceEndTime
- New value for the property.
-
setDataStreamingFromSourceProgress
public FullSyncInfo.Builder setDataStreamingFromSourceProgress(java.lang.String dataStreamingFromSourceProgress)
Details about full sync on sender side- Parameters:
dataStreamingFromSourceProgress
- New value for the property.
-
setDataStreamingFromSourceStartTime
public FullSyncInfo.Builder setDataStreamingFromSourceStartTime(java.lang.Long dataStreamingFromSourceStartTime)
Start time of streaming full state from source format: int64- Parameters:
dataStreamingFromSourceStartTime
- New value for the property.
-
setEndTime
public FullSyncInfo.Builder setEndTime(java.lang.Long endTime)
Full sync end time format: int64- Parameters:
endTime
- New value for the property.
-
setErrors
public FullSyncInfo.Builder setErrors(java.util.List<java.lang.String> errors)
Errors if any- Parameters:
errors
- New value for the property.
-
setFullSyncId
public FullSyncInfo.Builder setFullSyncId(java.lang.String fullSyncId)
Full sync id- Parameters:
fullSyncId
- New value for the property.
-
setReason
public FullSyncInfo.Builder setReason(java.lang.String reason)
Description of full sync reason- Parameters:
reason
- New value for the property.
-
setReasonCode
public FullSyncInfo.Builder setReasonCode(java.lang.String reasonCode)
Possible values are:-
FullSyncInfo.REASON_CODE_QUEUE_OVERFLOW_ON_TRANSMITTER
-
FullSyncInfo.REASON_CODE_QUEUE_OVERFLOW_ON_RECEIVER
-
FullSyncInfo.REASON_CODE_CONNECTION_RESTORED
-
FullSyncInfo.REASON_CODE_LM_ONBOARDED
-
FullSyncInfo.REASON_CODE_GM_SWITCHOVER
-
FullSyncInfo.REASON_CODE_RESTORED_GM_FROM_BACKUP
-
FullSyncInfo.REASON_CODE_RESTORED_LM_FROM_BACKUP
-
FullSyncInfo.REASON_CODE_BROWNFIELD_CONFIG_MIGRATION_FROM_LM_TO_GM
-
FullSyncInfo.REASON_CODE_GM_REQUESTED_OVERSIZED_PAYLOAD
-
FullSyncInfo.REASON_CODE_GM_REQUESTED_SITE_ONBOARDING
-
FullSyncInfo.REASON_CODE_GM_REQUESTED_OTHER
-
FullSyncInfo.REASON_CODE_LM_REQUSTED_OVERSIZED_PAYLOAD
-
FullSyncInfo.REASON_CODE_LM_REQUESTED_OTHER
-
FullSyncInfo.REASON_CODE_USER_REQUSTED
-
FullSyncInfo.REASON_CODE_OTHER_AR_INTERNAL
-
FullSyncInfo.REASON_CODE_POST_UPGRADE_GM
-
FullSyncInfo.REASON_CODE_POST_UPGRADE_LM
-
FullSyncInfo.REASON_CODE_UNKNOWN
- Parameters:
reasonCode
- New value for the property.
-
-
setReceiverEndTime
public FullSyncInfo.Builder setReceiverEndTime(java.lang.Long receiverEndTime)
End time of completing applying full state on receiver side format: int64- Parameters:
receiverEndTime
- New value for the property.
-
setReceiverStartTime
public FullSyncInfo.Builder setReceiverStartTime(java.lang.Long receiverStartTime)
Start time of applying full state on receiver side format: int64- Parameters:
receiverStartTime
- New value for the property.
-
setReceiverState
public FullSyncInfo.Builder setReceiverState(java.lang.String receiverState)
This is optional information, provides useful insights on receiver side once async channel hands over full state data to receiver.- Parameters:
receiverState
- New value for the property.
-
setReceiverTimeToApplyInMillis
public FullSyncInfo.Builder setReceiverTimeToApplyInMillis(java.lang.Long receiverTimeToApplyInMillis)
Time taken by application receiver to apply the full state received format: int64- Parameters:
receiverTimeToApplyInMillis
- New value for the property.
-
setStage
public FullSyncInfo.Builder setStage(java.lang.String stage)
Possible values are:-
FullSyncInfo.STAGE_NOT_STARTED
-
FullSyncInfo.STAGE_REQUESTED_FULL_STATE_FROM_SOURCE
-
FullSyncInfo.STAGE_TRANSFERRING_FULL_STATE
-
FullSyncInfo.STAGE_COMPLETED_TRANSFERRING_FULL_STATE
-
FullSyncInfo.STAGE_DESTINATION_APPLYING_FULL_STATE
-
FullSyncInfo.STAGE_COMPLETED_SUCCESSFUL
-
FullSyncInfo.STAGE_TIMEOUT_ON_SOURCE_RECEIVE_FULL_STATE
-
FullSyncInfo.STAGE_TIMEOUT_ON_DESTINATION_APPLY
-
FullSyncInfo.STAGE_COMPLETED_FAILED
- Parameters:
stage
- New value for the property.
-
-
setStartTime
public FullSyncInfo.Builder setStartTime(java.lang.Long startTime)
Full sync start time format: int64- Parameters:
startTime
- New value for the property.
-
setStatus
public FullSyncInfo.Builder setStatus(java.lang.String status)
Possible values are: Full sync status- Parameters:
status
- New value for the property.
-
setWarnings
public FullSyncInfo.Builder setWarnings(java.util.List<java.lang.String> warnings)
Errors if any- Parameters:
warnings
- New value for the property.
-
build
public FullSyncInfo build()
-
-