Interface Model.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Model.Builder,Model>, SdkBuilder<Model.Builder,Model>, SdkPojo
Enclosing class:
Model

public static interface Model.Builder extends SdkPojo, CopyableBuilder<Model.Builder,Model>
  • Method Details

    • id

      The identifier for the model resource.

      Parameters:
      id - The identifier for the model resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      Model.Builder name(String name)

      The name of the model. Must be an alphanumeric string.

      Parameters:
      name - The name of the model. Must be an alphanumeric string.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      Model.Builder description(String description)

      The description of the model.

      Parameters:
      description - The description of the model.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • schema

      Model.Builder schema(String schema)

      The schema for the model. For application/json models, this should be JSON schema draft 4 model. Do not include "\*/" characters in the description of any properties because such "\*/" characters may be interpreted as the closing marker for comments in some languages, such as Java or JavaScript, causing the installation of your API's SDK generated by API Gateway to fail.

      Parameters:
      schema - The schema for the model. For application/json models, this should be JSON schema draft 4 model. Do not include "\*/" characters in the description of any properties because such "\*/" characters may be interpreted as the closing marker for comments in some languages, such as Java or JavaScript, causing the installation of your API's SDK generated by API Gateway to fail.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • contentType

      Model.Builder contentType(String contentType)

      The content-type for the model.

      Parameters:
      contentType - The content-type for the model.
      Returns:
      Returns a reference to this object so that method calls can be chained together.