Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
ctasada committed Mar 13, 2024
1 parent 9317ab3 commit 843a203
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
@Target(value = {ElementType.METHOD, ElementType.ANNOTATION_TYPE})
@AsyncOperationBinding
// FIXME
@io.github.springwolf.bindings.sns.annotations.SnsAsyncOperationBinding(protocol = "", endpoint = @io.github.springwolf.bindings.sns.annotations.SnsAsyncOperationBindingIdentifier())
@io.github.springwolf.bindings.sns.annotations.SnsAsyncOperationBinding(
protocol = "",
endpoint = @io.github.springwolf.bindings.sns.annotations.SnsAsyncOperationBindingIdentifier())
@Inherited
public @interface SnsAsyncOperationBinding {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,29 +23,39 @@
/**
* Optional. The endpoint is a URL
*/
@AliasFor(annotation = io.github.springwolf.bindings.sns.annotations.SnsAsyncOperationBindingIdentifier.class, attribute = "url")
@AliasFor(
annotation = io.github.springwolf.bindings.sns.annotations.SnsAsyncOperationBindingIdentifier.class,
attribute = "url")
String url() default "";
/**
* Optional. The endpoint is an email address
*/
@AliasFor(annotation = io.github.springwolf.bindings.sns.annotations.SnsAsyncOperationBindingIdentifier.class, attribute = "email")
@AliasFor(
annotation = io.github.springwolf.bindings.sns.annotations.SnsAsyncOperationBindingIdentifier.class,
attribute = "email")
String email() default "";
/**
* Optional. The endpoint is a phone number
*/
@AliasFor(annotation = io.github.springwolf.bindings.sns.annotations.SnsAsyncOperationBindingIdentifier.class, attribute = "phone")
@AliasFor(
annotation = io.github.springwolf.bindings.sns.annotations.SnsAsyncOperationBindingIdentifier.class,
attribute = "phone")
String phone() default "";
/**
* Optional. The target is an ARN. For example, for SQS, the identifier may be an ARN, which will be of the form:
* "arn:aws:sqs:{region}:{account-id}:{queueName}"
*/
@AliasFor(annotation = io.github.springwolf.bindings.sns.annotations.SnsAsyncOperationBindingIdentifier.class, attribute = "arn")
@AliasFor(
annotation = io.github.springwolf.bindings.sns.annotations.SnsAsyncOperationBindingIdentifier.class,
attribute = "arn")
String arn() default "";
/**
* Optional. The endpoint is identified by a name, which corresponds to an identifying field called 'name' of a
* binding for that protocol on this publish Operation Object. For example, if the protocol is 'sqs' then the name
* refers to the name field sqs binding. We don't use $ref because we are referring, not including.
*/
@AliasFor(annotation = io.github.springwolf.bindings.sns.annotations.SnsAsyncOperationBindingIdentifier.class, attribute = "name")
@AliasFor(
annotation = io.github.springwolf.bindings.sns.annotations.SnsAsyncOperationBindingIdentifier.class,
attribute = "name")
String name() default "";
}

0 comments on commit 843a203

Please sign in to comment.