public class ReplaceableItem
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<ReplaceableAttribute> |
attributes
The list of attributes for a replaceable item.
|
private java.lang.String |
name
The name of the replaceable item.
|
Constructor and Description |
---|
ReplaceableItem()
Default constructor for ReplaceableItem object.
|
ReplaceableItem(java.lang.String name)
Constructs a new ReplaceableItem object.
|
ReplaceableItem(java.lang.String name,
java.util.List<ReplaceableAttribute> attributes)
Constructs a new ReplaceableItem object.
|
Modifier and Type | Method and Description |
---|---|
ReplaceableItem |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<ReplaceableAttribute> |
getAttributes()
The list of attributes for a replaceable item.
|
java.lang.String |
getName()
The name of the replaceable item.
|
int |
hashCode() |
void |
setAttributes(java.util.Collection<ReplaceableAttribute> attributes)
The list of attributes for a replaceable item.
|
void |
setName(java.lang.String name)
The name of the replaceable item.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ReplaceableItem |
withAttributes(java.util.Collection<ReplaceableAttribute> attributes)
The list of attributes for a replaceable item.
|
ReplaceableItem |
withAttributes(ReplaceableAttribute... attributes)
The list of attributes for a replaceable item.
|
ReplaceableItem |
withName(java.lang.String name)
The name of the replaceable item.
|
private java.lang.String name
private SdkInternalList<ReplaceableAttribute> attributes
public ReplaceableItem()
public ReplaceableItem(java.lang.String name)
name
- The name of the replaceable item.public ReplaceableItem(java.lang.String name, java.util.List<ReplaceableAttribute> attributes)
name
- The name of the replaceable item.attributes
- The list of attributes for a replaceable item.public void setName(java.lang.String name)
name
- The name of the replaceable item.public java.lang.String getName()
public ReplaceableItem withName(java.lang.String name)
name
- The name of the replaceable item.public java.util.List<ReplaceableAttribute> getAttributes()
public void setAttributes(java.util.Collection<ReplaceableAttribute> attributes)
attributes
- The list of attributes for a replaceable item.public ReplaceableItem withAttributes(ReplaceableAttribute... attributes)
NOTE: This method appends the values to the existing list (if
any). Use setAttributes(java.util.Collection)
or
withAttributes(java.util.Collection)
if you want to override the
existing values.
attributes
- The list of attributes for a replaceable item.public ReplaceableItem withAttributes(java.util.Collection<ReplaceableAttribute> attributes)
attributes
- The list of attributes for a replaceable item.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ReplaceableItem clone()
clone
in class java.lang.Object