Class GatewayResponse

java.lang.Object
software.amazon.smithy.aws.apigateway.traits.GatewayResponse
All Implemented Interfaces:
ToNode, ToSmithyBuilder<GatewayResponse>

public final class GatewayResponse extends Object implements ToNode, ToSmithyBuilder<GatewayResponse>
A gateway response configuration for a specific response type.
See Also:
  • Method Details

    • builder

      public static GatewayResponse.Builder builder()
      Creates a builder for a GatewayResponse.
      Returns:
      Returns the created builder.
    • fromNode

      public static GatewayResponse fromNode(Node node)
      Creates a GatewayResponse from a Node.
      Parameters:
      node - Node to deserialize.
      Returns:
      Returns the created GatewayResponse.
    • getStatusCode

      public Optional<String> getStatusCode()
      Gets the HTTP status code for the gateway response.
      Returns:
      Returns the optional status code.
    • getResponseParameters

      public Map<String,String> getResponseParameters()
      Gets the response parameters for the gateway response.
      Returns:
      Returns the immutable map of response parameters.
    • getResponseTemplates

      public Map<String,String> getResponseTemplates()
      Gets the response templates for the gateway response.
      Returns:
      Returns the immutable map of response templates.
    • toBuilder

      public GatewayResponse.Builder toBuilder()
      Description copied from interface: ToSmithyBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToSmithyBuilder<GatewayResponse>
      Returns:
      a builder for type T
    • toNode

      public Node toNode()
      Description copied from interface: ToNode
      Converts a value to a Node.
      Specified by:
      toNode in interface ToNode
      Returns:
      Returns the creates Node.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object