/* * 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.ssmcontacts.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateContactChannelRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* The Amazon Resource Name (ARN) of the contact you are adding the contact channel to. *

*/ private String contactId; /** *

* The name of the contact channel. *

*/ private String name; /** *

* Incident Manager supports three types of contact channels: *

* */ private String type; /** *

* The details that Incident Manager uses when trying to engage the contact channel. The format is dependent on the * type of the contact channel. The following are the expected formats: *

* */ private ContactChannelAddress deliveryAddress; /** *

* If you want to activate the channel at a later time, you can choose to defer activation. Incident Manager can't * engage your contact channel until it has been activated. *

*/ private Boolean deferActivation; /** *

* A token ensuring that the operation is called only once with the specified details. *

*/ private String idempotencyToken; /** *

* The Amazon Resource Name (ARN) of the contact you are adding the contact channel to. *

* * @param contactId * The Amazon Resource Name (ARN) of the contact you are adding the contact channel to. */ public void setContactId(String contactId) { this.contactId = contactId; } /** *

* The Amazon Resource Name (ARN) of the contact you are adding the contact channel to. *

* * @return The Amazon Resource Name (ARN) of the contact you are adding the contact channel to. */ public String getContactId() { return this.contactId; } /** *

* The Amazon Resource Name (ARN) of the contact you are adding the contact channel to. *

* * @param contactId * The Amazon Resource Name (ARN) of the contact you are adding the contact channel to. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateContactChannelRequest withContactId(String contactId) { setContactId(contactId); return this; } /** *

* The name of the contact channel. *

* * @param name * The name of the contact channel. */ public void setName(String name) { this.name = name; } /** *

* The name of the contact channel. *

* * @return The name of the contact channel. */ public String getName() { return this.name; } /** *

* The name of the contact channel. *

* * @param name * The name of the contact channel. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateContactChannelRequest withName(String name) { setName(name); return this; } /** *

* Incident Manager supports three types of contact channels: *

* * * @param type * Incident Manager supports three types of contact channels:

*