Class TestRoleResult
- java.lang.Object
-
- com.amazonaws.services.elastictranscoder.model.TestRoleResult
-
- All Implemented Interfaces:
Serializable,Cloneable
public class TestRoleResult extends Object implements Serializable, Cloneable
The
TestRoleResponsestructure.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TestRoleResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TestRoleResultclone()booleanequals(Object obj)List<String>getMessages()If theSuccesselement containsfalse, this value is an array of one or more error messages that were generated during the test process.StringgetSuccess()If the operation is successful, this value istrue; otherwise, the value isfalse.inthashCode()voidsetMessages(Collection<String> messages)If theSuccesselement containsfalse, this value is an array of one or more error messages that were generated during the test process.voidsetSuccess(String success)If the operation is successful, this value istrue; otherwise, the value isfalse.StringtoString()Returns a string representation of this object; useful for testing and debugging.TestRoleResultwithMessages(String... messages)If theSuccesselement containsfalse, this value is an array of one or more error messages that were generated during the test process.TestRoleResultwithMessages(Collection<String> messages)If theSuccesselement containsfalse, this value is an array of one or more error messages that were generated during the test process.TestRoleResultwithSuccess(String success)If the operation is successful, this value istrue; otherwise, the value isfalse.
-
-
-
Method Detail
-
setSuccess
public void setSuccess(String success)
If the operation is successful, this value is
true; otherwise, the value isfalse.- Parameters:
success- If the operation is successful, this value istrue; otherwise, the value isfalse.
-
getSuccess
public String getSuccess()
If the operation is successful, this value is
true; otherwise, the value isfalse.- Returns:
- If the operation is successful, this value is
true; otherwise, the value isfalse.
-
withSuccess
public TestRoleResult withSuccess(String success)
If the operation is successful, this value is
true; otherwise, the value isfalse.- Parameters:
success- If the operation is successful, this value istrue; otherwise, the value isfalse.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getMessages
public List<String> getMessages()
If the
Successelement containsfalse, this value is an array of one or more error messages that were generated during the test process.- Returns:
- If the
Successelement containsfalse, this value is an array of one or more error messages that were generated during the test process.
-
setMessages
public void setMessages(Collection<String> messages)
If the
Successelement containsfalse, this value is an array of one or more error messages that were generated during the test process.- Parameters:
messages- If theSuccesselement containsfalse, this value is an array of one or more error messages that were generated during the test process.
-
withMessages
public TestRoleResult withMessages(String... messages)
If the
Successelement containsfalse, this value is an array of one or more error messages that were generated during the test process.NOTE: This method appends the values to the existing list (if any). Use
setMessages(java.util.Collection)orwithMessages(java.util.Collection)if you want to override the existing values.- Parameters:
messages- If theSuccesselement containsfalse, this value is an array of one or more error messages that were generated during the test process.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withMessages
public TestRoleResult withMessages(Collection<String> messages)
If the
Successelement containsfalse, this value is an array of one or more error messages that were generated during the test process.- Parameters:
messages- If theSuccesselement containsfalse, this value is an array of one or more error messages that were generated during the test process.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public TestRoleResult clone()
-
-