All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cfdsl.ec2.property.Region Maven / Gradle / Ivy

The newest version!
package cfdsl.ec2.property;

/**
 * EC2 regions.
 */
public final class Region {
    private final String name;
    private final EbsBackedHvm ebsBackedHvm;
    private final InstanceStoreBackedHvm instanceStoreBackedHvm;
    private final EbsBackedParavirtual ebsBackedParavirtual;
    private final InstanceStoreBackedParavirtual instanceStoreBackedParavirtual;

    private Region(
            String name,
            EbsBackedHvm ebsBackedHvm,
            InstanceStoreBackedHvm instanceStoreBackedHvm,
            EbsBackedParavirtual ebsBackedParavirtual,
            InstanceStoreBackedParavirtual instanceStoreBackedParavirtual) {
        this.name = name;
        this.ebsBackedHvm = ebsBackedHvm;
        this.instanceStoreBackedHvm = instanceStoreBackedHvm;
        this.ebsBackedParavirtual = ebsBackedParavirtual;
        this.instanceStoreBackedParavirtual = instanceStoreBackedParavirtual;
    }

    public EbsBackedHvm ebsBackedHvm() {
        return ebsBackedHvm;
    }

    public InstanceStoreBackedHvm instanceStoreBackedHvm() {
        return instanceStoreBackedHvm;
    }

    @Deprecated public EbsBackedParavirtual ebsBackedParavirtual() {
        return ebsBackedParavirtual;
    }

    @Deprecated public InstanceStoreBackedParavirtual instanceStoreBackedParavirtual() {
        return instanceStoreBackedParavirtual;
    }

    @Override
    public String toString() {
        return name;
    }

    public static final class AsiaPacific {
        public static final Region TOKYO = new Region("ap-northeast-1",
                new EbsBackedHvm("ami-4985b048"),
                new InstanceStoreBackedHvm("ami-8985b088"),
                new EbsBackedParavirtual("ami-2385b022"),
                new InstanceStoreBackedParavirtual("ami-3985b038"));
        public static final Region SINGAPORE = new Region("ap-southeast-1",
                new EbsBackedHvm("ami-ac5c7afe"),
                new InstanceStoreBackedHvm("ami-402d0b12"),
                new EbsBackedParavirtual("ami-ba5c7ae8"),
                new InstanceStoreBackedParavirtual("ami-702d0b22"));
        public static final Region SYDNEY = new Region("ap-southeast-2",
                new EbsBackedHvm("ami-63f79559"),
                new InstanceStoreBackedHvm("ami-9ff795a5"),
                new EbsBackedParavirtual("ami-71f7954b"),
                new InstanceStoreBackedParavirtual("ami-13f49629"));
    }

    public static final class EU {
        public static final Region FRANKFURT = new Region("eu-central-1",
                new EbsBackedHvm("ami-b43503a9"),
                new InstanceStoreBackedHvm("ami-9235038f"),
                new EbsBackedParavirtual("ami-a03503bd"),
                new InstanceStoreBackedParavirtual("ami-84350399"));
        public static final Region IRELAND = new Region("eu-west-1",
                new EbsBackedHvm("ami-6e7bd919"),
                new InstanceStoreBackedHvm("ami-1278da65"),
                new EbsBackedParavirtual("ami-9c7ad8eb"),
                new InstanceStoreBackedParavirtual("ami-267bd951"));
    }

    public static final class SouthAmerica {
        public static final Region SAO_PAOLO = new Region("sa-east-1",
                new EbsBackedHvm("ami-8737829a"),
                new InstanceStoreBackedHvm("ami-ef3782f2"),
                new EbsBackedParavirtual("ami-9137828c"),
                new InstanceStoreBackedParavirtual("ami-89378294"));
    }

    public static final class US {
        public static final Region VIRGINIA = new Region("us-east-1",
                new EbsBackedHvm("ami-b66ed3de"),
                new InstanceStoreBackedHvm("ami-0268d56a"),
                new EbsBackedParavirtual("ami-246ed34c"),
                new InstanceStoreBackedParavirtual("ami-9a6ed3f2"));
        public static final Region NORCAL = new Region("us-west-1",
                new EbsBackedHvm("ami-4b6f650e"),
                new InstanceStoreBackedHvm("ami-2f6f656a"),
                new EbsBackedParavirtual("ami-9b6e64de"),
                new InstanceStoreBackedParavirtual("ami-bf6e64fa"));
        public static final Region OREGON = new Region("us-west-2",
                new EbsBackedHvm("ami-b5a7ea85"),
                new InstanceStoreBackedHvm("ami-f5a7eac5"),
                new EbsBackedParavirtual("ami-55a7ea65"),
                new InstanceStoreBackedParavirtual("ami-5ba7ea6b"));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy