com.aliyun.sdk.service.fc_open20210406.models.InvokeFunctionResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-fc_open20210406 Show documentation
Show all versions of alibabacloud-fc_open20210406 Show documentation
Alibaba Cloud FC-Open (20210406) Async SDK for Java
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.fc_open20210406.models;
import com.aliyun.core.annotation.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link InvokeFunctionResponse} extends {@link TeaModel}
*
* InvokeFunctionResponse
*/
public class InvokeFunctionResponse extends Response {
@NameInMap("headers")
@Validation(required = true)
private java.util.Map < String, String > headers;
@NameInMap("body")
@Validation(required = true)
private byte[] body;
private InvokeFunctionResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.body = builder.body;
}
public static InvokeFunctionResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map < String, String > getHeaders() {
return this.headers;
}
/**
* @return body
*/
public byte[] getBody() {
return this.body;
}
public interface Builder extends Response.Builder {
Builder headers(java.util.Map < String, String > headers);
Builder body(byte[] body);
@Override
InvokeFunctionResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl
implements Builder {
private java.util.Map < String, String > headers;
private byte[] body;
private BuilderImpl() {
super();
}
private BuilderImpl(InvokeFunctionResponse response) {
super(response);
this.headers = response.headers;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map < String, String > headers) {
this.headers = headers;
return this;
}
/**
* body.
*/
@Override
public Builder body(byte[] body) {
this.body = body;
return this;
}
@Override
public InvokeFunctionResponse build() {
return new InvokeFunctionResponse(this);
}
}
}