@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class APISchema extends Object implements Serializable, Cloneable, StructuredPojo
Contains details about the OpenAPI schema for a custom plugin. For more information, see custom plugin
OpenAPI schemas. You can either include the schema directly in the payload field or you can upload it to an S3
bucket and specify the S3 bucket location in the s3
field.
Constructor and Description |
---|
APISchema() |
Modifier and Type | Method and Description |
---|---|
APISchema |
clone() |
boolean |
equals(Object obj) |
String |
getPayload()
The JSON or YAML-formatted payload defining the OpenAPI schema for a custom plugin.
|
S3 |
getS3()
Contains details about the S3 object containing the OpenAPI schema for a custom plugin.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setPayload(String payload)
The JSON or YAML-formatted payload defining the OpenAPI schema for a custom plugin.
|
void |
setS3(S3 s3)
Contains details about the S3 object containing the OpenAPI schema for a custom plugin.
|
String |
toString()
Returns a string representation of this object.
|
APISchema |
withPayload(String payload)
The JSON or YAML-formatted payload defining the OpenAPI schema for a custom plugin.
|
APISchema |
withS3(S3 s3)
Contains details about the S3 object containing the OpenAPI schema for a custom plugin.
|
public void setPayload(String payload)
The JSON or YAML-formatted payload defining the OpenAPI schema for a custom plugin.
payload
- The JSON or YAML-formatted payload defining the OpenAPI schema for a custom plugin.public String getPayload()
The JSON or YAML-formatted payload defining the OpenAPI schema for a custom plugin.
public APISchema withPayload(String payload)
The JSON or YAML-formatted payload defining the OpenAPI schema for a custom plugin.
payload
- The JSON or YAML-formatted payload defining the OpenAPI schema for a custom plugin.public void setS3(S3 s3)
Contains details about the S3 object containing the OpenAPI schema for a custom plugin. The schema could be in either JSON or YAML format.
s3
- Contains details about the S3 object containing the OpenAPI schema for a custom plugin. The schema could
be in either JSON or YAML format.public S3 getS3()
Contains details about the S3 object containing the OpenAPI schema for a custom plugin. The schema could be in either JSON or YAML format.
public APISchema withS3(S3 s3)
Contains details about the S3 object containing the OpenAPI schema for a custom plugin. The schema could be in either JSON or YAML format.
s3
- Contains details about the S3 object containing the OpenAPI schema for a custom plugin. The schema could
be in either JSON or YAML format.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.