@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)
Marshalls this structured data using the given
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.CloudComponentState
public String getComponentState()
The state of the component.
CloudComponentState
public CloudComponentStatus withComponentState(String componentState)
The state of the component.
componentState
- The state of the component.CloudComponentState
public CloudComponentStatus withComponentState(CloudComponentState componentState)
The state of the component.
componentState
- The state of the component.CloudComponentState
public 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 Object
Object.toString()
public CloudComponentStatus clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.