@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class VersionUpdateByJobsConfig extends Object implements Serializable, Cloneable, StructuredPojo
Configuration to manage IoT Job's package version reporting. If configured, Jobs updates the thing's reserved named shadow with the package version information up on successful job completion.
Note: For each job, the destinationPackageVersions attribute has to be set with the correct data for Jobs to report to the thing shadow.
Constructor and Description |
---|
VersionUpdateByJobsConfig() |
Modifier and Type | Method and Description |
---|---|
VersionUpdateByJobsConfig |
clone() |
boolean |
equals(Object obj) |
Boolean |
getEnabled()
Indicates whether the Job is enabled or not.
|
String |
getRoleArn()
The Amazon Resource Name (ARN) of the role that grants permission to the IoT jobs service to update the reserved
named shadow when the job successfully completes.
|
int |
hashCode() |
Boolean |
isEnabled()
Indicates whether the Job is enabled or not.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setEnabled(Boolean enabled)
Indicates whether the Job is enabled or not.
|
void |
setRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the role that grants permission to the IoT jobs service to update the reserved
named shadow when the job successfully completes.
|
String |
toString()
Returns a string representation of this object.
|
VersionUpdateByJobsConfig |
withEnabled(Boolean enabled)
Indicates whether the Job is enabled or not.
|
VersionUpdateByJobsConfig |
withRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the role that grants permission to the IoT jobs service to update the reserved
named shadow when the job successfully completes.
|
public void setEnabled(Boolean enabled)
Indicates whether the Job is enabled or not.
enabled
- Indicates whether the Job is enabled or not.public Boolean getEnabled()
Indicates whether the Job is enabled or not.
public VersionUpdateByJobsConfig withEnabled(Boolean enabled)
Indicates whether the Job is enabled or not.
enabled
- Indicates whether the Job is enabled or not.public Boolean isEnabled()
Indicates whether the Job is enabled or not.
public void setRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the role that grants permission to the IoT jobs service to update the reserved named shadow when the job successfully completes.
roleArn
- The Amazon Resource Name (ARN) of the role that grants permission to the IoT jobs service to update the
reserved named shadow when the job successfully completes.public String getRoleArn()
The Amazon Resource Name (ARN) of the role that grants permission to the IoT jobs service to update the reserved named shadow when the job successfully completes.
public VersionUpdateByJobsConfig withRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the role that grants permission to the IoT jobs service to update the reserved named shadow when the job successfully completes.
roleArn
- The Amazon Resource Name (ARN) of the role that grants permission to the IoT jobs service to update the
reserved named shadow when the job successfully completes.public String toString()
toString
in class Object
Object.toString()
public VersionUpdateByJobsConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.