/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.codedeploy.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Information about notification triggers for the deployment group. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class TriggerConfig implements Serializable, Cloneable, StructuredPojo { /** ** The name of the notification trigger. *
*/ private String triggerName; /** ** The Amazon Resource Name (ARN) of the Amazon Simple Notification Service topic through which notifications about * deployment or instance events are sent. *
*/ private String triggerTargetArn; /** ** The event type or types for which notifications are triggered. *
*/ private com.amazonaws.internal.SdkInternalList* The name of the notification trigger. *
* * @param triggerName * The name of the notification trigger. */ public void setTriggerName(String triggerName) { this.triggerName = triggerName; } /** ** The name of the notification trigger. *
* * @return The name of the notification trigger. */ public String getTriggerName() { return this.triggerName; } /** ** The name of the notification trigger. *
* * @param triggerName * The name of the notification trigger. * @return Returns a reference to this object so that method calls can be chained together. */ public TriggerConfig withTriggerName(String triggerName) { setTriggerName(triggerName); return this; } /** ** The Amazon Resource Name (ARN) of the Amazon Simple Notification Service topic through which notifications about * deployment or instance events are sent. *
* * @param triggerTargetArn * The Amazon Resource Name (ARN) of the Amazon Simple Notification Service topic through which notifications * about deployment or instance events are sent. */ public void setTriggerTargetArn(String triggerTargetArn) { this.triggerTargetArn = triggerTargetArn; } /** ** The Amazon Resource Name (ARN) of the Amazon Simple Notification Service topic through which notifications about * deployment or instance events are sent. *
* * @return The Amazon Resource Name (ARN) of the Amazon Simple Notification Service topic through which * notifications about deployment or instance events are sent. */ public String getTriggerTargetArn() { return this.triggerTargetArn; } /** ** The Amazon Resource Name (ARN) of the Amazon Simple Notification Service topic through which notifications about * deployment or instance events are sent. *
* * @param triggerTargetArn * The Amazon Resource Name (ARN) of the Amazon Simple Notification Service topic through which notifications * about deployment or instance events are sent. * @return Returns a reference to this object so that method calls can be chained together. */ public TriggerConfig withTriggerTargetArn(String triggerTargetArn) { setTriggerTargetArn(triggerTargetArn); return this; } /** ** The event type or types for which notifications are triggered. *
* * @return The event type or types for which notifications are triggered. * @see TriggerEventType */ public java.util.List* The event type or types for which notifications are triggered. *
* * @param triggerEvents * The event type or types for which notifications are triggered. * @see TriggerEventType */ public void setTriggerEvents(java.util.Collection* The event type or types for which notifications are triggered. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTriggerEvents(java.util.Collection)} or {@link #withTriggerEvents(java.util.Collection)} if you want * to override the existing values. *
* * @param triggerEvents * The event type or types for which notifications are triggered. * @return Returns a reference to this object so that method calls can be chained together. * @see TriggerEventType */ public TriggerConfig withTriggerEvents(String... triggerEvents) { if (this.triggerEvents == null) { setTriggerEvents(new com.amazonaws.internal.SdkInternalList* The event type or types for which notifications are triggered. *
* * @param triggerEvents * The event type or types for which notifications are triggered. * @return Returns a reference to this object so that method calls can be chained together. * @see TriggerEventType */ public TriggerConfig withTriggerEvents(java.util.Collection* The event type or types for which notifications are triggered. *
* * @param triggerEvents * The event type or types for which notifications are triggered. * @return Returns a reference to this object so that method calls can be chained together. * @see TriggerEventType */ public TriggerConfig withTriggerEvents(TriggerEventType... triggerEvents) { com.amazonaws.internal.SdkInternalList