|
| 1 | +// Licensed to the Apache Software Foundation (ASF) under one |
| 2 | +// or more contributor license agreements. See the NOTICE file |
| 3 | +// distributed with this work for additional information |
| 4 | +// regarding copyright ownership. The ASF licenses this file |
| 5 | +// to you under the Apache License, Version 2.0 (the |
| 6 | +// "License"); you may not use this file except in compliance |
| 7 | +// with the License. You may obtain a copy of the License at |
| 8 | +// |
| 9 | +// http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +// |
| 11 | +// Unless required by applicable law or agreed to in writing, |
| 12 | +// software distributed under the License is distributed on an |
| 13 | +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 14 | +// KIND, either express or implied. See the License for the |
| 15 | +// specific language governing permissions and limitations |
| 16 | +// under the License. |
| 17 | +package org.apache.cloudstack.network.tungsten.agent.api; |
| 18 | + |
| 19 | +import com.cloud.agent.api.Command; |
| 20 | + |
| 21 | +import java.util.Objects; |
| 22 | + |
| 23 | +public class UpdateTungstenLoadbalancerSslCommand extends Command { |
| 24 | + private final String lbUuid; |
| 25 | + private final String sslCertName; |
| 26 | + private final String certificateKey; |
| 27 | + private final String privateKey; |
| 28 | + private final String privateIp; |
| 29 | + private final String port; |
| 30 | + |
| 31 | + public UpdateTungstenLoadbalancerSslCommand(final String lbUuid, final String sslCertName, |
| 32 | + final String certificateKey, final String privateKey, final String privateIp, final String port) { |
| 33 | + this.lbUuid = lbUuid; |
| 34 | + this.sslCertName = sslCertName; |
| 35 | + this.certificateKey = certificateKey; |
| 36 | + this.privateKey = privateKey; |
| 37 | + this.privateIp = privateIp; |
| 38 | + this.port = port; |
| 39 | + } |
| 40 | + |
| 41 | + public String getLbUuid() { |
| 42 | + return lbUuid; |
| 43 | + } |
| 44 | + |
| 45 | + public String getSslCertName() { |
| 46 | + return sslCertName; |
| 47 | + } |
| 48 | + |
| 49 | + public String getCertificateKey() { |
| 50 | + return certificateKey; |
| 51 | + } |
| 52 | + |
| 53 | + public String getPrivateKey() { |
| 54 | + return privateKey; |
| 55 | + } |
| 56 | + |
| 57 | + public String getPrivateIp() { |
| 58 | + return privateIp; |
| 59 | + } |
| 60 | + |
| 61 | + public String getPort() { |
| 62 | + return port; |
| 63 | + } |
| 64 | + |
| 65 | + @Override |
| 66 | + public boolean executeInSequence() { |
| 67 | + return false; |
| 68 | + } |
| 69 | + |
| 70 | + @Override |
| 71 | + public boolean equals(Object o) { |
| 72 | + if (this == o) return true; |
| 73 | + if (o == null || getClass() != o.getClass()) return false; |
| 74 | + if (!super.equals(o)) return false; |
| 75 | + UpdateTungstenLoadbalancerSslCommand that = (UpdateTungstenLoadbalancerSslCommand) o; |
| 76 | + return Objects.equals(lbUuid, that.lbUuid) && Objects.equals(sslCertName, that.sslCertName) && Objects.equals(certificateKey, that.certificateKey) && Objects.equals(privateKey, that.privateKey) && Objects.equals(privateIp, that.privateIp) && Objects.equals(port, that.port); |
| 77 | + } |
| 78 | + |
| 79 | + @Override |
| 80 | + public int hashCode() { |
| 81 | + return Objects.hash(super.hashCode(), lbUuid, sslCertName, certificateKey, privateKey, privateIp, port); |
| 82 | + } |
| 83 | +} |
0 commit comments