/* * 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.codestarnotifications.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Information about the targets specified for a notification rule. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class TargetSummary implements Serializable, Cloneable, StructuredPojo { /** *

* The Amazon Resource Name (ARN) of the Chatbot topic or Chatbot client. *

*/ private String targetAddress; /** *

* The type of the target (for example, SNS). *

* */ private String targetType; /** *

* The status of the target. *

*/ private String targetStatus; /** *

* The Amazon Resource Name (ARN) of the Chatbot topic or Chatbot client. *

* * @param targetAddress * The Amazon Resource Name (ARN) of the Chatbot topic or Chatbot client. */ public void setTargetAddress(String targetAddress) { this.targetAddress = targetAddress; } /** *

* The Amazon Resource Name (ARN) of the Chatbot topic or Chatbot client. *

* * @return The Amazon Resource Name (ARN) of the Chatbot topic or Chatbot client. */ public String getTargetAddress() { return this.targetAddress; } /** *

* The Amazon Resource Name (ARN) of the Chatbot topic or Chatbot client. *

* * @param targetAddress * The Amazon Resource Name (ARN) of the Chatbot topic or Chatbot client. * @return Returns a reference to this object so that method calls can be chained together. */ public TargetSummary withTargetAddress(String targetAddress) { setTargetAddress(targetAddress); return this; } /** *

* The type of the target (for example, SNS). *

* * * @param targetType * The type of the target (for example, SNS).

*