@Generated(value="software.amazon.awssdk:codegen") public final class BlockReference extends Object implements SdkPojo, Serializable, ToCopyableBuilder<BlockReference.Builder,BlockReference>
A reference to a block.
| Modifier and Type | Class and Description |
|---|---|
static interface |
BlockReference.Builder |
| Modifier and Type | Method and Description |
|---|---|
Integer |
beginOffset()
Offset of the start of the block within its parent block.
|
String |
blockId()
Unique identifier for the block.
|
static BlockReference.Builder |
builder() |
List<ChildBlock> |
childBlocks()
List of child blocks within this block.
|
Integer |
endOffset()
Offset of the end of the block within its parent block.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasChildBlocks()
For responses, this returns true if the service returned a value for the ChildBlocks property.
|
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends BlockReference.Builder> |
serializableBuilderClass() |
BlockReference.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String blockId()
Unique identifier for the block.
public final Integer beginOffset()
Offset of the start of the block within its parent block.
public final Integer endOffset()
Offset of the end of the block within its parent block.
public final boolean hasChildBlocks()
isEmpty() 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.public final List<ChildBlock> childBlocks()
List of child blocks within this block.
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 hasChildBlocks() method.
public BlockReference.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<BlockReference.Builder,BlockReference>public static BlockReference.Builder builder()
public static Class<? extends BlockReference.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.