@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListArtifactsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
The result structure for the list artifacts request.
Constructor and Description |
---|
ListArtifactsResult() |
Modifier and Type | Method and Description |
---|---|
ListArtifactsResult |
clone() |
boolean |
equals(Object obj) |
List<Artifact> |
getArtifacts()
A list of artifacts.
|
String |
getNextToken()
A pagination token.
|
int |
hashCode() |
void |
setArtifacts(Collection<Artifact> artifacts)
A list of artifacts.
|
void |
setNextToken(String nextToken)
A pagination token.
|
String |
toString()
Returns a string representation of this object.
|
ListArtifactsResult |
withArtifacts(Artifact... artifacts)
A list of artifacts.
|
ListArtifactsResult |
withArtifacts(Collection<Artifact> artifacts)
A list of artifacts.
|
ListArtifactsResult |
withNextToken(String nextToken)
A pagination token.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<Artifact> getArtifacts()
A list of artifacts.
public void setArtifacts(Collection<Artifact> artifacts)
A list of artifacts.
artifacts
- A list of artifacts.public ListArtifactsResult withArtifacts(Artifact... artifacts)
A list of artifacts.
NOTE: This method appends the values to the existing list (if any). Use
setArtifacts(java.util.Collection)
or withArtifacts(java.util.Collection)
if you want to
override the existing values.
artifacts
- A list of artifacts.public ListArtifactsResult withArtifacts(Collection<Artifact> artifacts)
A list of artifacts.
artifacts
- A list of artifacts.public void setNextToken(String nextToken)
A pagination token. If a non-null pagination token is returned in a result, pass its value in another request to retrieve more entries.
nextToken
- A pagination token. If a non-null pagination token is returned in a result, pass its value in another
request to retrieve more entries.public String getNextToken()
A pagination token. If a non-null pagination token is returned in a result, pass its value in another request to retrieve more entries.
public ListArtifactsResult withNextToken(String nextToken)
A pagination token. If a non-null pagination token is returned in a result, pass its value in another request to retrieve more entries.
nextToken
- A pagination token. If a non-null pagination token is returned in a result, pass its value in another
request to retrieve more entries.public String toString()
toString
in class Object
Object.toString()
public ListArtifactsResult clone()