TraitApplication

zio.blocks.smithy.TraitApplication
See theTraitApplication companion class

Attributes

Companion
class
Source
TraitApplication.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
Source
Mirror.scala
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

def documentation(text: String): TraitApplication

Creates the @documentation trait with the given documentation text.

Creates the @documentation trait with the given documentation text.

This is a convenience factory for the smithy.api#documentation trait.

Value parameters

text

the documentation string

Attributes

Returns

a TraitApplication for the @documentation trait

Source
TraitApplication.scala
def error(value: String): TraitApplication

Creates the @error trait with the given error classification.

Creates the @error trait with the given error classification.

This is a convenience factory for the smithy.api#error trait, which marks a shape as an error and specifies its classification.

Value parameters

value

the error classification (typically "client" or "server")

Attributes

Returns

a TraitApplication for the @error trait

Source
TraitApplication.scala
def http(method: String, uri: String): TraitApplication

Creates the @http trait with the given HTTP method and URI.

Creates the @http trait with the given HTTP method and URI.

This is a convenience factory for the smithy.api#http trait, which configures HTTP bindings for a shape (typically an operation).

Value parameters

method

the HTTP method (e.g., "GET", "POST", "PUT", "DELETE")

uri

the URI template (e.g., "/users/{id}")

Attributes

Returns

a TraitApplication for the @http trait

Source
TraitApplication.scala

Creates the @required trait, which marks a shape as required.

Creates the @required trait, which marks a shape as required.

This is a convenience factory for the smithy.api#required trait, which takes no configuration value.

Attributes

Returns

a TraitApplication for the @required trait

Source
TraitApplication.scala