com.aliyun.apig20240327.models.HttpApiRequestContract Maven / Gradle / Ivy
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.apig20240327.models;
import com.aliyun.tea.*;
public class HttpApiRequestContract extends TeaModel {
@NameInMap("body")
public HttpApiRequestContractBody body;
@NameInMap("headerParameters")
public java.util.List headerParameters;
@NameInMap("pathParameters")
public java.util.List pathParameters;
@NameInMap("queryParameters")
public java.util.List queryParameters;
public static HttpApiRequestContract build(java.util.Map map) throws Exception {
HttpApiRequestContract self = new HttpApiRequestContract();
return TeaModel.build(map, self);
}
public HttpApiRequestContract setBody(HttpApiRequestContractBody body) {
this.body = body;
return this;
}
public HttpApiRequestContractBody getBody() {
return this.body;
}
public HttpApiRequestContract setHeaderParameters(java.util.List headerParameters) {
this.headerParameters = headerParameters;
return this;
}
public java.util.List getHeaderParameters() {
return this.headerParameters;
}
public HttpApiRequestContract setPathParameters(java.util.List pathParameters) {
this.pathParameters = pathParameters;
return this;
}
public java.util.List getPathParameters() {
return this.pathParameters;
}
public HttpApiRequestContract setQueryParameters(java.util.List queryParameters) {
this.queryParameters = queryParameters;
return this;
}
public java.util.List getQueryParameters() {
return this.queryParameters;
}
public static class HttpApiRequestContractBody extends TeaModel {
/**
* example:
* application/json
*/
@NameInMap("contentType")
public String contentType;
@NameInMap("description")
public String description;
/**
* example:
* {"key":"value"}
*/
@NameInMap("example")
public String example;
@NameInMap("jsonSchema")
public String jsonSchema;
public static HttpApiRequestContractBody build(java.util.Map map) throws Exception {
HttpApiRequestContractBody self = new HttpApiRequestContractBody();
return TeaModel.build(map, self);
}
public HttpApiRequestContractBody setContentType(String contentType) {
this.contentType = contentType;
return this;
}
public String getContentType() {
return this.contentType;
}
public HttpApiRequestContractBody setDescription(String description) {
this.description = description;
return this;
}
public String getDescription() {
return this.description;
}
public HttpApiRequestContractBody setExample(String example) {
this.example = example;
return this;
}
public String getExample() {
return this.example;
}
public HttpApiRequestContractBody setJsonSchema(String jsonSchema) {
this.jsonSchema = jsonSchema;
return this;
}
public String getJsonSchema() {
return this.jsonSchema;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy