package org.dasein.cloud.compute;

import org.dasein.cloud.network.RawAddress;

/**
 * @author Eugene Yaroslavtsev
 * @since 22.09.2014
 */
public class AssociationIpAddress {
    private RawAddress privateIpAddress;
    private RawAddress publicIp;
    private boolean primary;

    public AssociationIpAddress() {
    }

    public RawAddress getPrivateIpAddress() {
        return privateIpAddress;
    }

    public void setPrivateIpAddress( RawAddress privateIpAddress ) {
        this.privateIpAddress = privateIpAddress;
    }

    public RawAddress getPublicIp() {
        return publicIp;
    }

    public void setPublicIp( RawAddress publicIp ) {
        this.publicIp = publicIp;
    }

    public boolean isPrimary() {
        return primary;
    }

    public void setPrimary( boolean primary ) {
        this.primary = primary;
    }
}

@@ -237,24 +237,31 @@
 ess publicIp
+Address
 ;%0A    privat
@@ -568,16 +568,23 @@
 PublicIp
+Address
 () %7B%0A   
@@ -595,32 +595,39 @@
  return publicIp
+Address
 ;%0A    %7D%0A%0A    pub
@@ -646,16 +646,23 @@
 PublicIp
+Address
 ( RawAdd
@@ -674,16 +674,23 @@
 publicIp
+Address
  ) %7B%0A   
@@ -707,16 +707,23 @@
 publicIp
+Address
  = publi
@@ -725,16 +725,23 @@
 publicIp
+Address
 ;%0A    %7D%0A

rename publicIp to publicIpAddress (#534)