@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CodeSnippetError extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about any errors encountered while trying to retrieve a code snippet.
Constructor and Description |
---|
CodeSnippetError() |
Modifier and Type | Method and Description |
---|---|
CodeSnippetError |
clone() |
boolean |
equals(Object obj) |
String |
getErrorCode()
The error code for the error that prevented a code snippet from being retrieved.
|
String |
getErrorMessage()
The error message received when Amazon Inspector failed to retrieve a code snippet.
|
String |
getFindingArn()
The ARN of the finding that a code snippet couldn't be retrieved for.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setErrorCode(String errorCode)
The error code for the error that prevented a code snippet from being retrieved.
|
void |
setErrorMessage(String errorMessage)
The error message received when Amazon Inspector failed to retrieve a code snippet.
|
void |
setFindingArn(String findingArn)
The ARN of the finding that a code snippet couldn't be retrieved for.
|
String |
toString()
Returns a string representation of this object.
|
CodeSnippetError |
withErrorCode(CodeSnippetErrorCode errorCode)
The error code for the error that prevented a code snippet from being retrieved.
|
CodeSnippetError |
withErrorCode(String errorCode)
The error code for the error that prevented a code snippet from being retrieved.
|
CodeSnippetError |
withErrorMessage(String errorMessage)
The error message received when Amazon Inspector failed to retrieve a code snippet.
|
CodeSnippetError |
withFindingArn(String findingArn)
The ARN of the finding that a code snippet couldn't be retrieved for.
|
public void setErrorCode(String errorCode)
The error code for the error that prevented a code snippet from being retrieved.
errorCode
- The error code for the error that prevented a code snippet from being retrieved.CodeSnippetErrorCode
public String getErrorCode()
The error code for the error that prevented a code snippet from being retrieved.
CodeSnippetErrorCode
public CodeSnippetError withErrorCode(String errorCode)
The error code for the error that prevented a code snippet from being retrieved.
errorCode
- The error code for the error that prevented a code snippet from being retrieved.CodeSnippetErrorCode
public CodeSnippetError withErrorCode(CodeSnippetErrorCode errorCode)
The error code for the error that prevented a code snippet from being retrieved.
errorCode
- The error code for the error that prevented a code snippet from being retrieved.CodeSnippetErrorCode
public void setErrorMessage(String errorMessage)
The error message received when Amazon Inspector failed to retrieve a code snippet.
errorMessage
- The error message received when Amazon Inspector failed to retrieve a code snippet.public String getErrorMessage()
The error message received when Amazon Inspector failed to retrieve a code snippet.
public CodeSnippetError withErrorMessage(String errorMessage)
The error message received when Amazon Inspector failed to retrieve a code snippet.
errorMessage
- The error message received when Amazon Inspector failed to retrieve a code snippet.public void setFindingArn(String findingArn)
The ARN of the finding that a code snippet couldn't be retrieved for.
findingArn
- The ARN of the finding that a code snippet couldn't be retrieved for.public String getFindingArn()
The ARN of the finding that a code snippet couldn't be retrieved for.
public CodeSnippetError withFindingArn(String findingArn)
The ARN of the finding that a code snippet couldn't be retrieved for.
findingArn
- The ARN of the finding that a code snippet couldn't be retrieved for.public String toString()
toString
in class Object
Object.toString()
public CodeSnippetError clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.