Class TriggerConfig

    • Constructor Detail

      • TriggerConfig

        public TriggerConfig()
    • Method Detail

      • setTriggerName

        public void setTriggerName​(String triggerName)

        The name of the notification trigger.

        Parameters:
        triggerName - The name of the notification trigger.
      • getTriggerName

        public String getTriggerName()

        The name of the notification trigger.

        Returns:
        The name of the notification trigger.
      • withTriggerName

        public TriggerConfig withTriggerName​(String triggerName)

        The name of the notification trigger.

        Parameters:
        triggerName - The name of the notification trigger.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setTriggerTargetArn

        public void setTriggerTargetArn​(String triggerTargetArn)

        The ARN of the Amazon Simple Notification Service topic through which notifications about deployment or instance events are sent.

        Parameters:
        triggerTargetArn - The ARN of the Amazon Simple Notification Service topic through which notifications about deployment or instance events are sent.
      • getTriggerTargetArn

        public String getTriggerTargetArn()

        The ARN of the Amazon Simple Notification Service topic through which notifications about deployment or instance events are sent.

        Returns:
        The ARN of the Amazon Simple Notification Service topic through which notifications about deployment or instance events are sent.
      • withTriggerTargetArn

        public TriggerConfig withTriggerTargetArn​(String triggerTargetArn)

        The ARN of the Amazon Simple Notification Service topic through which notifications about deployment or instance events are sent.

        Parameters:
        triggerTargetArn - The ARN of the Amazon Simple Notification Service topic through which notifications about deployment or instance events are sent.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getTriggerEvents

        public List<String> getTriggerEvents()

        The event type or types for which notifications are triggered.

        The following event type values are supported:

        • DEPLOYMENT_START
        • DEPLOYMENT_SUCCESS
        • DEPLOYMENT_FAILURE
        • DEPLOYMENT_STOP
        • INSTANCE_START
        • INSTANCE_SUCCESS
        • INSTANCE_FAILURE
        Returns:
        The event type or types for which notifications are triggered.

        The following event type values are supported:

        • DEPLOYMENT_START
        • DEPLOYMENT_SUCCESS
        • DEPLOYMENT_FAILURE
        • DEPLOYMENT_STOP
        • INSTANCE_START
        • INSTANCE_SUCCESS
        • INSTANCE_FAILURE
        See Also:
        TriggerEventType
      • setTriggerEvents

        public void setTriggerEvents​(Collection<String> triggerEvents)

        The event type or types for which notifications are triggered.

        The following event type values are supported:

        • DEPLOYMENT_START
        • DEPLOYMENT_SUCCESS
        • DEPLOYMENT_FAILURE
        • DEPLOYMENT_STOP
        • INSTANCE_START
        • INSTANCE_SUCCESS
        • INSTANCE_FAILURE
        Parameters:
        triggerEvents - The event type or types for which notifications are triggered.

        The following event type values are supported:

        • DEPLOYMENT_START
        • DEPLOYMENT_SUCCESS
        • DEPLOYMENT_FAILURE
        • DEPLOYMENT_STOP
        • INSTANCE_START
        • INSTANCE_SUCCESS
        • INSTANCE_FAILURE
        See Also:
        TriggerEventType
      • withTriggerEvents

        public TriggerConfig withTriggerEvents​(String... triggerEvents)

        The event type or types for which notifications are triggered.

        The following event type values are supported:

        • DEPLOYMENT_START
        • DEPLOYMENT_SUCCESS
        • DEPLOYMENT_FAILURE
        • DEPLOYMENT_STOP
        • INSTANCE_START
        • INSTANCE_SUCCESS
        • INSTANCE_FAILURE

        NOTE: This method appends the values to the existing list (if any). Use setTriggerEvents(java.util.Collection) or withTriggerEvents(java.util.Collection) if you want to override the existing values.

        Parameters:
        triggerEvents - The event type or types for which notifications are triggered.

        The following event type values are supported:

        • DEPLOYMENT_START
        • DEPLOYMENT_SUCCESS
        • DEPLOYMENT_FAILURE
        • DEPLOYMENT_STOP
        • INSTANCE_START
        • INSTANCE_SUCCESS
        • INSTANCE_FAILURE
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        TriggerEventType
      • withTriggerEvents

        public TriggerConfig withTriggerEvents​(Collection<String> triggerEvents)

        The event type or types for which notifications are triggered.

        The following event type values are supported:

        • DEPLOYMENT_START
        • DEPLOYMENT_SUCCESS
        • DEPLOYMENT_FAILURE
        • DEPLOYMENT_STOP
        • INSTANCE_START
        • INSTANCE_SUCCESS
        • INSTANCE_FAILURE
        Parameters:
        triggerEvents - The event type or types for which notifications are triggered.

        The following event type values are supported:

        • DEPLOYMENT_START
        • DEPLOYMENT_SUCCESS
        • DEPLOYMENT_FAILURE
        • DEPLOYMENT_STOP
        • INSTANCE_START
        • INSTANCE_SUCCESS
        • INSTANCE_FAILURE
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        TriggerEventType
      • withTriggerEvents

        public TriggerConfig withTriggerEvents​(TriggerEventType... triggerEvents)

        The event type or types for which notifications are triggered.

        The following event type values are supported:

        • DEPLOYMENT_START
        • DEPLOYMENT_SUCCESS
        • DEPLOYMENT_FAILURE
        • DEPLOYMENT_STOP
        • INSTANCE_START
        • INSTANCE_SUCCESS
        • INSTANCE_FAILURE
        Parameters:
        triggerEvents - The event type or types for which notifications are triggered.

        The following event type values are supported:

        • DEPLOYMENT_START
        • DEPLOYMENT_SUCCESS
        • DEPLOYMENT_FAILURE
        • DEPLOYMENT_STOP
        • INSTANCE_START
        • INSTANCE_SUCCESS
        • INSTANCE_FAILURE
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        TriggerEventType
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object