com.bandwidth.voice.models.ModifyCallRecordingRequest 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.voice.models;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonSetter;
/**
* This is a model class for ModifyCallRecordingRequest type.
*/
public class ModifyCallRecordingRequest {
private State1Enum state;
/**
* Default constructor.
*/
public ModifyCallRecordingRequest() {
}
/**
* Initialization constructor.
* @param state State1Enum value for state.
*/
public ModifyCallRecordingRequest(
State1Enum state) {
this.state = state;
}
/**
* Getter for State.
* @return Returns the State1Enum
*/
@JsonGetter("state")
public State1Enum getState() {
return state;
}
/**
* Setter for State.
* @param state Value for State1Enum
*/
@JsonSetter("state")
public void setState(State1Enum state) {
this.state = state;
}
/**
* Converts this ModifyCallRecordingRequest into string format.
* @return String representation of this class
*/
@Override
public String toString() {
return "ModifyCallRecordingRequest [" + "state=" + state + "]";
}
/**
* Builds a new {@link ModifyCallRecordingRequest.Builder} object.
* Creates the instance with the state of the current model.
* @return a new {@link ModifyCallRecordingRequest.Builder} object
*/
public Builder toBuilder() {
Builder builder = new Builder(state);
return builder;
}
/**
* Class to build instances of {@link ModifyCallRecordingRequest}.
*/
public static class Builder {
private State1Enum state;
/**
* Initialization constructor.
*/
public Builder() {
}
/**
* Initialization constructor.
* @param state State1Enum value for state.
*/
public Builder(State1Enum state) {
this.state = state;
}
/**
* Setter for state.
* @param state State1Enum value for state.
* @return Builder
*/
public Builder state(State1Enum state) {
this.state = state;
return this;
}
/**
* Builds a new {@link ModifyCallRecordingRequest} object using the set fields.
* @return {@link ModifyCallRecordingRequest}
*/
public ModifyCallRecordingRequest build() {
return new ModifyCallRecordingRequest(state);
}
}
}