public class ReplaceableItem
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
ReplaceableItem()
Default constructor for a new 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 |
---|---|
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.
|
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 java.lang.String getName()
public void setName(java.lang.String name)
name
- The name of the replaceable item.public ReplaceableItem withName(java.lang.String name)
Returns a reference to this object so that method calls can be chained together.
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)
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(java.util.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.