All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.chatbot.model.CreateChimeWebhookConfigurationRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for chatbot module holds the client classes that are used for communicating with chatbot Service

The newest version!
/*
 * Copyright 2019-2024 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.chatbot.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 CreateChimeWebhookConfigurationRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * Description of the webhook. Recommend using the convention `RoomName/WebhookName`. See Chime setup tutorial for
     * more details: https://docs.aws.amazon.com/chatbot/latest/adminguide/chime-setup.html.
     */
    private String webhookDescription;
    /** URL for the Chime webhook. */
    private String webhookUrl;
    /** The ARNs of the SNS topics that deliver notifications to AWS Chatbot. */
    private java.util.List snsTopicArns;
    /**
     * This is a user-defined role that AWS Chatbot will assume. This is not the service-linked role. For more
     * information, see IAM Policies for AWS Chatbot.
     */
    private String iamRoleArn;
    /** The name of the configuration. */
    private String configurationName;
    /** Logging levels include ERROR, INFO, or NONE. */
    private String loggingLevel;
    /** A list of tags to apply to the configuration. */
    private java.util.List tags;

    /**
     * Description of the webhook. Recommend using the convention `RoomName/WebhookName`. See Chime setup tutorial for
     * more details: https://docs.aws.amazon.com/chatbot/latest/adminguide/chime-setup.html.
     * 
     * @param webhookDescription
     *        Description of the webhook. Recommend using the convention `RoomName/WebhookName`. See Chime setup
     *        tutorial for more details: https://docs.aws.amazon.com/chatbot/latest/adminguide/chime-setup.html.
     */

    public void setWebhookDescription(String webhookDescription) {
        this.webhookDescription = webhookDescription;
    }

    /**
     * Description of the webhook. Recommend using the convention `RoomName/WebhookName`. See Chime setup tutorial for
     * more details: https://docs.aws.amazon.com/chatbot/latest/adminguide/chime-setup.html.
     * 
     * @return Description of the webhook. Recommend using the convention `RoomName/WebhookName`. See Chime setup
     *         tutorial for more details: https://docs.aws.amazon.com/chatbot/latest/adminguide/chime-setup.html.
     */

    public String getWebhookDescription() {
        return this.webhookDescription;
    }

    /**
     * Description of the webhook. Recommend using the convention `RoomName/WebhookName`. See Chime setup tutorial for
     * more details: https://docs.aws.amazon.com/chatbot/latest/adminguide/chime-setup.html.
     * 
     * @param webhookDescription
     *        Description of the webhook. Recommend using the convention `RoomName/WebhookName`. See Chime setup
     *        tutorial for more details: https://docs.aws.amazon.com/chatbot/latest/adminguide/chime-setup.html.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public CreateChimeWebhookConfigurationRequest withWebhookDescription(String webhookDescription) {
        setWebhookDescription(webhookDescription);
        return this;
    }

    /**
     * URL for the Chime webhook.
     * 
     * @param webhookUrl
     *        URL for the Chime webhook.
     */

    public void setWebhookUrl(String webhookUrl) {
        this.webhookUrl = webhookUrl;
    }

    /**
     * URL for the Chime webhook.
     * 
     * @return URL for the Chime webhook.
     */

    public String getWebhookUrl() {
        return this.webhookUrl;
    }

    /**
     * URL for the Chime webhook.
     * 
     * @param webhookUrl
     *        URL for the Chime webhook.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public CreateChimeWebhookConfigurationRequest withWebhookUrl(String webhookUrl) {
        setWebhookUrl(webhookUrl);
        return this;
    }

    /**
     * The ARNs of the SNS topics that deliver notifications to AWS Chatbot.
     * 
     * @return The ARNs of the SNS topics that deliver notifications to AWS Chatbot.
     */

    public java.util.List getSnsTopicArns() {
        return snsTopicArns;
    }

    /**
     * The ARNs of the SNS topics that deliver notifications to AWS Chatbot.
     * 
     * @param snsTopicArns
     *        The ARNs of the SNS topics that deliver notifications to AWS Chatbot.
     */

    public void setSnsTopicArns(java.util.Collection snsTopicArns) {
        if (snsTopicArns == null) {
            this.snsTopicArns = null;
            return;
        }

        this.snsTopicArns = new java.util.ArrayList(snsTopicArns);
    }

    /**
     * The ARNs of the SNS topics that deliver notifications to AWS Chatbot.
     * 

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setSnsTopicArns(java.util.Collection)} or {@link #withSnsTopicArns(java.util.Collection)} if you want to * override the existing values. *

* * @param snsTopicArns * The ARNs of the SNS topics that deliver notifications to AWS Chatbot. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateChimeWebhookConfigurationRequest withSnsTopicArns(String... snsTopicArns) { if (this.snsTopicArns == null) { setSnsTopicArns(new java.util.ArrayList(snsTopicArns.length)); } for (String ele : snsTopicArns) { this.snsTopicArns.add(ele); } return this; } /** * The ARNs of the SNS topics that deliver notifications to AWS Chatbot. * * @param snsTopicArns * The ARNs of the SNS topics that deliver notifications to AWS Chatbot. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateChimeWebhookConfigurationRequest withSnsTopicArns(java.util.Collection snsTopicArns) { setSnsTopicArns(snsTopicArns); return this; } /** * This is a user-defined role that AWS Chatbot will assume. This is not the service-linked role. For more * information, see IAM Policies for AWS Chatbot. * * @param iamRoleArn * This is a user-defined role that AWS Chatbot will assume. This is not the service-linked role. For more * information, see IAM Policies for AWS Chatbot. */ public void setIamRoleArn(String iamRoleArn) { this.iamRoleArn = iamRoleArn; } /** * This is a user-defined role that AWS Chatbot will assume. This is not the service-linked role. For more * information, see IAM Policies for AWS Chatbot. * * @return This is a user-defined role that AWS Chatbot will assume. This is not the service-linked role. For more * information, see IAM Policies for AWS Chatbot. */ public String getIamRoleArn() { return this.iamRoleArn; } /** * This is a user-defined role that AWS Chatbot will assume. This is not the service-linked role. For more * information, see IAM Policies for AWS Chatbot. * * @param iamRoleArn * This is a user-defined role that AWS Chatbot will assume. This is not the service-linked role. For more * information, see IAM Policies for AWS Chatbot. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateChimeWebhookConfigurationRequest withIamRoleArn(String iamRoleArn) { setIamRoleArn(iamRoleArn); return this; } /** * The name of the configuration. * * @param configurationName * The name of the configuration. */ public void setConfigurationName(String configurationName) { this.configurationName = configurationName; } /** * The name of the configuration. * * @return The name of the configuration. */ public String getConfigurationName() { return this.configurationName; } /** * The name of the configuration. * * @param configurationName * The name of the configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateChimeWebhookConfigurationRequest withConfigurationName(String configurationName) { setConfigurationName(configurationName); return this; } /** * Logging levels include ERROR, INFO, or NONE. * * @param loggingLevel * Logging levels include ERROR, INFO, or NONE. */ public void setLoggingLevel(String loggingLevel) { this.loggingLevel = loggingLevel; } /** * Logging levels include ERROR, INFO, or NONE. * * @return Logging levels include ERROR, INFO, or NONE. */ public String getLoggingLevel() { return this.loggingLevel; } /** * Logging levels include ERROR, INFO, or NONE. * * @param loggingLevel * Logging levels include ERROR, INFO, or NONE. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateChimeWebhookConfigurationRequest withLoggingLevel(String loggingLevel) { setLoggingLevel(loggingLevel); return this; } /** * A list of tags to apply to the configuration. * * @return A list of tags to apply to the configuration. */ public java.util.List getTags() { return tags; } /** * A list of tags to apply to the configuration. * * @param tags * A list of tags to apply to the configuration. */ public void setTags(java.util.Collection tags) { if (tags == null) { this.tags = null; return; } this.tags = new java.util.ArrayList(tags); } /** * A list of tags to apply to the configuration. *

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *

* * @param tags * A list of tags to apply to the configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateChimeWebhookConfigurationRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; } /** * A list of tags to apply to the configuration. * * @param tags * A list of tags to apply to the configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateChimeWebhookConfigurationRequest withTags(java.util.Collection tags) { setTags(tags); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getWebhookDescription() != null) sb.append("WebhookDescription: ").append(getWebhookDescription()).append(","); if (getWebhookUrl() != null) sb.append("WebhookUrl: ").append(getWebhookUrl()).append(","); if (getSnsTopicArns() != null) sb.append("SnsTopicArns: ").append(getSnsTopicArns()).append(","); if (getIamRoleArn() != null) sb.append("IamRoleArn: ").append(getIamRoleArn()).append(","); if (getConfigurationName() != null) sb.append("ConfigurationName: ").append(getConfigurationName()).append(","); if (getLoggingLevel() != null) sb.append("LoggingLevel: ").append(getLoggingLevel()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateChimeWebhookConfigurationRequest == false) return false; CreateChimeWebhookConfigurationRequest other = (CreateChimeWebhookConfigurationRequest) obj; if (other.getWebhookDescription() == null ^ this.getWebhookDescription() == null) return false; if (other.getWebhookDescription() != null && other.getWebhookDescription().equals(this.getWebhookDescription()) == false) return false; if (other.getWebhookUrl() == null ^ this.getWebhookUrl() == null) return false; if (other.getWebhookUrl() != null && other.getWebhookUrl().equals(this.getWebhookUrl()) == false) return false; if (other.getSnsTopicArns() == null ^ this.getSnsTopicArns() == null) return false; if (other.getSnsTopicArns() != null && other.getSnsTopicArns().equals(this.getSnsTopicArns()) == false) return false; if (other.getIamRoleArn() == null ^ this.getIamRoleArn() == null) return false; if (other.getIamRoleArn() != null && other.getIamRoleArn().equals(this.getIamRoleArn()) == false) return false; if (other.getConfigurationName() == null ^ this.getConfigurationName() == null) return false; if (other.getConfigurationName() != null && other.getConfigurationName().equals(this.getConfigurationName()) == false) return false; if (other.getLoggingLevel() == null ^ this.getLoggingLevel() == null) return false; if (other.getLoggingLevel() != null && other.getLoggingLevel().equals(this.getLoggingLevel()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getWebhookDescription() == null) ? 0 : getWebhookDescription().hashCode()); hashCode = prime * hashCode + ((getWebhookUrl() == null) ? 0 : getWebhookUrl().hashCode()); hashCode = prime * hashCode + ((getSnsTopicArns() == null) ? 0 : getSnsTopicArns().hashCode()); hashCode = prime * hashCode + ((getIamRoleArn() == null) ? 0 : getIamRoleArn().hashCode()); hashCode = prime * hashCode + ((getConfigurationName() == null) ? 0 : getConfigurationName().hashCode()); hashCode = prime * hashCode + ((getLoggingLevel() == null) ? 0 : getLoggingLevel().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; } @Override public CreateChimeWebhookConfigurationRequest clone() { return (CreateChimeWebhookConfigurationRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy