blob: aa729f123b442594956d2060c411b3b316011d53 [file] [log] [blame]
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
package org.apache.cloudstack.api.response;
import java.util.List;
import com.google.gson.annotations.SerializedName;
import org.apache.cloudstack.api.ApiConstants;
import org.apache.cloudstack.api.BaseResponse;
import org.apache.cloudstack.api.EntityReference;
import org.apache.cloudstack.network.tls.SslCert;
import com.cloud.serializer.Param;
//import org.apache.cloudstack.api.EntityReference;
@EntityReference(value = SslCert.class)
public class SslCertResponse extends BaseResponse {
@SerializedName(ApiConstants.ID)
@Param(description = "SSL certificate ID")
private String id;
@SerializedName(ApiConstants.CERTIFICATE)
@Param(description = "certificate")
private String certificate;
@SerializedName(ApiConstants.ACCOUNT)
@Param(description = "account for the certificate")
private String accountName;
@SerializedName(ApiConstants.PROJECT_ID)
@Param(description = "the project id of the certificate")
private String projectId;
@SerializedName(ApiConstants.PROJECT)
@Param(description = "the project name of the certificate")
private String projectName;
@SerializedName(ApiConstants.DOMAIN_ID)
@Param(description = "the domain id of the network owner")
private String domainId;
@SerializedName(ApiConstants.DOMAIN)
@Param(description = "the domain name of the network owner")
private String domain;
@SerializedName(ApiConstants.CERTIFICATE_CHAIN)
@Param(description = "certificate chain")
private String certchain;
@SerializedName(ApiConstants.CERTIFICATE_FINGERPRINT)
@Param(description = "certificate fingerprint")
private String fingerprint;
@SerializedName(ApiConstants.LOAD_BALANCER_RULE_LIST)
@Param(description = "List of loabalancers this certificate is bound to")
List<String> lbIds;
@SerializedName(ApiConstants.NAME)
@Param(description = "name")
private String name;
public SslCertResponse() {
}
public void setId(String id) {
this.id = id;
}
public void setCertificate(String cert) {
this.certificate = cert;
}
public void setName(String name) {
this.name = name;
}
public void setAccountName(String accountName) {
this.accountName = accountName;
}
public void setProjectId(String projectId) {
this.projectId = projectId;
}
public void setProjectName(String projectName) {
this.projectName = projectName;
}
public void setDomainId(String domainId) {
this.domainId = domainId;
}
public void setDomainName(String domain) {
this.domain = domain;
}
public void setCertchain(String chain) {
this.certchain = chain;
}
public void setFingerprint(String fingerprint) {
this.fingerprint = fingerprint;
}
public void setLbIds(List<String> lbIds) {
this.lbIds = lbIds;
}
}