com.bandwidth.webrtc.models.AccountsParticipantsResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bandwidth-sdk Show documentation
Show all versions of bandwidth-sdk Show documentation
The official client SDK for Bandwidth's Voice, Messaging, MFA, and WebRTC APIs
/*
* BandwidthLib
*
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
package com.bandwidth.webrtc.models;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonSetter;
/**
* This is a model class for AccountsParticipantsResponse type.
*/
public class AccountsParticipantsResponse {
@JsonInclude(JsonInclude.Include.NON_NULL)
private Participant participant;
@JsonInclude(JsonInclude.Include.NON_NULL)
private String token;
/**
* Default constructor.
*/
public AccountsParticipantsResponse() {
}
/**
* Initialization constructor.
* @param participant Participant value for participant.
* @param token String value for token.
*/
public AccountsParticipantsResponse(
Participant participant,
String token) {
this.participant = participant;
this.token = token;
}
/**
* Getter for Participant.
* A participant object
* @return Returns the Participant
*/
@JsonGetter("participant")
public Participant getParticipant() {
return participant;
}
/**
* Setter for Participant.
* A participant object
* @param participant Value for Participant
*/
@JsonSetter("participant")
public void setParticipant(Participant participant) {
this.participant = participant;
}
/**
* Getter for Token.
* Auth token for the returned participant This should be passed to the participant so that they
* can connect to the platform
* @return Returns the String
*/
@JsonGetter("token")
public String getToken() {
return token;
}
/**
* Setter for Token.
* Auth token for the returned participant This should be passed to the participant so that they
* can connect to the platform
* @param token Value for String
*/
@JsonSetter("token")
public void setToken(String token) {
this.token = token;
}
/**
* Converts this AccountsParticipantsResponse into string format.
* @return String representation of this class
*/
@Override
public String toString() {
return "AccountsParticipantsResponse [" + "participant=" + participant + ", token=" + token
+ "]";
}
/**
* Builds a new {@link AccountsParticipantsResponse.Builder} object.
* Creates the instance with the state of the current model.
* @return a new {@link AccountsParticipantsResponse.Builder} object
*/
public Builder toBuilder() {
Builder builder = new Builder()
.participant(getParticipant())
.token(getToken());
return builder;
}
/**
* Class to build instances of {@link AccountsParticipantsResponse}.
*/
public static class Builder {
private Participant participant;
private String token;
/**
* Setter for participant.
* @param participant Participant value for participant.
* @return Builder
*/
public Builder participant(Participant participant) {
this.participant = participant;
return this;
}
/**
* Setter for token.
* @param token String value for token.
* @return Builder
*/
public Builder token(String token) {
this.token = token;
return this;
}
/**
* Builds a new {@link AccountsParticipantsResponse} object using the set fields.
* @return {@link AccountsParticipantsResponse}
*/
public AccountsParticipantsResponse build() {
return new AccountsParticipantsResponse(participant, token);
}
}
}