Github user nlivens commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/801#discussion_r43093012
  
    --- 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<Map<String, Object>> getStaticNatDetails() {
             return _staticNatDetails;
         }
     
    +    public static class Builder implements 
CmdBuilder<ApplyStaticNatVspCommand> {
    +        private String _networkDomainUuid;
    +        private String _networkUuid;
    +        private String _vpcOrSubnetUuid;
    +        private boolean _isL3Network;
    +        private boolean _isVpc;
    +        private List<Map<String, Object>> _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<Map<String, Object>> 
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) {
    --- End diff --
    
    Implemented <code>equals</code> method for the <code>Command</code> super 
class, calling it from subclass.


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to