Documentation
¶
Index ¶
- type ComplexError
- type ComplexNestedErrorData
- type FooEnum
- type GreetingStruct
- type InvalidGreeting
- type NestedPayload
- type PayloadWithXmlName
- type PayloadWithXmlNamespace
- type PayloadWithXmlNamespaceAndPrefix
- type RecursiveShapesInputOutputNested1
- type RecursiveShapesInputOutputNested2
- type StructureListMember
- type UnknownUnionMember
- type XmlAttributesInputOutput
- type XmlNamespaceNested
- type XmlNestedUnionStruct
- type XmlUnionShape
- type XmlUnionShapeMemberBooleanValue
- type XmlUnionShapeMemberByteValue
- type XmlUnionShapeMemberDoubleValue
- type XmlUnionShapeMemberFloatValue
- type XmlUnionShapeMemberIntegerValue
- type XmlUnionShapeMemberLongValue
- type XmlUnionShapeMemberShortValue
- type XmlUnionShapeMemberStringValue
- type XmlUnionShapeMemberStructValue
- type XmlUnionShapeMemberUnionValue
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
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 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 UnknownUnionMember ¶ added in v0.2.4
UnknownUnionMember is returned when a union member is returned over the wire, but has an unknown tag.
type XmlNamespaceNested ¶
type XmlNestedUnionStruct ¶ added in v0.2.4
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
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
}
Click to show internal directories.
Click to hide internal directories.