package org.dasein.cloud.network;

import javax.annotation.Nullable;

/**
 * User: mgulimonov
 * Date: 20.06.2014
 */
public class AttributesOptions {

    boolean crossZone;
    boolean connectionDraining;
    Integer connectionDrainingTimeout;
    Integer idleConnectionTimeout;

    public static AttributesOptions getInstance(boolean crossZone, boolean connectionDraining, @Nullable Integer connectionDrainingTimeout,
                                                @Nullable Integer idleConnectionTimeout) {
        AttributesOptions options = new AttributesOptions();
        options.crossZone = crossZone;
        options.connectionDraining = connectionDraining;
        options.connectionDrainingTimeout = connectionDrainingTimeout;
        options.idleConnectionTimeout = idleConnectionTimeout;
        return options;
    }

    public Boolean getCrossZone() {
        return crossZone;
    }

    public void setCrossZone(Boolean crossZone) {
        this.crossZone = crossZone;
    }

    public Boolean getConnectionDraining() {
        return connectionDraining;
    }

    public void setConnectionDraining(Boolean connectionDraining) {
        this.connectionDraining = connectionDraining;
    }

    public Integer getConnectionDrainingTimeout() {
        return connectionDrainingTimeout;
    }

    public void setConnectionDrainingTimeout(Integer connectionDrainingTimeout) {
        this.connectionDrainingTimeout = connectionDrainingTimeout;
    }

    public Integer getIdleConnectionTimeout() {
        return idleConnectionTimeout;
    }

    public void setIdleConnectionTimeout(Integer idleConnectionTimeout) {
        this.idleConnectionTimeout = idleConnectionTimeout;
    }
}

@@ -145,25 +145,25 @@
 ions %7B%0A%0A    
-b
+B
 oolean cross
@@ -172,17 +172,17 @@
 ne;%0A    
-b
+B
 oolean c
@@ -323,17 +323,17 @@
 nstance(
-b
+B
 oolean c
@@ -342,17 +342,17 @@
 ssZone, 
-b
+B
 oolean c

change types (#871 #1036)