List of usage examples for com.amazonaws.services.ecs.model Attribute getName
public String getName()
The name of the attribute.
From source file:com.netflix.spinnaker.clouddriver.ecs.provider.agent.ContainerInstanceCachingAgent.java
License:Apache License
public static Map<String, Object> convertContainerInstanceToAttributes(ContainerInstance containerInstance) { Map<String, Object> attributes = new HashMap<>(); attributes.put("containerInstanceArn", containerInstance.getContainerInstanceArn()); attributes.put("ec2InstanceId", containerInstance.getEc2InstanceId()); for (Attribute containerAttribute : containerInstance.getAttributes()) { if (containerAttribute.getName().equals("ecs.availability-zone")) { attributes.put("availabilityZone", containerAttribute.getValue()); }// w w w . j a v a2 s . c om } return attributes; }