Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E847318CA4 for ; Mon, 26 Oct 2015 18:13:44 +0000 (UTC) Received: (qmail 88623 invoked by uid 500); 26 Oct 2015 18:13:35 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 88571 invoked by uid 500); 26 Oct 2015 18:13:35 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 88555 invoked by uid 99); 26 Oct 2015 18:13:35 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Oct 2015 18:13:35 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id F117DE042D; Mon, 26 Oct 2015 18:13:34 +0000 (UTC) From: jburwell To: dev@cloudstack.apache.org Reply-To: dev@cloudstack.apache.org References: In-Reply-To: Subject: [GitHub] cloudstack pull request: CLOUDSTACK-8832 : Update Nuage VSP plugin... Content-Type: text/plain Message-Id: <20151026181334.F117DE042D@git1-us-west.apache.org> Date: Mon, 26 Oct 2015 18:13:34 +0000 (UTC) Github user jburwell commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/801#discussion_r43030869 --- Diff: plugins/network-elements/nuage-vsp/src/com/cloud/agent/api/element/ApplyStaticNatVspCommand.java --- @@ -51,13 +61,91 @@ public boolean isL3Network() { return _isL3Network; } + public boolean isVpc() { + return _isVpc; + } + public List> getStaticNatDetails() { return _staticNatDetails; } + public static class Builder implements CmdBuilder { + private String _networkDomainUuid; + private String _networkUuid; + private String _vpcOrSubnetUuid; + private boolean _isL3Network; + private boolean _isVpc; + private List> _staticNatDetails; + + public Builder networkDomainUuid(String networkDomainUuid) { + this._networkDomainUuid = networkDomainUuid; + return this; + } + + public Builder networkUuid(String networkUuid) { + this._networkUuid = networkUuid; + return this; + } + + public Builder vpcOrSubnetUuid(String vpcOrSubnetUuid) { + this._vpcOrSubnetUuid = vpcOrSubnetUuid; + return this; + } + + public Builder isL3Network(boolean isL3Network) { + this._isL3Network = isL3Network; + return this; + } + + public Builder isVpc(boolean isVpc) { + this._isVpc = isVpc; + return this; + } + + public Builder staticNatDetails(List> staticNatDetails) { + this._staticNatDetails = staticNatDetails; + return this; + } + + @Override + public ApplyStaticNatVspCommand build() { + return new ApplyStaticNatVspCommand(_networkDomainUuid, _networkUuid, _vpcOrSubnetUuid, _isL3Network, _isVpc, _staticNatDetails); + } + } + @Override public boolean executeInSequence() { return false; } + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + ApplyStaticNatVspCommand that = (ApplyStaticNatVspCommand) o; + + if (_isL3Network != that._isL3Network) return false; + if (_isVpc != that._isVpc) return false; + if (_networkDomainUuid != null ? !_networkDomainUuid.equals(that._networkDomainUuid) : that._networkDomainUuid != null) + return false; + if (_networkUuid != null ? !_networkUuid.equals(that._networkUuid) : that._networkUuid != null) return false; + if (_staticNatDetails != null ? !_staticNatDetails.equals(that._staticNatDetails) : that._staticNatDetails != null) + return false; + if (_vpcOrSubnetUuid != null ? !_vpcOrSubnetUuid.equals(that._vpcOrSubnetUuid) : that._vpcOrSubnetUuid != null) + return false; + + return true; + } + + @Override + public int hashCode() { --- End diff -- This ``hashCode`` implementation should include attributes from the ``Command`` super class. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---