Package com.mxraven.admin.model
Record Class SimulateScriptRevisionRequest
java.lang.Object
java.lang.Record
com.mxraven.admin.model.SimulateScriptRevisionRequest
- Record Components:
fixture- synthesized messagehttpStubs- responsesmx.httpcalls receive (at most two)recipientSets- set name to member addresses, standing in for tenant sets
public record SimulateScriptRevisionRequest(SimulationFixture fixture, List<SimulationHTTPStub> httpStubs, Map<String,List<String>> recipientSets)
extends Record
Request body for
POST /v2/tenants/{slug}/listeners/{id}/script/revisions/{revision}/simulate.-
Constructor Summary
ConstructorsConstructorDescriptionSimulateScriptRevisionRequest(SimulationFixture fixture, List<SimulationHTTPStub> httpStubs, Map<String, List<String>> recipientSets) Creates a simulation request, copying every collection. -
Method Summary
Modifier and TypeMethodDescriptionempty()Creates an empty simulation request: neutral fixture, no stubs or sets.final booleanIndicates whether some other object is "equal to" this one.fixture()Returns the value of thefixturerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thehttpStubsrecord component.Returns the value of therecipientSetsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SimulateScriptRevisionRequest
public SimulateScriptRevisionRequest(SimulationFixture fixture, List<SimulationHTTPStub> httpStubs, Map<String, List<String>> recipientSets) Creates a simulation request, copying every collection.
-
-
Method Details
-
empty
Creates an empty simulation request: neutral fixture, no stubs or sets.- Returns:
- the request
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
fixture
Returns the value of thefixturerecord component.- Returns:
- the value of the
fixturerecord component
-
httpStubs
Returns the value of thehttpStubsrecord component.- Returns:
- the value of the
httpStubsrecord component
-
recipientSets
Returns the value of therecipientSetsrecord component.- Returns:
- the value of the
recipientSetsrecord component
-