@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DeploymentComponentUpdatePolicy extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about a deployment's policy that defines when components are safe to update.
Each component on a device can report whether or not it's ready to update. After a component and its dependencies are ready, they can apply the update in the deployment. You can configure whether or not the deployment notifies components of an update and waits for a response. You specify the amount of time each component has to respond to the update notification.
Constructor and Description |
---|
DeploymentComponentUpdatePolicy() |
Modifier and Type | Method and Description |
---|---|
DeploymentComponentUpdatePolicy |
clone() |
boolean |
equals(Object obj) |
String |
getAction()
Whether or not to notify components and wait for components to become safe to update.
|
Integer |
getTimeoutInSeconds()
The amount of time in seconds that each component on a device has to report that it's safe to update.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAction(String action)
Whether or not to notify components and wait for components to become safe to update.
|
void |
setTimeoutInSeconds(Integer timeoutInSeconds)
The amount of time in seconds that each component on a device has to report that it's safe to update.
|
String |
toString()
Returns a string representation of this object.
|
DeploymentComponentUpdatePolicy |
withAction(DeploymentComponentUpdatePolicyAction action)
Whether or not to notify components and wait for components to become safe to update.
|
DeploymentComponentUpdatePolicy |
withAction(String action)
Whether or not to notify components and wait for components to become safe to update.
|
DeploymentComponentUpdatePolicy |
withTimeoutInSeconds(Integer timeoutInSeconds)
The amount of time in seconds that each component on a device has to report that it's safe to update.
|
public void setTimeoutInSeconds(Integer timeoutInSeconds)
The amount of time in seconds that each component on a device has to report that it's safe to update. If the component waits for longer than this timeout, then the deployment proceeds on the device.
Default: 60
timeoutInSeconds
- The amount of time in seconds that each component on a device has to report that it's safe to update. If
the component waits for longer than this timeout, then the deployment proceeds on the device.
Default: 60
public Integer getTimeoutInSeconds()
The amount of time in seconds that each component on a device has to report that it's safe to update. If the component waits for longer than this timeout, then the deployment proceeds on the device.
Default: 60
Default: 60
public DeploymentComponentUpdatePolicy withTimeoutInSeconds(Integer timeoutInSeconds)
The amount of time in seconds that each component on a device has to report that it's safe to update. If the component waits for longer than this timeout, then the deployment proceeds on the device.
Default: 60
timeoutInSeconds
- The amount of time in seconds that each component on a device has to report that it's safe to update. If
the component waits for longer than this timeout, then the deployment proceeds on the device.
Default: 60
public void setAction(String action)
Whether or not to notify components and wait for components to become safe to update. Choose from the following options:
NOTIFY_COMPONENTS
– The deployment notifies each component before it stops and updates that
component. Components can use the SubscribeToComponentUpdates IPC operation to receive these notifications. Then, components can respond with
the DeferComponentUpdate IPC operation. For more information, see Create deployments in
the IoT Greengrass V2 Developer Guide.
SKIP_NOTIFY_COMPONENTS
– The deployment doesn't notify components or wait for them to be safe to
update.
Default: NOTIFY_COMPONENTS
action
- Whether or not to notify components and wait for components to become safe to update. Choose from the
following options:
NOTIFY_COMPONENTS
– The deployment notifies each component before it stops and updates that
component. Components can use the SubscribeToComponentUpdates IPC operation to receive these notifications. Then, components can
respond with the DeferComponentUpdate IPC operation. For more information, see Create
deployments in the IoT Greengrass V2 Developer Guide.
SKIP_NOTIFY_COMPONENTS
– The deployment doesn't notify components or wait for them to be safe
to update.
Default: NOTIFY_COMPONENTS
DeploymentComponentUpdatePolicyAction
public String getAction()
Whether or not to notify components and wait for components to become safe to update. Choose from the following options:
NOTIFY_COMPONENTS
– The deployment notifies each component before it stops and updates that
component. Components can use the SubscribeToComponentUpdates IPC operation to receive these notifications. Then, components can respond with
the DeferComponentUpdate IPC operation. For more information, see Create deployments in
the IoT Greengrass V2 Developer Guide.
SKIP_NOTIFY_COMPONENTS
– The deployment doesn't notify components or wait for them to be safe to
update.
Default: NOTIFY_COMPONENTS
NOTIFY_COMPONENTS
– The deployment notifies each component before it stops and updates that
component. Components can use the SubscribeToComponentUpdates IPC operation to receive these notifications. Then, components can
respond with the DeferComponentUpdate IPC operation. For more information, see Create
deployments in the IoT Greengrass V2 Developer Guide.
SKIP_NOTIFY_COMPONENTS
– The deployment doesn't notify components or wait for them to be
safe to update.
Default: NOTIFY_COMPONENTS
DeploymentComponentUpdatePolicyAction
public DeploymentComponentUpdatePolicy withAction(String action)
Whether or not to notify components and wait for components to become safe to update. Choose from the following options:
NOTIFY_COMPONENTS
– The deployment notifies each component before it stops and updates that
component. Components can use the SubscribeToComponentUpdates IPC operation to receive these notifications. Then, components can respond with
the DeferComponentUpdate IPC operation. For more information, see Create deployments in
the IoT Greengrass V2 Developer Guide.
SKIP_NOTIFY_COMPONENTS
– The deployment doesn't notify components or wait for them to be safe to
update.
Default: NOTIFY_COMPONENTS
action
- Whether or not to notify components and wait for components to become safe to update. Choose from the
following options:
NOTIFY_COMPONENTS
– The deployment notifies each component before it stops and updates that
component. Components can use the SubscribeToComponentUpdates IPC operation to receive these notifications. Then, components can
respond with the DeferComponentUpdate IPC operation. For more information, see Create
deployments in the IoT Greengrass V2 Developer Guide.
SKIP_NOTIFY_COMPONENTS
– The deployment doesn't notify components or wait for them to be safe
to update.
Default: NOTIFY_COMPONENTS
DeploymentComponentUpdatePolicyAction
public DeploymentComponentUpdatePolicy withAction(DeploymentComponentUpdatePolicyAction action)
Whether or not to notify components and wait for components to become safe to update. Choose from the following options:
NOTIFY_COMPONENTS
– The deployment notifies each component before it stops and updates that
component. Components can use the SubscribeToComponentUpdates IPC operation to receive these notifications. Then, components can respond with
the DeferComponentUpdate IPC operation. For more information, see Create deployments in
the IoT Greengrass V2 Developer Guide.
SKIP_NOTIFY_COMPONENTS
– The deployment doesn't notify components or wait for them to be safe to
update.
Default: NOTIFY_COMPONENTS
action
- Whether or not to notify components and wait for components to become safe to update. Choose from the
following options:
NOTIFY_COMPONENTS
– The deployment notifies each component before it stops and updates that
component. Components can use the SubscribeToComponentUpdates IPC operation to receive these notifications. Then, components can
respond with the DeferComponentUpdate IPC operation. For more information, see Create
deployments in the IoT Greengrass V2 Developer Guide.
SKIP_NOTIFY_COMPONENTS
– The deployment doesn't notify components or wait for them to be safe
to update.
Default: NOTIFY_COMPONENTS
DeploymentComponentUpdatePolicyAction
public String toString()
toString
in class Object
Object.toString()
public DeploymentComponentUpdatePolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.