com.urbanairship.api.createandsend.model.audience.sms.SmsChannels Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-client Show documentation
Show all versions of java-client Show documentation
The Urban Airship Java client library
package com.urbanairship.api.createandsend.model.audience.sms;
import com.google.common.collect.ImmutableList;
import java.util.List;
/**
* Contains all SmsChannel objects to be used in the create and send audience.
*/
public class SmsChannels {
private final ImmutableList smsChannels;
private SmsChannels(Builder builder) {
this.smsChannels = builder.smsChannels.build();
}
/**
* Builder for SmsChannels
* @return Builder
*/
public static Builder newBuilder() {
return new Builder();
}
/**
* Get all the audience Sms channels.
* @return ImmutableList of SmsChannel
*/
public ImmutableList getSmsChannels() {
return smsChannels;
}
public static class Builder {
private ImmutableList.Builder smsChannels = ImmutableList.builder();
/**
* Add a SmsChannel for create and send audience.
* @param smsChannel SmsChannel
* @return SmsChannels Builder
*/
public Builder addSmsChannel(SmsChannel smsChannel) {
smsChannels.add(smsChannel);
return this;
}
/**
* Add all SmsChannel objects for create and send audience.
* @param smsChannelList SmsChannel
* @return SmsChannels Builder
*/
public Builder addAllSmsChannels(List smsChannelList) {
smsChannels.addAll(smsChannelList);
return this;
}
public SmsChannels build() {
return new SmsChannels(this);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy