
com.huaweicloud.sdk.meeting.v1.model.InviteParticipantRequest 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 InviteParticipantRequest {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "conferenceID")
private String conferenceID;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "X-Conference-Authorization")
private String xConferenceAuthorization;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "body")
private RestInviteReqBody body;
public InviteParticipantRequest 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 InviteParticipantRequest 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 InviteParticipantRequest withBody(RestInviteReqBody body) {
this.body = body;
return this;
}
public InviteParticipantRequest withBody(Consumer bodySetter) {
if (this.body == null) {
this.body = new RestInviteReqBody();
bodySetter.accept(this.body);
}
return this;
}
/** Get body
*
* @return body */
public RestInviteReqBody getBody() {
return body;
}
public void setBody(RestInviteReqBody 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;
}
InviteParticipantRequest inviteParticipantRequest = (InviteParticipantRequest) o;
return Objects.equals(this.conferenceID, inviteParticipantRequest.conferenceID)
&& Objects.equals(this.xConferenceAuthorization, inviteParticipantRequest.xConferenceAuthorization)
&& Objects.equals(this.body, inviteParticipantRequest.body);
}
@Override
public int hashCode() {
return Objects.hash(conferenceID, xConferenceAuthorization, body);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class InviteParticipantRequest {\n");
sb.append(" conferenceID: ").append(toIndentedString(conferenceID)).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