
com.ibm.cloud.eventnotifications.event_notifications.v1.model.UpdateAttributesInvited 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 UpdateAttributesInvited extends GenericModel {
protected List add;
protected List remove;
/**
* Builder.
*/
public static class Builder {
private List add;
private List remove;
/**
* Instantiates a new Builder from an existing UpdateAttributesInvited instance.
*
* @param updateAttributesInvited the instance to initialize the Builder with
*/
private Builder(UpdateAttributesInvited updateAttributesInvited) {
this.add = updateAttributesInvited.add;
this.remove = updateAttributesInvited.remove;
}
/**
* Instantiates a new builder.
*/
public Builder() {
}
/**
* Builds a UpdateAttributesInvited.
*
* @return the new UpdateAttributesInvited instance
*/
public UpdateAttributesInvited build() {
return new UpdateAttributesInvited(this);
}
/**
* Adds an add to add.
*
* @param add the new add
* @return the UpdateAttributesInvited builder
*/
public Builder addAdd(String add) {
com.ibm.cloud.sdk.core.util.Validator.notNull(add,
"add cannot be null");
if (this.add == null) {
this.add = new ArrayList();
}
this.add.add(add);
return this;
}
/**
* Adds an remove to remove.
*
* @param remove the new remove
* @return the UpdateAttributesInvited 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 add.
* Existing add will be replaced.
*
* @param add the add
* @return the UpdateAttributesInvited builder
*/
public Builder add(List add) {
this.add = add;
return this;
}
/**
* Set the remove.
* Existing remove will be replaced.
*
* @param remove the remove
* @return the UpdateAttributesInvited builder
*/
public Builder remove(List remove) {
this.remove = remove;
return this;
}
}
protected UpdateAttributesInvited() { }
protected UpdateAttributesInvited(Builder builder) {
add = builder.add;
remove = builder.remove;
}
/**
* New builder.
*
* @return a UpdateAttributesInvited builder
*/
public Builder newBuilder() {
return new Builder(this);
}
/**
* Gets the add.
*
* The email ids or phone numbers to be invited.
*
* @return the add
*/
public List add() {
return add;
}
/**
* Gets the remove.
*
* The email ids or phone numbers for removal.
*
* @return the remove
*/
public List remove() {
return remove;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy