public class ReplaceableItem extends Object implements Serializable
Constructor and Description |
---|
ReplaceableItem()
Default constructor for a new ReplaceableItem object.
|
ReplaceableItem(String name)
Constructs a new ReplaceableItem object.
|
ReplaceableItem(String name,
List<ReplaceableAttribute> attributes)
Constructs a new ReplaceableItem object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<ReplaceableAttribute> |
getAttributes()
The list of attributes for a replaceable item.
|
String |
getName()
The name of the replaceable item.
|
int |
hashCode() |
void |
setAttributes(Collection<ReplaceableAttribute> attributes)
The list of attributes for a replaceable item.
|
void |
setName(String name)
The name of the replaceable item.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ReplaceableItem |
withAttributes(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(String name)
The name of the replaceable item.
|
public ReplaceableItem()
public ReplaceableItem(String name)
name
- The name of the replaceable item.public ReplaceableItem(String name, List<ReplaceableAttribute> attributes)
name
- The name of the replaceable item.attributes
- The list of attributes for a replaceable item.public String getName()
public void setName(String name)
name
- The name of the replaceable item.public ReplaceableItem withName(String name)
Returns a reference to this object so that method calls can be chained together.
name
- The name of the replaceable item.public List<ReplaceableAttribute> getAttributes()
public void setAttributes(Collection<ReplaceableAttribute> attributes)
attributes
- The list of attributes for a replaceable item.public ReplaceableItem withAttributes(ReplaceableAttribute... attributes)
Returns a reference to this object so that method calls can be chained together.
attributes
- The list of attributes for a replaceable item.public ReplaceableItem withAttributes(Collection<ReplaceableAttribute> attributes)
Returns a reference to this object so that method calls can be chained together.
attributes
- The list of attributes for a replaceable item.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.