@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BlockReference extends Object implements Serializable, Cloneable, StructuredPojo
A reference to a block.
Constructor and Description |
---|
BlockReference() |
Modifier and Type | Method and Description |
---|---|
BlockReference |
clone() |
boolean |
equals(Object obj) |
Integer |
getBeginOffset()
Offset of the start of the block within its parent block.
|
String |
getBlockId()
Unique identifier for the block.
|
List<ChildBlock> |
getChildBlocks()
List of child blocks within this block.
|
Integer |
getEndOffset()
Offset of the end of the block within its parent block.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBeginOffset(Integer beginOffset)
Offset of the start of the block within its parent block.
|
void |
setBlockId(String blockId)
Unique identifier for the block.
|
void |
setChildBlocks(Collection<ChildBlock> childBlocks)
List of child blocks within this block.
|
void |
setEndOffset(Integer endOffset)
Offset of the end of the block within its parent block.
|
String |
toString()
Returns a string representation of this object.
|
BlockReference |
withBeginOffset(Integer beginOffset)
Offset of the start of the block within its parent block.
|
BlockReference |
withBlockId(String blockId)
Unique identifier for the block.
|
BlockReference |
withChildBlocks(ChildBlock... childBlocks)
List of child blocks within this block.
|
BlockReference |
withChildBlocks(Collection<ChildBlock> childBlocks)
List of child blocks within this block.
|
BlockReference |
withEndOffset(Integer endOffset)
Offset of the end of the block within its parent block.
|
public void setBlockId(String blockId)
Unique identifier for the block.
blockId
- Unique identifier for the block.public String getBlockId()
Unique identifier for the block.
public BlockReference withBlockId(String blockId)
Unique identifier for the block.
blockId
- Unique identifier for the block.public void setBeginOffset(Integer beginOffset)
Offset of the start of the block within its parent block.
beginOffset
- Offset of the start of the block within its parent block.public Integer getBeginOffset()
Offset of the start of the block within its parent block.
public BlockReference withBeginOffset(Integer beginOffset)
Offset of the start of the block within its parent block.
beginOffset
- Offset of the start of the block within its parent block.public void setEndOffset(Integer endOffset)
Offset of the end of the block within its parent block.
endOffset
- Offset of the end of the block within its parent block.public Integer getEndOffset()
Offset of the end of the block within its parent block.
public BlockReference withEndOffset(Integer endOffset)
Offset of the end of the block within its parent block.
endOffset
- Offset of the end of the block within its parent block.public List<ChildBlock> getChildBlocks()
List of child blocks within this block.
public void setChildBlocks(Collection<ChildBlock> childBlocks)
List of child blocks within this block.
childBlocks
- List of child blocks within this block.public BlockReference withChildBlocks(ChildBlock... childBlocks)
List of child blocks within this block.
NOTE: This method appends the values to the existing list (if any). Use
setChildBlocks(java.util.Collection)
or withChildBlocks(java.util.Collection)
if you want to
override the existing values.
childBlocks
- List of child blocks within this block.public BlockReference withChildBlocks(Collection<ChildBlock> childBlocks)
List of child blocks within this block.
childBlocks
- List of child blocks within this block.public String toString()
toString
in class Object
Object.toString()
public BlockReference clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.