types

package
v0.2.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComplexError

type ComplexError struct {
	Message *string

	Header   *string
	TopLevel *string
	Nested   *ComplexNestedErrorData
}

This error is thrown when a request is invalid.

func (*ComplexError) Error

func (e *ComplexError) Error() string

func (*ComplexError) ErrorCode

func (e *ComplexError) ErrorCode() string

func (*ComplexError) ErrorFault

func (e *ComplexError) ErrorFault() smithy.ErrorFault

func (*ComplexError) ErrorMessage

func (e *ComplexError) ErrorMessage() string

type ComplexNestedErrorData

type ComplexNestedErrorData struct {
	Foo *string
}

type FooEnum

type FooEnum string
const (
	FooEnumFoo  FooEnum = "Foo"
	FooEnumBaz  FooEnum = "Baz"
	FooEnumBar  FooEnum = "Bar"
	FooEnumOne  FooEnum = "1"
	FooEnumZero FooEnum = "0"
)

Enum values for FooEnum

func (FooEnum) Values added in v0.1.3

func (FooEnum) Values() []FooEnum

Values returns all known values for FooEnum. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type GreetingStruct

type GreetingStruct struct {
	Hi *string
}

type InvalidGreeting

type InvalidGreeting struct {
	Message *string
}

This error is thrown when an invalid greeting value is provided.

func (*InvalidGreeting) Error

func (e *InvalidGreeting) Error() string

func (*InvalidGreeting) ErrorCode

func (e *InvalidGreeting) ErrorCode() string

func (*InvalidGreeting) ErrorFault

func (e *InvalidGreeting) ErrorFault() smithy.ErrorFault

func (*InvalidGreeting) ErrorMessage

func (e *InvalidGreeting) ErrorMessage() string

type NestedPayload

type NestedPayload struct {
	Greeting *string

	Name *string
}

type PayloadWithXmlName

type PayloadWithXmlName struct {
	Name *string
}

type PayloadWithXmlNamespace

type PayloadWithXmlNamespace struct {
	Name *string
}

type PayloadWithXmlNamespaceAndPrefix

type PayloadWithXmlNamespaceAndPrefix struct {
	Name *string
}

type RecursiveShapesInputOutputNested1

type RecursiveShapesInputOutputNested1 struct {
	Foo *string

	Nested *RecursiveShapesInputOutputNested2
}

type RecursiveShapesInputOutputNested2

type RecursiveShapesInputOutputNested2 struct {
	Bar *string

	RecursiveMember *RecursiveShapesInputOutputNested1
}

type StructureListMember

type StructureListMember struct {
	A *string

	B *string
}

type UnknownUnionMember added in v0.2.4

type UnknownUnionMember struct {
	Tag   string
	Value []byte
}

UnknownUnionMember is returned when a union member is returned over the wire, but has an unknown tag.

type XmlAttributesInputOutput

type XmlAttributesInputOutput struct {
	Attr *string

	Foo *string
}

type XmlNamespaceNested

type XmlNamespaceNested struct {
	Foo *string

	Values []string
}

type XmlNestedUnionStruct added in v0.2.4

type XmlNestedUnionStruct struct {
	BooleanValue *bool

	ByteValue *int8

	DoubleValue *float64

	FloatValue *float32

	IntegerValue *int32

	LongValue *int64

	ShortValue *int16

	StringValue *string
}

type XmlUnionShape added in v0.2.4

type XmlUnionShape interface {
	// contains filtered or unexported methods
}

The following types satisfy this interface:

XmlUnionShapeMemberStringValue
XmlUnionShapeMemberBooleanValue
XmlUnionShapeMemberByteValue
XmlUnionShapeMemberShortValue
XmlUnionShapeMemberIntegerValue
XmlUnionShapeMemberLongValue
XmlUnionShapeMemberFloatValue
XmlUnionShapeMemberDoubleValue
XmlUnionShapeMemberUnionValue
XmlUnionShapeMemberStructValue
Example (OutputUsage)
// Code generated by smithy-go-codegen DO NOT EDIT.

package main

import (
	"fmt"
	"github.com/aws/aws-sdk-go-v2/internal/protocoltest/restxml/types"
)

func main() {
	var union types.XmlUnionShape
	// type switches can be used to check the union value
	switch v := union.(type) {
	case *types.XmlUnionShapeMemberBooleanValue:
		_ = v.Value // Value is bool

	case *types.XmlUnionShapeMemberByteValue:
		_ = v.Value // Value is int8

	case *types.XmlUnionShapeMemberDoubleValue:
		_ = v.Value // Value is float64

	case *types.XmlUnionShapeMemberFloatValue:
		_ = v.Value // Value is float32

	case *types.XmlUnionShapeMemberIntegerValue:
		_ = v.Value // Value is int32

	case *types.XmlUnionShapeMemberLongValue:
		_ = v.Value // Value is int64

	case *types.XmlUnionShapeMemberShortValue:
		_ = v.Value // Value is int16

	case *types.XmlUnionShapeMemberStringValue:
		_ = v.Value // Value is string

	case *types.XmlUnionShapeMemberStructValue:
		_ = v.Value // Value is types.XmlNestedUnionStruct

	case *types.XmlUnionShapeMemberUnionValue:
		_ = v.Value // Value is types.XmlUnionShape

	case *types.UnknownUnionMember:
		fmt.Println("unknown tag:", v.Tag)

	default:
		fmt.Println("union is nil or unknown type")

	}
}

var _ *string
var _ *int32
var _ *bool
var _ *int64
var _ *float64
var _ *int16
var _ *int8
var _ *types.XmlNestedUnionStruct
var _ types.XmlUnionShape
var _ *float32
Output:

type XmlUnionShapeMemberBooleanValue added in v0.2.4

type XmlUnionShapeMemberBooleanValue struct {
	Value bool
}

type XmlUnionShapeMemberByteValue added in v0.2.4

type XmlUnionShapeMemberByteValue struct {
	Value int8
}

type XmlUnionShapeMemberDoubleValue added in v0.2.4

type XmlUnionShapeMemberDoubleValue struct {
	Value float64
}

type XmlUnionShapeMemberFloatValue added in v0.2.4

type XmlUnionShapeMemberFloatValue struct {
	Value float32
}

type XmlUnionShapeMemberIntegerValue added in v0.2.4

type XmlUnionShapeMemberIntegerValue struct {
	Value int32
}

type XmlUnionShapeMemberLongValue added in v0.2.4

type XmlUnionShapeMemberLongValue struct {
	Value int64
}

type XmlUnionShapeMemberShortValue added in v0.2.4

type XmlUnionShapeMemberShortValue struct {
	Value int16
}

type XmlUnionShapeMemberStringValue added in v0.2.4

type XmlUnionShapeMemberStringValue struct {
	Value string
}

type XmlUnionShapeMemberStructValue added in v0.2.4

type XmlUnionShapeMemberStructValue struct {
	Value XmlNestedUnionStruct
}

type XmlUnionShapeMemberUnionValue added in v0.2.4

type XmlUnionShapeMemberUnionValue struct {
	Value XmlUnionShape
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL