Passed
Push — master ( 067f16...6918f7 )
by eval
01:50
created

s3.ObjectStorageClass.IsStandard   A

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nop 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
package s3
2
3
import (
4
	SDK "github.com/aws/aws-sdk-go-v2/service/s3"
5
)
6
7
type BucketCannedACL string
0 ignored issues
show
introduced by
exported type BucketCannedACL should have comment or be unexported
Loading history...
8
9
const (
10
	BucketCannedACLPrivate           BucketCannedACL = BucketCannedACL(SDK.BucketCannedACLPrivate)
0 ignored issues
show
introduced by
exported const BucketCannedACLPrivate should have comment (or a comment on this block) or be unexported
Loading history...
11
	BucketCannedACLPublicRead        BucketCannedACL = BucketCannedACL(SDK.BucketCannedACLPublicRead)
12
	BucketCannedACLPublicReadWrite   BucketCannedACL = BucketCannedACL(SDK.BucketCannedACLPublicReadWrite)
13
	BucketCannedACLAuthenticatedRead BucketCannedACL = BucketCannedACL(SDK.BucketCannedACLAuthenticatedRead)
14
)
15
16
func (v BucketCannedACL) IsPrivate() bool {
0 ignored issues
show
introduced by
exported method BucketCannedACL.IsPrivate should have comment or be unexported
Loading history...
17
	return v == BucketCannedACLPrivate
18
}
19
func (v BucketCannedACL) IsPublicRead() bool {
0 ignored issues
show
introduced by
exported method BucketCannedACL.IsPublicRead should have comment or be unexported
Loading history...
20
	return v == BucketCannedACLPublicRead
21
}
22
func (v BucketCannedACL) IsPublicReadWrite() bool {
0 ignored issues
show
introduced by
exported method BucketCannedACL.IsPublicReadWrite should have comment or be unexported
Loading history...
23
	return v == BucketCannedACLPublicReadWrite
24
}
25
func (v BucketCannedACL) IsAuthenticatedRead() bool {
0 ignored issues
show
introduced by
exported method BucketCannedACL.IsAuthenticatedRead should have comment or be unexported
Loading history...
26
	return v == BucketCannedACLAuthenticatedRead
27
}
28
29
type BucketLocationConstraint string
0 ignored issues
show
introduced by
exported type BucketLocationConstraint should have comment or be unexported
Loading history...
30
31
const (
32
	BucketLocationConstraintEu           BucketLocationConstraint = BucketLocationConstraint(SDK.BucketLocationConstraintEu)
0 ignored issues
show
introduced by
exported const BucketLocationConstraintEu should have comment (or a comment on this block) or be unexported
Loading history...
33
	BucketLocationConstraintEuWest1      BucketLocationConstraint = BucketLocationConstraint(SDK.BucketLocationConstraintEuWest1)
34
	BucketLocationConstraintUsWest1      BucketLocationConstraint = BucketLocationConstraint(SDK.BucketLocationConstraintUsWest1)
35
	BucketLocationConstraintUsWest2      BucketLocationConstraint = BucketLocationConstraint(SDK.BucketLocationConstraintUsWest2)
36
	BucketLocationConstraintApSouth1     BucketLocationConstraint = BucketLocationConstraint(SDK.BucketLocationConstraintApSouth1)
37
	BucketLocationConstraintApSoutheast1 BucketLocationConstraint = BucketLocationConstraint(SDK.BucketLocationConstraintApSoutheast1)
38
	BucketLocationConstraintApSoutheast2 BucketLocationConstraint = BucketLocationConstraint(SDK.BucketLocationConstraintApSoutheast2)
39
	BucketLocationConstraintApNortheast1 BucketLocationConstraint = BucketLocationConstraint(SDK.BucketLocationConstraintApNortheast1)
40
	BucketLocationConstraintSaEast1      BucketLocationConstraint = BucketLocationConstraint(SDK.BucketLocationConstraintSaEast1)
41
	BucketLocationConstraintCnNorth1     BucketLocationConstraint = BucketLocationConstraint(SDK.BucketLocationConstraintCnNorth1)
42
	BucketLocationConstraintEuCentral1   BucketLocationConstraint = BucketLocationConstraint(SDK.BucketLocationConstraintEuCentral1)
43
)
44
45
func (v BucketLocationConstraint) IsEu() bool {
0 ignored issues
show
introduced by
exported method BucketLocationConstraint.IsEu should have comment or be unexported
Loading history...
46
	return v == BucketLocationConstraintEu
47
}
48
func (v BucketLocationConstraint) IsEuWest1() bool {
0 ignored issues
show
introduced by
exported method BucketLocationConstraint.IsEuWest1 should have comment or be unexported
Loading history...
49
	return v == BucketLocationConstraintEuWest1
50
}
51
func (v BucketLocationConstraint) IsUsWest1() bool {
0 ignored issues
show
introduced by
exported method BucketLocationConstraint.IsUsWest1 should have comment or be unexported
Loading history...
52
	return v == BucketLocationConstraintUsWest1
53
}
54
func (v BucketLocationConstraint) IsUsWest2() bool {
0 ignored issues
show
introduced by
exported method BucketLocationConstraint.IsUsWest2 should have comment or be unexported
Loading history...
55
	return v == BucketLocationConstraintUsWest2
56
}
57
func (v BucketLocationConstraint) IsApSouth1() bool {
0 ignored issues
show
introduced by
exported method BucketLocationConstraint.IsApSouth1 should have comment or be unexported
Loading history...
58
	return v == BucketLocationConstraintApSouth1
59
}
60
func (v BucketLocationConstraint) IsApSoutheast1() bool {
0 ignored issues
show
introduced by
exported method BucketLocationConstraint.IsApSoutheast1 should have comment or be unexported
Loading history...
61
	return v == BucketLocationConstraintApSoutheast1
62
}
63
func (v BucketLocationConstraint) IsApSoutheast2() bool {
0 ignored issues
show
introduced by
exported method BucketLocationConstraint.IsApSoutheast2 should have comment or be unexported
Loading history...
64
	return v == BucketLocationConstraintApSoutheast2
65
}
66
func (v BucketLocationConstraint) IsApNortheast1() bool {
0 ignored issues
show
introduced by
exported method BucketLocationConstraint.IsApNortheast1 should have comment or be unexported
Loading history...
67
	return v == BucketLocationConstraintApNortheast1
68
}
69
func (v BucketLocationConstraint) IsSaEast1() bool {
0 ignored issues
show
introduced by
exported method BucketLocationConstraint.IsSaEast1 should have comment or be unexported
Loading history...
70
	return v == BucketLocationConstraintSaEast1
71
}
72
func (v BucketLocationConstraint) IsCnNorth1() bool {
0 ignored issues
show
introduced by
exported method BucketLocationConstraint.IsCnNorth1 should have comment or be unexported
Loading history...
73
	return v == BucketLocationConstraintCnNorth1
74
}
75
func (v BucketLocationConstraint) IsEuCentral1() bool {
0 ignored issues
show
introduced by
exported method BucketLocationConstraint.IsEuCentral1 should have comment or be unexported
Loading history...
76
	return v == BucketLocationConstraintEuCentral1
77
}
78
79
type EncodingType string
0 ignored issues
show
introduced by
exported type EncodingType should have comment or be unexported
Loading history...
80
81
const (
82
	EncodingTypeURL EncodingType = EncodingType(SDK.EncodingTypeUrl)
0 ignored issues
show
introduced by
exported const EncodingTypeURL should have comment (or a comment on this block) or be unexported
Loading history...
83
)
84
85
func (v EncodingType) IsURL() bool {
0 ignored issues
show
introduced by
exported method EncodingType.IsURL should have comment or be unexported
Loading history...
86
	return v == EncodingTypeURL
87
}
88
89
type ExpirationStatus string
0 ignored issues
show
introduced by
exported type ExpirationStatus should have comment or be unexported
Loading history...
90
91
const (
92
	ExpirationStatusEnabled  ExpirationStatus = ExpirationStatus(SDK.ExpirationStatusEnabled)
0 ignored issues
show
introduced by
exported const ExpirationStatusEnabled should have comment (or a comment on this block) or be unexported
Loading history...
93
	ExpirationStatusDisabled ExpirationStatus = ExpirationStatus(SDK.ExpirationStatusDisabled)
94
)
95
96
func (v ExpirationStatus) IsEnabled() bool {
0 ignored issues
show
introduced by
exported method ExpirationStatus.IsEnabled should have comment or be unexported
Loading history...
97
	return v == ExpirationStatusEnabled
98
}
99
func (v ExpirationStatus) IsDisabled() bool {
0 ignored issues
show
introduced by
exported method ExpirationStatus.IsDisabled should have comment or be unexported
Loading history...
100
	return v == ExpirationStatusDisabled
101
}
102
103
type MetadataDirective string
0 ignored issues
show
introduced by
exported type MetadataDirective should have comment or be unexported
Loading history...
104
105
const (
106
	MetadataDirectiveCopy    MetadataDirective = MetadataDirective(SDK.MetadataDirectiveCopy)
0 ignored issues
show
introduced by
exported const MetadataDirectiveCopy should have comment (or a comment on this block) or be unexported
Loading history...
107
	MetadataDirectiveReplace MetadataDirective = MetadataDirective(SDK.MetadataDirectiveReplace)
108
)
109
110
func (v MetadataDirective) IsCopy() bool {
0 ignored issues
show
introduced by
exported method MetadataDirective.IsCopy should have comment or be unexported
Loading history...
111
	return v == MetadataDirectiveCopy
112
}
113
func (v MetadataDirective) IsReplace() bool {
0 ignored issues
show
introduced by
exported method MetadataDirective.IsReplace should have comment or be unexported
Loading history...
114
	return v == MetadataDirectiveReplace
115
}
116
117
type ObjectCannedACL string
0 ignored issues
show
introduced by
exported type ObjectCannedACL should have comment or be unexported
Loading history...
118
119
const (
120
	ObjectCannedACLPrivate                ObjectCannedACL = ObjectCannedACL(SDK.ObjectCannedACLPrivate)
0 ignored issues
show
introduced by
exported const ObjectCannedACLPrivate should have comment (or a comment on this block) or be unexported
Loading history...
121
	ObjectCannedACLPublicRead             ObjectCannedACL = ObjectCannedACL(SDK.ObjectCannedACLPublicRead)
122
	ObjectCannedACLPublicReadWrite        ObjectCannedACL = ObjectCannedACL(SDK.ObjectCannedACLPublicReadWrite)
123
	ObjectCannedACLAuthenticatedRead      ObjectCannedACL = ObjectCannedACL(SDK.ObjectCannedACLAuthenticatedRead)
124
	ObjectCannedACLAwsExecRead            ObjectCannedACL = ObjectCannedACL(SDK.ObjectCannedACLAwsExecRead)
125
	ObjectCannedACLBucketOwnerRead        ObjectCannedACL = ObjectCannedACL(SDK.ObjectCannedACLBucketOwnerRead)
126
	ObjectCannedACLBucketOwnerFullControl ObjectCannedACL = ObjectCannedACL(SDK.ObjectCannedACLBucketOwnerFullControl)
127
)
128
129
func (v ObjectCannedACL) IsPrivate() bool {
0 ignored issues
show
introduced by
exported method ObjectCannedACL.IsPrivate should have comment or be unexported
Loading history...
130
	return v == ObjectCannedACLPrivate
131
}
132
func (v ObjectCannedACL) IsPublicRead() bool {
0 ignored issues
show
introduced by
exported method ObjectCannedACL.IsPublicRead should have comment or be unexported
Loading history...
133
	return v == ObjectCannedACLPublicRead
134
}
135
func (v ObjectCannedACL) IsPublicReadWrite() bool {
0 ignored issues
show
introduced by
exported method ObjectCannedACL.IsPublicReadWrite should have comment or be unexported
Loading history...
136
	return v == ObjectCannedACLPublicReadWrite
137
}
138
func (v ObjectCannedACL) IsAuthenticatedRead() bool {
0 ignored issues
show
introduced by
exported method ObjectCannedACL.IsAuthenticatedRead should have comment or be unexported
Loading history...
139
	return v == ObjectCannedACLAuthenticatedRead
140
}
141
func (v ObjectCannedACL) IsAwsExecRead() bool {
0 ignored issues
show
introduced by
exported method ObjectCannedACL.IsAwsExecRead should have comment or be unexported
Loading history...
142
	return v == ObjectCannedACLAwsExecRead
143
}
144
func (v ObjectCannedACL) IsBucketOwnerRead() bool {
0 ignored issues
show
introduced by
exported method ObjectCannedACL.IsBucketOwnerRead should have comment or be unexported
Loading history...
145
	return v == ObjectCannedACLBucketOwnerRead
146
}
147
func (v ObjectCannedACL) IsBucketOwnerFullControl() bool {
0 ignored issues
show
introduced by
exported method ObjectCannedACL.IsBucketOwnerFullControl should have comment or be unexported
Loading history...
148
	return v == ObjectCannedACLBucketOwnerFullControl
149
}
150
151
type ObjectLockLegalHoldStatus string
0 ignored issues
show
introduced by
exported type ObjectLockLegalHoldStatus should have comment or be unexported
Loading history...
152
153
const (
154
	ObjectLockLegalHoldStatusOn  ObjectLockLegalHoldStatus = ObjectLockLegalHoldStatus(SDK.ObjectLockLegalHoldStatusOn)
0 ignored issues
show
introduced by
exported const ObjectLockLegalHoldStatusOn should have comment (or a comment on this block) or be unexported
Loading history...
155
	ObjectLockLegalHoldStatusOff ObjectLockLegalHoldStatus = ObjectLockLegalHoldStatus(SDK.ObjectLockLegalHoldStatusOff)
156
)
157
158
func (v ObjectLockLegalHoldStatus) IsOn() bool {
0 ignored issues
show
introduced by
exported method ObjectLockLegalHoldStatus.IsOn should have comment or be unexported
Loading history...
159
	return v == ObjectLockLegalHoldStatusOn
160
}
161
func (v ObjectLockLegalHoldStatus) IsOff() bool {
0 ignored issues
show
introduced by
exported method ObjectLockLegalHoldStatus.IsOff should have comment or be unexported
Loading history...
162
	return v == ObjectLockLegalHoldStatusOff
163
}
164
165
type ObjectLockMode string
0 ignored issues
show
introduced by
exported type ObjectLockMode should have comment or be unexported
Loading history...
166
167
const (
168
	ObjectLockModeGovernance ObjectLockMode = ObjectLockMode(SDK.ObjectLockModeGovernance)
0 ignored issues
show
introduced by
exported const ObjectLockModeGovernance should have comment (or a comment on this block) or be unexported
Loading history...
169
	ObjectLockModeCompliance ObjectLockMode = ObjectLockMode(SDK.ObjectLockModeCompliance)
170
)
171
172
func (v ObjectLockMode) IsGovernance() bool {
0 ignored issues
show
introduced by
exported method ObjectLockMode.IsGovernance should have comment or be unexported
Loading history...
173
	return v == ObjectLockModeGovernance
174
}
175
func (v ObjectLockMode) IsCompliance() bool {
0 ignored issues
show
introduced by
exported method ObjectLockMode.IsCompliance should have comment or be unexported
Loading history...
176
	return v == ObjectLockModeCompliance
177
}
178
179
type ObjectLockRetentionMode string
0 ignored issues
show
introduced by
exported type ObjectLockRetentionMode should have comment or be unexported
Loading history...
180
181
const (
182
	ObjectLockRetentionModeGovernance ObjectLockRetentionMode = ObjectLockRetentionMode(SDK.ObjectLockRetentionModeGovernance)
0 ignored issues
show
introduced by
exported const ObjectLockRetentionModeGovernance should have comment (or a comment on this block) or be unexported
Loading history...
183
	ObjectLockRetentionModeCompliance ObjectLockRetentionMode = ObjectLockRetentionMode(SDK.ObjectLockRetentionModeCompliance)
184
)
185
186
func (v ObjectLockRetentionMode) IsGovernance() bool {
0 ignored issues
show
introduced by
exported method ObjectLockRetentionMode.IsGovernance should have comment or be unexported
Loading history...
187
	return v == ObjectLockRetentionModeGovernance
188
}
189
func (v ObjectLockRetentionMode) IsCompliance() bool {
0 ignored issues
show
introduced by
exported method ObjectLockRetentionMode.IsCompliance should have comment or be unexported
Loading history...
190
	return v == ObjectLockRetentionModeCompliance
191
}
192
193
type ObjectStorageClass string
0 ignored issues
show
introduced by
exported type ObjectStorageClass should have comment or be unexported
Loading history...
194
195
const (
196
	ObjectStorageClassStandard           ObjectStorageClass = ObjectStorageClass(SDK.ObjectStorageClassStandard)
0 ignored issues
show
introduced by
exported const ObjectStorageClassStandard should have comment (or a comment on this block) or be unexported
Loading history...
197
	ObjectStorageClassReducedRedundancy  ObjectStorageClass = ObjectStorageClass(SDK.ObjectStorageClassReducedRedundancy)
198
	ObjectStorageClassGlacier            ObjectStorageClass = ObjectStorageClass(SDK.ObjectStorageClassGlacier)
199
	ObjectStorageClassStandardIa         ObjectStorageClass = ObjectStorageClass(SDK.ObjectStorageClassStandardIa)
200
	ObjectStorageClassOnezoneIa          ObjectStorageClass = ObjectStorageClass(SDK.ObjectStorageClassOnezoneIa)
201
	ObjectStorageClassIntelligentTiering ObjectStorageClass = ObjectStorageClass(SDK.ObjectStorageClassIntelligentTiering)
202
	ObjectStorageClassDeepArchive        ObjectStorageClass = ObjectStorageClass(SDK.ObjectStorageClassDeepArchive)
203
)
204
205
func (v ObjectStorageClass) IsStandard() bool {
0 ignored issues
show
introduced by
exported method ObjectStorageClass.IsStandard should have comment or be unexported
Loading history...
206
	return v == ObjectStorageClassStandard
207
}
208
func (v ObjectStorageClass) IsReducedRedundancy() bool {
0 ignored issues
show
introduced by
exported method ObjectStorageClass.IsReducedRedundancy should have comment or be unexported
Loading history...
209
	return v == ObjectStorageClassReducedRedundancy
210
}
211
func (v ObjectStorageClass) IsGlacier() bool {
0 ignored issues
show
introduced by
exported method ObjectStorageClass.IsGlacier should have comment or be unexported
Loading history...
212
	return v == ObjectStorageClassGlacier
213
}
214
func (v ObjectStorageClass) IsStandardIa() bool {
0 ignored issues
show
introduced by
exported method ObjectStorageClass.IsStandardIa should have comment or be unexported
Loading history...
215
	return v == ObjectStorageClassStandardIa
216
}
217
func (v ObjectStorageClass) IsOnezoneIa() bool {
0 ignored issues
show
introduced by
exported method ObjectStorageClass.IsOnezoneIa should have comment or be unexported
Loading history...
218
	return v == ObjectStorageClassOnezoneIa
219
}
220
func (v ObjectStorageClass) IsIntelligentTiering() bool {
0 ignored issues
show
introduced by
exported method ObjectStorageClass.IsIntelligentTiering should have comment or be unexported
Loading history...
221
	return v == ObjectStorageClassIntelligentTiering
222
}
223
func (v ObjectStorageClass) IsDeepArchive() bool {
0 ignored issues
show
introduced by
exported method ObjectStorageClass.IsDeepArchive should have comment or be unexported
Loading history...
224
	return v == ObjectStorageClassDeepArchive
225
}
226
227
type ObjectVersionStorageClass string
0 ignored issues
show
introduced by
exported type ObjectVersionStorageClass should have comment or be unexported
Loading history...
228
229
const (
230
	ObjectVersionStorageClassStandard ObjectVersionStorageClass = ObjectVersionStorageClass(SDK.ObjectVersionStorageClassStandard)
0 ignored issues
show
introduced by
exported const ObjectVersionStorageClassStandard should have comment (or a comment on this block) or be unexported
Loading history...
231
)
232
233
func (v ObjectVersionStorageClass) IsStandard() bool {
0 ignored issues
show
introduced by
exported method ObjectVersionStorageClass.IsStandard should have comment or be unexported
Loading history...
234
	return v == ObjectVersionStorageClassStandard
235
}
236
237
type Permission string
0 ignored issues
show
introduced by
exported type Permission should have comment or be unexported
Loading history...
238
239
const (
240
	PermissionFullControl Permission = Permission(SDK.PermissionFullControl)
0 ignored issues
show
introduced by
exported const PermissionFullControl should have comment (or a comment on this block) or be unexported
Loading history...
241
	PermissionWrite       Permission = Permission(SDK.PermissionWrite)
242
	PermissionWriteAcp    Permission = Permission(SDK.PermissionWriteAcp)
243
	PermissionRead        Permission = Permission(SDK.PermissionRead)
244
	PermissionReadAcp     Permission = Permission(SDK.PermissionReadAcp)
245
)
246
247
type ReplicationStatus string
0 ignored issues
show
introduced by
exported type ReplicationStatus should have comment or be unexported
Loading history...
248
249
const (
250
	ReplicationStatusComplete ReplicationStatus = ReplicationStatus(SDK.ReplicationStatusComplete)
0 ignored issues
show
introduced by
exported const ReplicationStatusComplete should have comment (or a comment on this block) or be unexported
Loading history...
251
	ReplicationStatusPending  ReplicationStatus = ReplicationStatus(SDK.ReplicationStatusPending)
252
	ReplicationStatusFailed   ReplicationStatus = ReplicationStatus(SDK.ReplicationStatusFailed)
253
	ReplicationStatusReplica  ReplicationStatus = ReplicationStatus(SDK.ReplicationStatusReplica)
254
)
255
256
func (v ReplicationStatus) IsComplete() bool {
0 ignored issues
show
introduced by
exported method ReplicationStatus.IsComplete should have comment or be unexported
Loading history...
257
	return v == ReplicationStatusComplete
258
}
259
func (v ReplicationStatus) IsPending() bool {
0 ignored issues
show
introduced by
exported method ReplicationStatus.IsPending should have comment or be unexported
Loading history...
260
	return v == ReplicationStatusPending
261
}
262
func (v ReplicationStatus) IsFailed() bool {
0 ignored issues
show
introduced by
exported method ReplicationStatus.IsFailed should have comment or be unexported
Loading history...
263
	return v == ReplicationStatusFailed
264
}
265
func (v ReplicationStatus) IsReplica() bool {
0 ignored issues
show
introduced by
exported method ReplicationStatus.IsReplica should have comment or be unexported
Loading history...
266
	return v == ReplicationStatusReplica
267
}
268
269
type RequestCharged string
0 ignored issues
show
introduced by
exported type RequestCharged should have comment or be unexported
Loading history...
270
271
const (
272
	RequestChargedRequester RequestCharged = RequestCharged(SDK.RequestChargedRequester)
0 ignored issues
show
introduced by
exported const RequestChargedRequester should have comment (or a comment on this block) or be unexported
Loading history...
273
)
274
275
func (v RequestCharged) IsRequester() bool {
0 ignored issues
show
introduced by
exported method RequestCharged.IsRequester should have comment or be unexported
Loading history...
276
	return v == RequestChargedRequester
277
}
278
279
type RequestPayer string
0 ignored issues
show
introduced by
exported type RequestPayer should have comment or be unexported
Loading history...
280
281
const (
282
	RequestPayerRequester RequestPayer = "requester"
0 ignored issues
show
introduced by
exported const RequestPayerRequester should have comment (or a comment on this block) or be unexported
Loading history...
283
)
284
285
func (v RequestPayer) IsRequester() bool {
0 ignored issues
show
introduced by
exported method RequestPayer.IsRequester should have comment or be unexported
Loading history...
286
	return v == RequestPayerRequester
287
}
288
289
type ServerSideEncryption string
0 ignored issues
show
introduced by
exported type ServerSideEncryption should have comment or be unexported
Loading history...
290
291
const (
292
	ServerSideEncryptionAes256 ServerSideEncryption = "AES256"
0 ignored issues
show
introduced by
exported const ServerSideEncryptionAes256 should have comment (or a comment on this block) or be unexported
Loading history...
293
	ServerSideEncryptionAwsKms ServerSideEncryption = "aws:kms"
294
)
295
296
func (v ServerSideEncryption) IsAes256() bool {
0 ignored issues
show
introduced by
exported method ServerSideEncryption.IsAes256 should have comment or be unexported
Loading history...
297
	return v == ServerSideEncryptionAes256
298
}
299
func (v ServerSideEncryption) IsAwsKms() bool {
0 ignored issues
show
introduced by
exported method ServerSideEncryption.IsAwsKms should have comment or be unexported
Loading history...
300
	return v == ServerSideEncryptionAwsKms
301
}
302
303
type StorageClass string
0 ignored issues
show
introduced by
exported type StorageClass should have comment or be unexported
Loading history...
304
305
const (
306
	StorageClassStandard           StorageClass = StorageClass(SDK.StorageClassStandard)
0 ignored issues
show
introduced by
exported const StorageClassStandard should have comment (or a comment on this block) or be unexported
Loading history...
307
	StorageClassReducedRedundancy  StorageClass = StorageClass(SDK.StorageClassReducedRedundancy)
308
	StorageClassStandardIa         StorageClass = StorageClass(SDK.StorageClassStandardIa)
309
	StorageClassOnezoneIa          StorageClass = StorageClass(SDK.StorageClassOnezoneIa)
310
	StorageClassIntelligentTiering StorageClass = StorageClass(SDK.StorageClassIntelligentTiering)
311
	StorageClassGlacier            StorageClass = StorageClass(SDK.StorageClassGlacier)
312
	StorageClassDeepArchive        StorageClass = StorageClass(SDK.StorageClassDeepArchive)
313
)
314
315
func (v StorageClass) IsStandard() bool {
0 ignored issues
show
introduced by
exported method StorageClass.IsStandard should have comment or be unexported
Loading history...
316
	return v == StorageClassStandard
317
}
318
func (v StorageClass) IsReducedRedundancy() bool {
0 ignored issues
show
introduced by
exported method StorageClass.IsReducedRedundancy should have comment or be unexported
Loading history...
319
	return v == StorageClassReducedRedundancy
320
}
321
func (v StorageClass) IsStandardIa() bool {
0 ignored issues
show
introduced by
exported method StorageClass.IsStandardIa should have comment or be unexported
Loading history...
322
	return v == StorageClassStandardIa
323
}
324
func (v StorageClass) IsOnezoneIa() bool {
0 ignored issues
show
introduced by
exported method StorageClass.IsOnezoneIa should have comment or be unexported
Loading history...
325
	return v == StorageClassOnezoneIa
326
}
327
func (v StorageClass) IsIntelligentTiering() bool {
0 ignored issues
show
introduced by
exported method StorageClass.IsIntelligentTiering should have comment or be unexported
Loading history...
328
	return v == StorageClassIntelligentTiering
329
}
330
func (v StorageClass) IsGlacier() bool {
0 ignored issues
show
introduced by
exported method StorageClass.IsGlacier should have comment or be unexported
Loading history...
331
	return v == StorageClassGlacier
332
}
333
func (v StorageClass) IsDeepArchive() bool {
0 ignored issues
show
introduced by
exported method StorageClass.IsDeepArchive should have comment or be unexported
Loading history...
334
	return v == StorageClassDeepArchive
335
}
336
337
type TaggingDirective string
0 ignored issues
show
introduced by
exported type TaggingDirective should have comment or be unexported
Loading history...
338
339
const (
340
	TaggingDirectiveCopy    TaggingDirective = TaggingDirective(SDK.TaggingDirectiveCopy)
0 ignored issues
show
introduced by
exported const TaggingDirectiveCopy should have comment (or a comment on this block) or be unexported
Loading history...
341
	TaggingDirectiveReplace TaggingDirective = TaggingDirective(SDK.TaggingDirectiveReplace)
342
)
343
344
func (v TaggingDirective) IsCopy() bool {
0 ignored issues
show
introduced by
exported method TaggingDirective.IsCopy should have comment or be unexported
Loading history...
345
	return v == TaggingDirectiveCopy
346
}
347
func (v TaggingDirective) IsReplace() bool {
0 ignored issues
show
introduced by
exported method TaggingDirective.IsReplace should have comment or be unexported
Loading history...
348
	return v == TaggingDirectiveReplace
349
}
350
351
type TransitionStorageClass string
0 ignored issues
show
introduced by
exported type TransitionStorageClass should have comment or be unexported
Loading history...
352
353
const (
354
	TransitionStorageClassGlacier            TransitionStorageClass = TransitionStorageClass(SDK.TransitionStorageClassGlacier)
0 ignored issues
show
introduced by
exported const TransitionStorageClassGlacier should have comment (or a comment on this block) or be unexported
Loading history...
355
	TransitionStorageClassStandardIa         TransitionStorageClass = TransitionStorageClass(SDK.TransitionStorageClassStandardIa)
356
	TransitionStorageClassOnezoneIa          TransitionStorageClass = TransitionStorageClass(SDK.TransitionStorageClassOnezoneIa)
357
	TransitionStorageClassIntelligentTiering TransitionStorageClass = TransitionStorageClass(SDK.TransitionStorageClassIntelligentTiering)
358
	TransitionStorageClassDeepArchive        TransitionStorageClass = TransitionStorageClass(SDK.TransitionStorageClassDeepArchive)
359
)
360
361
func (v TransitionStorageClass) IsGlacier() bool {
0 ignored issues
show
introduced by
exported method TransitionStorageClass.IsGlacier should have comment or be unexported
Loading history...
362
	return v == TransitionStorageClassGlacier
363
}
364
func (v TransitionStorageClass) IsStandardIa() bool {
0 ignored issues
show
introduced by
exported method TransitionStorageClass.IsStandardIa should have comment or be unexported
Loading history...
365
	return v == TransitionStorageClassStandardIa
366
}
367
func (v TransitionStorageClass) IsOnezoneIa() bool {
0 ignored issues
show
introduced by
exported method TransitionStorageClass.IsOnezoneIa should have comment or be unexported
Loading history...
368
	return v == TransitionStorageClassOnezoneIa
369
}
370
func (v TransitionStorageClass) IsIntelligentTiering() bool {
0 ignored issues
show
introduced by
exported method TransitionStorageClass.IsIntelligentTiering should have comment or be unexported
Loading history...
371
	return v == TransitionStorageClassIntelligentTiering
372
}
373
func (v TransitionStorageClass) IsDeepArchive() bool {
0 ignored issues
show
introduced by
exported method TransitionStorageClass.IsDeepArchive should have comment or be unexported
Loading history...
374
	return v == TransitionStorageClassDeepArchive
375
}
376
377
type Type string
0 ignored issues
show
introduced by
exported type Type should have comment or be unexported
Loading history...
378
379
const (
380
	TypeCanonicalUser         Type = Type(SDK.TypeCanonicalUser)
0 ignored issues
show
introduced by
exported const TypeCanonicalUser should have comment (or a comment on this block) or be unexported
Loading history...
381
	TypeAmazonCustomerByEmail Type = Type(SDK.TypeAmazonCustomerByEmail)
382
	TypeGroup                 Type = Type(SDK.TypeGroup)
383
)
384
385
func (v Type) IsCanonicalUser() bool {
0 ignored issues
show
introduced by
exported method Type.IsCanonicalUser should have comment or be unexported
Loading history...
386
	return v == TypeCanonicalUser
387
}
388
func (v Type) IsAmazonCustomerByEmail() bool {
0 ignored issues
show
introduced by
exported method Type.IsAmazonCustomerByEmail should have comment or be unexported
Loading history...
389
	return v == TypeAmazonCustomerByEmail
390
}
391
func (v Type) IsGroup() bool {
0 ignored issues
show
introduced by
exported method Type.IsGroup should have comment or be unexported
Loading history...
392
	return v == TypeGroup
393
}
394