
com.huaweicloud.sdk.meeting.v1.model.SetRoleRequest Maven / Gradle / Ivy
package com.huaweicloud.sdk.meeting.v1.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
import java.util.function.Consumer;
/** Request Object */
public class SetRoleRequest {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "conferenceID")
private String conferenceID;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "participantID")
private String participantID;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "X-Conference-Authorization")
private String xConferenceAuthorization;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "body")
private RestChairTokenReqBody body;
public SetRoleRequest withConferenceID(String conferenceID) {
this.conferenceID = conferenceID;
return this;
}
/** 会议ID
*
* @return conferenceID */
public String getConferenceID() {
return conferenceID;
}
public void setConferenceID(String conferenceID) {
this.conferenceID = conferenceID;
}
public SetRoleRequest withParticipantID(String participantID) {
this.participantID = participantID;
return this;
}
/** 与会者标识。
*
* @return participantID */
public String getParticipantID() {
return participantID;
}
public void setParticipantID(String participantID) {
this.participantID = participantID;
}
public SetRoleRequest withXConferenceAuthorization(String xConferenceAuthorization) {
this.xConferenceAuthorization = xConferenceAuthorization;
return this;
}
/** 会控授权令牌,通过获取会控token接口获得。
*
* @return xConferenceAuthorization */
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "X-Conference-Authorization")
public String getXConferenceAuthorization() {
return xConferenceAuthorization;
}
public void setXConferenceAuthorization(String xConferenceAuthorization) {
this.xConferenceAuthorization = xConferenceAuthorization;
}
public SetRoleRequest withBody(RestChairTokenReqBody body) {
this.body = body;
return this;
}
public SetRoleRequest withBody(Consumer bodySetter) {
if (this.body == null) {
this.body = new RestChairTokenReqBody();
bodySetter.accept(this.body);
}
return this;
}
/** Get body
*
* @return body */
public RestChairTokenReqBody getBody() {
return body;
}
public void setBody(RestChairTokenReqBody body) {
this.body = body;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SetRoleRequest setRoleRequest = (SetRoleRequest) o;
return Objects.equals(this.conferenceID, setRoleRequest.conferenceID)
&& Objects.equals(this.participantID, setRoleRequest.participantID)
&& Objects.equals(this.xConferenceAuthorization, setRoleRequest.xConferenceAuthorization)
&& Objects.equals(this.body, setRoleRequest.body);
}
@Override
public int hashCode() {
return Objects.hash(conferenceID, participantID, xConferenceAuthorization, body);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SetRoleRequest {\n");
sb.append(" conferenceID: ").append(toIndentedString(conferenceID)).append("\n");
sb.append(" participantID: ").append(toIndentedString(participantID)).append("\n");
sb.append(" xConferenceAuthorization: ").append(toIndentedString(xConferenceAuthorization)).append("\n");
sb.append(" body: ").append(toIndentedString(body)).append("\n");
sb.append("}");
return sb.toString();
}
/** Convert the given object to string with each line indented by 4 spaces (except the first line). */
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy