/* * Copyright 2010-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.chimesdkmessaging.model; import java.io.Serializable; public class BatchCreateChannelMembershipResult implements Serializable { /** *
* The list of channel memberships in the response. *
*/ private BatchChannelMemberships batchChannelMemberships; /** ** If the action fails for one or more of the memberships in the request, a * list of the memberships is returned, along with error codes and error * messages. *
*/ private java.util.List* The list of channel memberships in the response. *
* * @return* The list of channel memberships in the response. *
*/ public BatchChannelMemberships getBatchChannelMemberships() { return batchChannelMemberships; } /** ** The list of channel memberships in the response. *
* * @param batchChannelMemberships* The list of channel memberships in the response. *
*/ public void setBatchChannelMemberships(BatchChannelMemberships batchChannelMemberships) { this.batchChannelMemberships = batchChannelMemberships; } /** ** The list of channel memberships in the response. *
** Returns a reference to this object so that method calls can be chained * together. * * @param batchChannelMemberships
* The list of channel memberships in the response. *
* @return A reference to this updated object so that method calls can be * chained together. */ public BatchCreateChannelMembershipResult withBatchChannelMemberships( BatchChannelMemberships batchChannelMemberships) { this.batchChannelMemberships = batchChannelMemberships; return this; } /** ** If the action fails for one or more of the memberships in the request, a * list of the memberships is returned, along with error codes and error * messages. *
* * @return* If the action fails for one or more of the memberships in the * request, a list of the memberships is returned, along with error * codes and error messages. *
*/ public java.util.List* If the action fails for one or more of the memberships in the request, a * list of the memberships is returned, along with error codes and error * messages. *
* * @param errors* If the action fails for one or more of the memberships in the * request, a list of the memberships is returned, along with * error codes and error messages. *
*/ public void setErrors(java.util.Collection* If the action fails for one or more of the memberships in the request, a * list of the memberships is returned, along with error codes and error * messages. *
** Returns a reference to this object so that method calls can be chained * together. * * @param errors
* If the action fails for one or more of the memberships in the * request, a list of the memberships is returned, along with * error codes and error messages. *
* @return A reference to this updated object so that method calls can be * chained together. */ public BatchCreateChannelMembershipResult withErrors( BatchCreateChannelMembershipError... errors) { if (getErrors() == null) { this.errors = new java.util.ArrayList* If the action fails for one or more of the memberships in the request, a * list of the memberships is returned, along with error codes and error * messages. *
** Returns a reference to this object so that method calls can be chained * together. * * @param errors
* If the action fails for one or more of the memberships in the * request, a list of the memberships is returned, along with * error codes and error messages. *
* @return A reference to this updated object so that method calls can be * chained together. */ public BatchCreateChannelMembershipResult withErrors( java.util.Collection