@Generated(value="OracleSDKGenerator", comments="API Version: 20180418") public final class PutMessagesResult extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
The response to a putMessages
request. It indicates the
number of failed messages as well as an array of results for successful and failed messages.
Note: Objects should always be created or deserialized using the PutMessagesResult.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the PutMessagesResult.Builder
, which maintain a
set of all explicitly set fields called PutMessagesResult.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
PutMessagesResult.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
PutMessagesResult(Integer failures,
List<PutMessagesResultEntry> entries)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static PutMessagesResult.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
List<PutMessagesResultEntry> |
getEntries()
An array of items representing the result of each message.
|
Integer |
getFailures()
The number of messages that failed to be added to the stream.
|
int |
hashCode() |
PutMessagesResult.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"failures","entries"}) public PutMessagesResult(Integer failures, List<PutMessagesResultEntry> entries)
public static PutMessagesResult.Builder builder()
Create a new builder.
public PutMessagesResult.Builder toBuilder()
public Integer getFailures()
The number of messages that failed to be added to the stream.
public List<PutMessagesResultEntry> getEntries()
An array of items representing the result of each message. The order is guaranteed to be the
same as in the PutMessagesDetails
object. If a message was successfully appended to
the stream, the entry includes the offset
, partition
, and timestamp
.
If a message failed to be appended to the stream, the entry includes the error
and
errorMessage
.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.