1// Code generated by smithy-go-codegen DO NOT EDIT.
2
3package types
4
5import (
6	"fmt"
7	smithy "github.com/aws/smithy-go"
8)
9
10// Provides information about an API request or response.
11type BadRequestException struct {
12	Message *string
13
14	RequestID *string
15}
16
17func (e *BadRequestException) Error() string {
18	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
19}
20func (e *BadRequestException) ErrorMessage() string {
21	if e.Message == nil {
22		return ""
23	}
24	return *e.Message
25}
26func (e *BadRequestException) ErrorCode() string             { return "BadRequestException" }
27func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
28
29// Provides information about an API request or response.
30type ConflictException struct {
31	Message *string
32
33	RequestID *string
34}
35
36func (e *ConflictException) Error() string {
37	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
38}
39func (e *ConflictException) ErrorMessage() string {
40	if e.Message == nil {
41		return ""
42	}
43	return *e.Message
44}
45func (e *ConflictException) ErrorCode() string             { return "ConflictException" }
46func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
47
48// Provides information about an API request or response.
49type ForbiddenException struct {
50	Message *string
51
52	RequestID *string
53}
54
55func (e *ForbiddenException) Error() string {
56	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
57}
58func (e *ForbiddenException) ErrorMessage() string {
59	if e.Message == nil {
60		return ""
61	}
62	return *e.Message
63}
64func (e *ForbiddenException) ErrorCode() string             { return "ForbiddenException" }
65func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
66
67// Provides information about an API request or response.
68type InternalServerErrorException struct {
69	Message *string
70
71	RequestID *string
72}
73
74func (e *InternalServerErrorException) Error() string {
75	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
76}
77func (e *InternalServerErrorException) ErrorMessage() string {
78	if e.Message == nil {
79		return ""
80	}
81	return *e.Message
82}
83func (e *InternalServerErrorException) ErrorCode() string             { return "InternalServerErrorException" }
84func (e *InternalServerErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer }
85
86// Provides information about an API request or response.
87type MethodNotAllowedException struct {
88	Message *string
89
90	RequestID *string
91}
92
93func (e *MethodNotAllowedException) Error() string {
94	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
95}
96func (e *MethodNotAllowedException) ErrorMessage() string {
97	if e.Message == nil {
98		return ""
99	}
100	return *e.Message
101}
102func (e *MethodNotAllowedException) ErrorCode() string             { return "MethodNotAllowedException" }
103func (e *MethodNotAllowedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
104
105// Provides information about an API request or response.
106type NotFoundException struct {
107	Message *string
108
109	RequestID *string
110}
111
112func (e *NotFoundException) Error() string {
113	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
114}
115func (e *NotFoundException) ErrorMessage() string {
116	if e.Message == nil {
117		return ""
118	}
119	return *e.Message
120}
121func (e *NotFoundException) ErrorCode() string             { return "NotFoundException" }
122func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
123
124// Provides information about an API request or response.
125type PayloadTooLargeException struct {
126	Message *string
127
128	RequestID *string
129}
130
131func (e *PayloadTooLargeException) Error() string {
132	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
133}
134func (e *PayloadTooLargeException) ErrorMessage() string {
135	if e.Message == nil {
136		return ""
137	}
138	return *e.Message
139}
140func (e *PayloadTooLargeException) ErrorCode() string             { return "PayloadTooLargeException" }
141func (e *PayloadTooLargeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
142
143// Provides information about an API request or response.
144type TooManyRequestsException struct {
145	Message *string
146
147	RequestID *string
148}
149
150func (e *TooManyRequestsException) Error() string {
151	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
152}
153func (e *TooManyRequestsException) ErrorMessage() string {
154	if e.Message == nil {
155		return ""
156	}
157	return *e.Message
158}
159func (e *TooManyRequestsException) ErrorCode() string             { return "TooManyRequestsException" }
160func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
161