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

com.amazonaws.services.chatbot.model.UpdateMicrosoftTeamsChannelConfigurationRequest 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

There is a newer version: 1.12.779
Show 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 UpdateMicrosoftTeamsChannelConfigurationRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /** The ARN of the MicrosoftTeamsChannelConfiguration to update. */
    private String chatConfigurationArn;
    /** The ID of the Microsoft Teams channel. */
    private String channelId;
    /** The name of the Microsoft Teams channel. */
    private String channelName;
    /** The ARNs of the SNS topics that deliver notifications to AWS Chatbot. */
    private java.util.List snsTopicArns;
    /**
     * The ARN of the IAM role that defines the permissions for AWS Chatbot. 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;
    /** Logging levels include ERROR, INFO, or NONE. */
    private String loggingLevel;
    /**
     * The list of IAM policy ARNs that are applied as channel guardrails. The AWS managed 'AdministratorAccess' policy
     * is applied by default if this is not set.
     */
    private java.util.List guardrailPolicyArns;
    /** Enables use of a user role requirement in your chat configuration. */
    private Boolean userAuthorizationRequired;

    /**
     * The ARN of the MicrosoftTeamsChannelConfiguration to update.
     * 
     * @param chatConfigurationArn
     *        The ARN of the MicrosoftTeamsChannelConfiguration to update.
     */

    public void setChatConfigurationArn(String chatConfigurationArn) {
        this.chatConfigurationArn = chatConfigurationArn;
    }

    /**
     * The ARN of the MicrosoftTeamsChannelConfiguration to update.
     * 
     * @return The ARN of the MicrosoftTeamsChannelConfiguration to update.
     */

    public String getChatConfigurationArn() {
        return this.chatConfigurationArn;
    }

    /**
     * The ARN of the MicrosoftTeamsChannelConfiguration to update.
     * 
     * @param chatConfigurationArn
     *        The ARN of the MicrosoftTeamsChannelConfiguration to update.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public UpdateMicrosoftTeamsChannelConfigurationRequest withChatConfigurationArn(String chatConfigurationArn) {
        setChatConfigurationArn(chatConfigurationArn);
        return this;
    }

    /**
     * The ID of the Microsoft Teams channel.
     * 
     * @param channelId
     *        The ID of the Microsoft Teams channel.
     */

    public void setChannelId(String channelId) {
        this.channelId = channelId;
    }

    /**
     * The ID of the Microsoft Teams channel.
     * 
     * @return The ID of the Microsoft Teams channel.
     */

    public String getChannelId() {
        return this.channelId;
    }

    /**
     * The ID of the Microsoft Teams channel.
     * 
     * @param channelId
     *        The ID of the Microsoft Teams channel.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public UpdateMicrosoftTeamsChannelConfigurationRequest withChannelId(String channelId) {
        setChannelId(channelId);
        return this;
    }

    /**
     * The name of the Microsoft Teams channel.
     * 
     * @param channelName
     *        The name of the Microsoft Teams channel.
     */

    public void setChannelName(String channelName) {
        this.channelName = channelName;
    }

    /**
     * The name of the Microsoft Teams channel.
     * 
     * @return The name of the Microsoft Teams channel.
     */

    public String getChannelName() {
        return this.channelName;
    }

    /**
     * The name of the Microsoft Teams channel.
     * 
     * @param channelName
     *        The name of the Microsoft Teams channel.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public UpdateMicrosoftTeamsChannelConfigurationRequest withChannelName(String channelName) {
        setChannelName(channelName);
        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 UpdateMicrosoftTeamsChannelConfigurationRequest 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 UpdateMicrosoftTeamsChannelConfigurationRequest withSnsTopicArns(java.util.Collection snsTopicArns) { setSnsTopicArns(snsTopicArns); return this; } /** * The ARN of the IAM role that defines the permissions for AWS Chatbot. 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 * The ARN of the IAM role that defines the permissions for AWS Chatbot. 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; } /** * The ARN of the IAM role that defines the permissions for AWS Chatbot. 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 The ARN of the IAM role that defines the permissions for AWS Chatbot. 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; } /** * The ARN of the IAM role that defines the permissions for AWS Chatbot. 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 * The ARN of the IAM role that defines the permissions for AWS Chatbot. 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 UpdateMicrosoftTeamsChannelConfigurationRequest withIamRoleArn(String iamRoleArn) { setIamRoleArn(iamRoleArn); 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 UpdateMicrosoftTeamsChannelConfigurationRequest withLoggingLevel(String loggingLevel) { setLoggingLevel(loggingLevel); return this; } /** * The list of IAM policy ARNs that are applied as channel guardrails. The AWS managed 'AdministratorAccess' policy * is applied by default if this is not set. * * @return The list of IAM policy ARNs that are applied as channel guardrails. The AWS managed 'AdministratorAccess' * policy is applied by default if this is not set. */ public java.util.List getGuardrailPolicyArns() { return guardrailPolicyArns; } /** * The list of IAM policy ARNs that are applied as channel guardrails. The AWS managed 'AdministratorAccess' policy * is applied by default if this is not set. * * @param guardrailPolicyArns * The list of IAM policy ARNs that are applied as channel guardrails. The AWS managed 'AdministratorAccess' * policy is applied by default if this is not set. */ public void setGuardrailPolicyArns(java.util.Collection guardrailPolicyArns) { if (guardrailPolicyArns == null) { this.guardrailPolicyArns = null; return; } this.guardrailPolicyArns = new java.util.ArrayList(guardrailPolicyArns); } /** * The list of IAM policy ARNs that are applied as channel guardrails. The AWS managed 'AdministratorAccess' policy * is applied by default if this is not set. *

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

* * @param guardrailPolicyArns * The list of IAM policy ARNs that are applied as channel guardrails. The AWS managed 'AdministratorAccess' * policy is applied by default if this is not set. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateMicrosoftTeamsChannelConfigurationRequest withGuardrailPolicyArns(String... guardrailPolicyArns) { if (this.guardrailPolicyArns == null) { setGuardrailPolicyArns(new java.util.ArrayList(guardrailPolicyArns.length)); } for (String ele : guardrailPolicyArns) { this.guardrailPolicyArns.add(ele); } return this; } /** * The list of IAM policy ARNs that are applied as channel guardrails. The AWS managed 'AdministratorAccess' policy * is applied by default if this is not set. * * @param guardrailPolicyArns * The list of IAM policy ARNs that are applied as channel guardrails. The AWS managed 'AdministratorAccess' * policy is applied by default if this is not set. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateMicrosoftTeamsChannelConfigurationRequest withGuardrailPolicyArns(java.util.Collection guardrailPolicyArns) { setGuardrailPolicyArns(guardrailPolicyArns); return this; } /** * Enables use of a user role requirement in your chat configuration. * * @param userAuthorizationRequired * Enables use of a user role requirement in your chat configuration. */ public void setUserAuthorizationRequired(Boolean userAuthorizationRequired) { this.userAuthorizationRequired = userAuthorizationRequired; } /** * Enables use of a user role requirement in your chat configuration. * * @return Enables use of a user role requirement in your chat configuration. */ public Boolean getUserAuthorizationRequired() { return this.userAuthorizationRequired; } /** * Enables use of a user role requirement in your chat configuration. * * @param userAuthorizationRequired * Enables use of a user role requirement in your chat configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateMicrosoftTeamsChannelConfigurationRequest withUserAuthorizationRequired(Boolean userAuthorizationRequired) { setUserAuthorizationRequired(userAuthorizationRequired); return this; } /** * Enables use of a user role requirement in your chat configuration. * * @return Enables use of a user role requirement in your chat configuration. */ public Boolean isUserAuthorizationRequired() { return this.userAuthorizationRequired; } /** * 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 (getChatConfigurationArn() != null) sb.append("ChatConfigurationArn: ").append(getChatConfigurationArn()).append(","); if (getChannelId() != null) sb.append("ChannelId: ").append(getChannelId()).append(","); if (getChannelName() != null) sb.append("ChannelName: ").append(getChannelName()).append(","); if (getSnsTopicArns() != null) sb.append("SnsTopicArns: ").append(getSnsTopicArns()).append(","); if (getIamRoleArn() != null) sb.append("IamRoleArn: ").append(getIamRoleArn()).append(","); if (getLoggingLevel() != null) sb.append("LoggingLevel: ").append(getLoggingLevel()).append(","); if (getGuardrailPolicyArns() != null) sb.append("GuardrailPolicyArns: ").append(getGuardrailPolicyArns()).append(","); if (getUserAuthorizationRequired() != null) sb.append("UserAuthorizationRequired: ").append(getUserAuthorizationRequired()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateMicrosoftTeamsChannelConfigurationRequest == false) return false; UpdateMicrosoftTeamsChannelConfigurationRequest other = (UpdateMicrosoftTeamsChannelConfigurationRequest) obj; if (other.getChatConfigurationArn() == null ^ this.getChatConfigurationArn() == null) return false; if (other.getChatConfigurationArn() != null && other.getChatConfigurationArn().equals(this.getChatConfigurationArn()) == false) return false; if (other.getChannelId() == null ^ this.getChannelId() == null) return false; if (other.getChannelId() != null && other.getChannelId().equals(this.getChannelId()) == false) return false; if (other.getChannelName() == null ^ this.getChannelName() == null) return false; if (other.getChannelName() != null && other.getChannelName().equals(this.getChannelName()) == 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.getLoggingLevel() == null ^ this.getLoggingLevel() == null) return false; if (other.getLoggingLevel() != null && other.getLoggingLevel().equals(this.getLoggingLevel()) == false) return false; if (other.getGuardrailPolicyArns() == null ^ this.getGuardrailPolicyArns() == null) return false; if (other.getGuardrailPolicyArns() != null && other.getGuardrailPolicyArns().equals(this.getGuardrailPolicyArns()) == false) return false; if (other.getUserAuthorizationRequired() == null ^ this.getUserAuthorizationRequired() == null) return false; if (other.getUserAuthorizationRequired() != null && other.getUserAuthorizationRequired().equals(this.getUserAuthorizationRequired()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getChatConfigurationArn() == null) ? 0 : getChatConfigurationArn().hashCode()); hashCode = prime * hashCode + ((getChannelId() == null) ? 0 : getChannelId().hashCode()); hashCode = prime * hashCode + ((getChannelName() == null) ? 0 : getChannelName().hashCode()); hashCode = prime * hashCode + ((getSnsTopicArns() == null) ? 0 : getSnsTopicArns().hashCode()); hashCode = prime * hashCode + ((getIamRoleArn() == null) ? 0 : getIamRoleArn().hashCode()); hashCode = prime * hashCode + ((getLoggingLevel() == null) ? 0 : getLoggingLevel().hashCode()); hashCode = prime * hashCode + ((getGuardrailPolicyArns() == null) ? 0 : getGuardrailPolicyArns().hashCode()); hashCode = prime * hashCode + ((getUserAuthorizationRequired() == null) ? 0 : getUserAuthorizationRequired().hashCode()); return hashCode; } @Override public UpdateMicrosoftTeamsChannelConfigurationRequest clone() { return (UpdateMicrosoftTeamsChannelConfigurationRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy