Example usage for com.amazonaws.services.codedeploy.model EC2TagFilterType KEY_AND_VALUE

List of usage examples for com.amazonaws.services.codedeploy.model EC2TagFilterType KEY_AND_VALUE

Introduction

In this page you can find the example usage for com.amazonaws.services.codedeploy.model EC2TagFilterType KEY_AND_VALUE.

Prototype

EC2TagFilterType KEY_AND_VALUE

To view the source code for com.amazonaws.services.codedeploy.model EC2TagFilterType KEY_AND_VALUE.

Click Source Link

Usage

From source file:jetbrains.buildServer.runner.codedeploy.AWSClient.java

License:Apache License

@NotNull
private Collection<EC2TagFilter> getTagFilters(@NotNull Map<String, String> ec2Tags) {
    return CollectionsUtil.convertCollection(ec2Tags.entrySet(),
            new Converter<EC2TagFilter, Map.Entry<String, String>>() {
                @Override//from   w  w w .j a v a 2 s.c o m
                public EC2TagFilter createFrom(@NotNull Map.Entry<String, String> e) {
                    return new EC2TagFilter().withKey(e.getKey()).withValue(e.getValue())
                            .withType(EC2TagFilterType.KEY_AND_VALUE);
                }
            });
}