diff options
Diffstat (limited to 'catalog-dao/src/main/java/org/openecomp/sdc/be/resources/data/OperationalEnvironmentEntry.java')
-rw-r--r-- | catalog-dao/src/main/java/org/openecomp/sdc/be/resources/data/OperationalEnvironmentEntry.java | 29 |
1 files changed, 8 insertions, 21 deletions
diff --git a/catalog-dao/src/main/java/org/openecomp/sdc/be/resources/data/OperationalEnvironmentEntry.java b/catalog-dao/src/main/java/org/openecomp/sdc/be/resources/data/OperationalEnvironmentEntry.java index 8b7032d06b..51c1561c1e 100644 --- a/catalog-dao/src/main/java/org/openecomp/sdc/be/resources/data/OperationalEnvironmentEntry.java +++ b/catalog-dao/src/main/java/org/openecomp/sdc/be/resources/data/OperationalEnvironmentEntry.java @@ -17,19 +17,17 @@ * limitations under the License. * ============LICENSE_END========================================================= */ - package org.openecomp.sdc.be.resources.data; import com.datastax.driver.mapping.annotations.Column; import com.datastax.driver.mapping.annotations.PartitionKey; import com.datastax.driver.mapping.annotations.Table; -import lombok.Getter; -import lombok.Setter; -import org.openecomp.sdc.be.datatypes.enums.EnvironmentStatusEnum; - import java.util.Date; import java.util.HashSet; import java.util.Set; +import lombok.Getter; +import lombok.Setter; +import org.openecomp.sdc.be.datatypes.enums.EnvironmentStatusEnum; @Getter @Setter @@ -39,32 +37,23 @@ public class OperationalEnvironmentEntry { @PartitionKey(0) @Column(name = "environment_id") private String environmentId; - @Column(name = "tenant") private String tenant; - @Column(name = "is_production") private Boolean isProduction; - @Column(name = "ecomp_workload_context") private String ecompWorkloadContext; - @Column(name = "dmaap_ueb_address") private Set<String> dmaapUebAddress; - @Column(name = "ueb_api_key") private String uebApikey; - @Column(name = "ueb_secret_key") private String uebSecretKey; - @Column(name = "status") private String status; - @Column(name = "last_modified") private Date lastModified; - public void setStatus(EnvironmentStatusEnum status) { this.status = status.getName(); } @@ -75,18 +64,16 @@ public class OperationalEnvironmentEntry { } public void addDmaapUebAddress(String address) { - if ( this.dmaapUebAddress == null ) + if (this.dmaapUebAddress == null) { this.dmaapUebAddress = new HashSet<>(); + } dmaapUebAddress.add(address); } @Override public String toString() { - return "OperationalEnvironmentEntry [environmentId=" + environmentId + ", tenant=" + tenant + ", isProduction=" - + isProduction + ", ecompWorkloadContext=" + ecompWorkloadContext + ", dmaapUebAddress=" - + dmaapUebAddress + ", uebApikey=" + uebApikey + ", status=" + status - + ", lastModified=" + lastModified + "]"; + return "OperationalEnvironmentEntry [environmentId=" + environmentId + ", tenant=" + tenant + ", isProduction=" + isProduction + + ", ecompWorkloadContext=" + ecompWorkloadContext + ", dmaapUebAddress=" + dmaapUebAddress + ", uebApikey=" + uebApikey + ", status=" + + status + ", lastModified=" + lastModified + "]"; } - - } |