Class ChildShard
- java.lang.Object
-
- software.amazon.awssdk.services.kinesis.model.ChildShard
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<ChildShard.Builder,ChildShard>
@Generated("software.amazon.awssdk:codegen") public final class ChildShard extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ChildShard.Builder,ChildShard>
Output parameter of the GetRecords API. The existing child shard of the current shard.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ChildShard.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ChildShard.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
HashKeyRange
hashKeyRange()
Returns the value of the HashKeyRange property for this object.boolean
hasParentShards()
For responses, this returns true if the service returned a value for the ParentShards property.List<String>
parentShards()
The current shard that is the parent of the existing child shard.List<SdkField<?>>
sdkFields()
static Class<? extends ChildShard.Builder>
serializableBuilderClass()
String
shardId()
The shard ID of the existing child shard of the current shard.ChildShard.Builder
toBuilder()
String
toString()
Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
shardId
public final String shardId()
The shard ID of the existing child shard of the current shard.
- Returns:
- The shard ID of the existing child shard of the current shard.
-
hasParentShards
public final boolean hasParentShards()
For responses, this returns true if the service returned a value for the ParentShards property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
parentShards
public final List<String> parentShards()
The current shard that is the parent of the existing child shard.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasParentShards()
method.- Returns:
- The current shard that is the parent of the existing child shard.
-
hashKeyRange
public final HashKeyRange hashKeyRange()
Returns the value of the HashKeyRange property for this object.- Returns:
- The value of the HashKeyRange property for this object.
-
toBuilder
public ChildShard.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<ChildShard.Builder,ChildShard>
-
builder
public static ChildShard.Builder builder()
-
serializableBuilderClass
public static Class<? extends ChildShard.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-