jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zack Shoylev <notificati...@github.com>
Subject Re: [jclouds-labs-openstack] add FWaaS extension to openstack-neutron (#196)
Date Thu, 02 Jul 2015 01:18:48 GMT
> +   @Nullable public abstract String getStatus();
> +   @Nullable public abstract String getFirewallPolicyId();
> +
> +   @SerializedNames({"id", "tenant_id", "name", "description", "admin_state_up", "status",
"firewall_policy_id"})
> +   public static Firewall create(String id, String tenantId, String name, String description,
boolean adminStateUp, String status, String firewallPolicyId) {
> +      return builder().id(id).tenantId(tenantId).name(name).description(description).adminStateUp(adminStateUp).status(status).firewallPolicyId
> +              (firewallPolicyId).build();
> +   }
> +
> +   public static Builder builder() {
> +      return new AutoValue_Firewall.Builder();
> +   }
> +
> +   public abstract Builder toBuilder();
> +
> +   @AutoValue.Builder

Only CreateFirewall and UpdateFirewall will need a builder, you can switch to a regular autovalue
class here (with no builder).

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/196/files#r33740585
Mime
View raw message