36
36
import software .amazon .smithy .utils .SmithyInternalApi ;
37
37
38
38
/**
39
- * Adds SQS customization
39
+ * Adds SQS customization.
40
40
*/
41
41
@ SmithyInternalApi
42
42
public class AddSqsDependency implements TypeScriptIntegration {
@@ -47,17 +47,17 @@ public List<RuntimeClientPlugin> getClientPlugins() {
47
47
RuntimeClientPlugin .builder ()
48
48
.withConventions (AwsDependency .SQS_MIDDLEWARE .dependency , "SendMessage" ,
49
49
HAS_MIDDLEWARE )
50
- .operationPredicate ((m , s , o ) -> o .getId ().getName (s ).equals ("SendMessage" ) && isSQS (s ))
50
+ .operationPredicate ((m , s , o ) -> o .getId ().getName (s ).equals ("SendMessage" ) && isSqs (s ))
51
51
.build (),
52
52
RuntimeClientPlugin .builder ()
53
53
.withConventions (AwsDependency .SQS_MIDDLEWARE .dependency , "SendMessageBatch" ,
54
54
HAS_MIDDLEWARE )
55
- .operationPredicate ((m , s , o ) -> o .getId ().getName (s ).equals ("SendMessageBatch" ) && isSQS (s ))
55
+ .operationPredicate ((m , s , o ) -> o .getId ().getName (s ).equals ("SendMessageBatch" ) && isSqs (s ))
56
56
.build (),
57
57
RuntimeClientPlugin .builder ()
58
58
.withConventions (AwsDependency .SQS_MIDDLEWARE .dependency , "ReceiveMessage" ,
59
59
HAS_MIDDLEWARE )
60
- .operationPredicate ((m , s , o ) -> o .getId ().getName (s ).equals ("ReceiveMessage" ) && isSQS (s ))
60
+ .operationPredicate ((m , s , o ) -> o .getId ().getName (s ).equals ("ReceiveMessage" ) && isSqs (s ))
61
61
.build ()
62
62
);
63
63
}
@@ -69,7 +69,7 @@ public void addConfigInterfaceFields(
69
69
SymbolProvider symbolProvider ,
70
70
TypeScriptWriter writer
71
71
) {
72
- if (!isSQS (settings .getService (model ))) {
72
+ if (!isSqs (settings .getService (model ))) {
73
73
return ;
74
74
}
75
75
@@ -87,7 +87,7 @@ public Map<String, Consumer<TypeScriptWriter>> getRuntimeConfigWriters(
87
87
SymbolProvider symbolProvider ,
88
88
LanguageTarget target
89
89
) {
90
- if (!isSQS (settings .getService (model ))) {
90
+ if (!isSqs (settings .getService (model ))) {
91
91
return Collections .emptyMap ();
92
92
}
93
93
@@ -110,7 +110,7 @@ public Map<String, Consumer<TypeScriptWriter>> getRuntimeConfigWriters(
110
110
}
111
111
}
112
112
113
- private static boolean isSQS (ServiceShape service ) {
113
+ private static boolean isSqs (ServiceShape service ) {
114
114
return service .getTrait (ServiceTrait .class ).map (ServiceTrait ::getSdkId ).orElse ("" ).equals ("SQS" );
115
115
}
116
- }
116
+ }
0 commit comments