Package com.morpheusdata.request
Class BuildResizeChangelistRequest<T>
java.lang.Object
com.morpheusdata.request.BuildResizeChangelistRequest<T>
- Type Parameters:
T- the type of existing items being compared
Request object for building a resize changelist.
- Since:
- 1.3.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe desired configuration as a list of maps.The existing items of type T.protected ComputeServerThe compute server being resized.protected booleanWhether to use soft matching for comparison. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidsetDesired(List<Map<String, Object>> desired) voidsetExisting(List<T> existing) voidsetServer(ComputeServer server) voidsetSoftMatch(boolean softMatch)
-
Field Details
-
server
The compute server being resized. -
desired
The desired configuration as a list of maps. -
existing
The existing items of type T. -
softMatch
protected boolean softMatchWhether to use soft matching for comparison.A match is considered soft when we can't rely on database IDs to make a comparison. In that case, it's necessary to use other attributes to determine whether the two items are the "same". This comes into effect when applying a desired configuration across multiple containers in an instance.
-
-
Constructor Details
-
BuildResizeChangelistRequest
public BuildResizeChangelistRequest()
-
-
Method Details
-
getServer
-
setServer
-
getExisting
-
setExisting
-
getDesired
-
setDesired
-
isSoftMatch
public boolean isSoftMatch() -
setSoftMatch
public void setSoftMatch(boolean softMatch)
-