@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CloudComponentStatus extends Object implements Serializable, Cloneable, StructuredPojo
Contains the status of a component in the AWS IoT Greengrass service.
| Constructor and Description |
|---|
CloudComponentStatus() |
| Modifier and Type | Method and Description |
|---|---|
CloudComponentStatus |
addErrorsEntry(String key,
String value)
Add a single Errors entry
|
CloudComponentStatus |
clearErrorsEntries()
Removes all the entries added into Errors.
|
CloudComponentStatus |
clone() |
boolean |
equals(Object obj) |
String |
getComponentState()
The state of the component.
|
Map<String,String> |
getErrors()
A dictionary of errors that communicate why the component is in an error state.
|
String |
getMessage()
A message that communicates details, such as errors, about the status of the component.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setComponentState(String componentState)
The state of the component.
|
void |
setErrors(Map<String,String> errors)
A dictionary of errors that communicate why the component is in an error state.
|
void |
setMessage(String message)
A message that communicates details, such as errors, about the status of the component.
|
String |
toString()
Returns a string representation of this object.
|
CloudComponentStatus |
withComponentState(CloudComponentState componentState)
The state of the component.
|
CloudComponentStatus |
withComponentState(String componentState)
The state of the component.
|
CloudComponentStatus |
withErrors(Map<String,String> errors)
A dictionary of errors that communicate why the component is in an error state.
|
CloudComponentStatus |
withMessage(String message)
A message that communicates details, such as errors, about the status of the component.
|
public void setComponentState(String componentState)
The state of the component.
componentState - The state of the component.CloudComponentStatepublic String getComponentState()
The state of the component.
CloudComponentStatepublic CloudComponentStatus withComponentState(String componentState)
The state of the component.
componentState - The state of the component.CloudComponentStatepublic CloudComponentStatus withComponentState(CloudComponentState componentState)
The state of the component.
componentState - The state of the component.CloudComponentStatepublic void setMessage(String message)
A message that communicates details, such as errors, about the status of the component.
message - A message that communicates details, such as errors, about the status of the component.public String getMessage()
A message that communicates details, such as errors, about the status of the component.
public CloudComponentStatus withMessage(String message)
A message that communicates details, such as errors, about the status of the component.
message - A message that communicates details, such as errors, about the status of the component.public Map<String,String> getErrors()
A dictionary of errors that communicate why the component is in an error state. For example, if AWS IoT
Greengrass can't access an artifact for the component, then errors contains the artifact's URI as a
key, and the error message as the value for that key.
errors contains the artifact's
URI as a key, and the error message as the value for that key.public void setErrors(Map<String,String> errors)
A dictionary of errors that communicate why the component is in an error state. For example, if AWS IoT
Greengrass can't access an artifact for the component, then errors contains the artifact's URI as a
key, and the error message as the value for that key.
errors - A dictionary of errors that communicate why the component is in an error state. For example, if AWS IoT
Greengrass can't access an artifact for the component, then errors contains the artifact's
URI as a key, and the error message as the value for that key.public CloudComponentStatus withErrors(Map<String,String> errors)
A dictionary of errors that communicate why the component is in an error state. For example, if AWS IoT
Greengrass can't access an artifact for the component, then errors contains the artifact's URI as a
key, and the error message as the value for that key.
errors - A dictionary of errors that communicate why the component is in an error state. For example, if AWS IoT
Greengrass can't access an artifact for the component, then errors contains the artifact's
URI as a key, and the error message as the value for that key.public CloudComponentStatus addErrorsEntry(String key, String value)
public CloudComponentStatus clearErrorsEntries()
public String toString()
toString in class ObjectObject.toString()public CloudComponentStatus clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2021. All rights reserved.