Passed
Push — master ( 0cc65a...2c9229 )
by eval
02:27 queued 43s
created

athena.EncryptionOption.IsSSEKMS   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 athena
2
3
import (
4
	SDK "github.com/aws/aws-sdk-go-v2/service/athena"
5
)
6
7
type ColumnNullable string
0 ignored issues
show
introduced by
exported type ColumnNullable should have comment or be unexported
Loading history...
8
9
const (
10
	ColumnNullableNotNull  ColumnNullable = ColumnNullable(SDK.ColumnNullableNotNull)
0 ignored issues
show
introduced by
exported const ColumnNullableNotNull should have comment (or a comment on this block) or be unexported
Loading history...
11
	ColumnNullableNullable ColumnNullable = ColumnNullable(SDK.ColumnNullableNullable)
12
	ColumnNullableUnknown  ColumnNullable = ColumnNullable(SDK.ColumnNullableUnknown)
13
)
14
15
func (v ColumnNullable) IsNotNull() bool {
0 ignored issues
show
introduced by
exported method ColumnNullable.IsNotNull should have comment or be unexported
Loading history...
16
	return v == ColumnNullableNotNull
17
}
18
func (v ColumnNullable) IsNullable() bool {
0 ignored issues
show
introduced by
exported method ColumnNullable.IsNullable should have comment or be unexported
Loading history...
19
	return v == ColumnNullableNullable
20
}
21
func (v ColumnNullable) IsUnknown() bool {
0 ignored issues
show
introduced by
exported method ColumnNullable.IsUnknown should have comment or be unexported
Loading history...
22
	return v == ColumnNullableUnknown
23
}
24
25
type EncryptionOption string
0 ignored issues
show
introduced by
exported type EncryptionOption should have comment or be unexported
Loading history...
26
27
const (
28
	EncryptionOptionSSES3  EncryptionOption = EncryptionOption(SDK.EncryptionOptionSseS3)
0 ignored issues
show
introduced by
exported const EncryptionOptionSSES3 should have comment (or a comment on this block) or be unexported
Loading history...
29
	EncryptionOptionSSEKMS EncryptionOption = EncryptionOption(SDK.EncryptionOptionSseKms)
30
	EncryptionOptionCSEKMS EncryptionOption = EncryptionOption(SDK.EncryptionOptionCseKms)
31
)
32
33
func (v EncryptionOption) IsSSES3() bool {
0 ignored issues
show
introduced by
exported method EncryptionOption.IsSSES3 should have comment or be unexported
Loading history...
34
	return v == EncryptionOptionSSES3
35
}
36
func (v EncryptionOption) IsSSEKMS() bool {
0 ignored issues
show
introduced by
exported method EncryptionOption.IsSSEKMS should have comment or be unexported
Loading history...
37
	return v == EncryptionOptionSSEKMS
38
}
39
func (v EncryptionOption) IsCSEKMS() bool {
0 ignored issues
show
introduced by
exported method EncryptionOption.IsCSEKMS should have comment or be unexported
Loading history...
40
	return v == EncryptionOptionCSEKMS
41
}
42
43
type StatementType string
0 ignored issues
show
introduced by
exported type StatementType should have comment or be unexported
Loading history...
44
45
const (
46
	StatementTypeDDL     StatementType = StatementType(SDK.StatementTypeDdl)
0 ignored issues
show
introduced by
exported const StatementTypeDDL should have comment (or a comment on this block) or be unexported
Loading history...
47
	StatementTypeDML     StatementType = StatementType(SDK.StatementTypeDml)
48
	StatementTypeUtility StatementType = StatementType(SDK.StatementTypeUtility)
49
)
50
51
func (v StatementType) IsDDL() bool {
0 ignored issues
show
introduced by
exported method StatementType.IsDDL should have comment or be unexported
Loading history...
52
	return v == StatementTypeDDL
53
}
54
func (v StatementType) IsDML() bool {
0 ignored issues
show
introduced by
exported method StatementType.IsDML should have comment or be unexported
Loading history...
55
	return v == StatementTypeDML
56
}
57
func (v StatementType) IsUtility() bool {
0 ignored issues
show
introduced by
exported method StatementType.IsUtility should have comment or be unexported
Loading history...
58
	return v == StatementTypeUtility
59
}
60
61
type QueryExecutionState string
0 ignored issues
show
introduced by
exported type QueryExecutionState should have comment or be unexported
Loading history...
62
63
const (
64
	QueryExecutionStateQueued    QueryExecutionState = QueryExecutionState(SDK.QueryExecutionStateQueued)
0 ignored issues
show
introduced by
exported const QueryExecutionStateQueued should have comment (or a comment on this block) or be unexported
Loading history...
65
	QueryExecutionStateRunning   QueryExecutionState = QueryExecutionState(SDK.QueryExecutionStateRunning)
66
	QueryExecutionStateSucceeded QueryExecutionState = QueryExecutionState(SDK.QueryExecutionStateSucceeded)
67
	QueryExecutionStateFailed    QueryExecutionState = QueryExecutionState(SDK.QueryExecutionStateFailed)
68
	QueryExecutionStateCancelled QueryExecutionState = QueryExecutionState(SDK.QueryExecutionStateCancelled)
69
)
70
71
func (v QueryExecutionState) IsQueued() bool {
0 ignored issues
show
introduced by
exported method QueryExecutionState.IsQueued should have comment or be unexported
Loading history...
72
	return v == QueryExecutionStateQueued
73
}
74
func (v QueryExecutionState) IsRunning() bool {
0 ignored issues
show
introduced by
exported method QueryExecutionState.IsRunning should have comment or be unexported
Loading history...
75
	return v == QueryExecutionStateRunning
76
}
77
func (v QueryExecutionState) IsSucceeded() bool {
0 ignored issues
show
introduced by
exported method QueryExecutionState.IsSucceeded should have comment or be unexported
Loading history...
78
	return v == QueryExecutionStateSucceeded
79
}
80
func (v QueryExecutionState) IsFailed() bool {
0 ignored issues
show
introduced by
exported method QueryExecutionState.IsFailed should have comment or be unexported
Loading history...
81
	return v == QueryExecutionStateFailed
82
}
83
func (v QueryExecutionState) IsCancelled() bool {
0 ignored issues
show
introduced by
exported method QueryExecutionState.IsCancelled should have comment or be unexported
Loading history...
84
	return v == QueryExecutionStateCancelled
85
}
86