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

com.ibm.cloud.eventnotifications.event_notifications.v1.model.UpdateAttributesSubscribed Maven / Gradle / Ivy

/*
 * (C) Copyright IBM Corp. 2023.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License 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.ibm.cloud.eventnotifications.event_notifications.v1.model;

import java.util.ArrayList;
import java.util.List;

import com.ibm.cloud.sdk.core.service.model.GenericModel;

/**
 * The email ids or phone numbers.
 */
public class UpdateAttributesSubscribed extends GenericModel {

  protected List remove;

  /**
   * Builder.
   */
  public static class Builder {
    private List remove;

    /**
     * Instantiates a new Builder from an existing UpdateAttributesSubscribed instance.
     *
     * @param updateAttributesSubscribed the instance to initialize the Builder with
     */
    private Builder(UpdateAttributesSubscribed updateAttributesSubscribed) {
      this.remove = updateAttributesSubscribed.remove;
    }

    /**
     * Instantiates a new builder.
     */
    public Builder() {
    }

    /**
     * Builds a UpdateAttributesSubscribed.
     *
     * @return the new UpdateAttributesSubscribed instance
     */
    public UpdateAttributesSubscribed build() {
      return new UpdateAttributesSubscribed(this);
    }

    /**
     * Adds an remove to remove.
     *
     * @param remove the new remove
     * @return the UpdateAttributesSubscribed builder
     */
    public Builder addRemove(String remove) {
      com.ibm.cloud.sdk.core.util.Validator.notNull(remove,
        "remove cannot be null");
      if (this.remove == null) {
        this.remove = new ArrayList();
      }
      this.remove.add(remove);
      return this;
    }

    /**
     * Set the remove.
     * Existing remove will be replaced.
     *
     * @param remove the remove
     * @return the UpdateAttributesSubscribed builder
     */
    public Builder remove(List remove) {
      this.remove = remove;
      return this;
    }
  }

  protected UpdateAttributesSubscribed() { }

  protected UpdateAttributesSubscribed(Builder builder) {
    remove = builder.remove;
  }

  /**
   * New builder.
   *
   * @return a UpdateAttributesSubscribed builder
   */
  public Builder newBuilder() {
    return new Builder(this);
  }

  /**
   * Gets the remove.
   *
   * The email ids or phone numbers to be unsubscribed.
   *
   * @return the remove
   */
  public List remove() {
    return remove;
  }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy