All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.algomaster99.terminator.commons.cyclonedx.OrganizationalContact Maven / Gradle / Ivy


package io.github.algomaster99.terminator.commons.cyclonedx;

import javax.annotation.processing.Generated;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;


/**
 * Organizational Contact Object
 * 

* * */ @JsonInclude(JsonInclude.Include.NON_NULL) @JsonPropertyOrder({ "bom-ref", "name", "email", "phone" }) @Generated("jsonschema2pojo") public class OrganizationalContact { /** * Identifier for referable and therefore interlink-able elements.value SHOULD not start with the BOM-Link intro 'urn:cdx:' * */ @JsonProperty("bom-ref") @JsonPropertyDescription("Identifier for referable and therefore interlink-able elements.") private String bomRef; /** * Name *

* The name of a contact * */ @JsonProperty("name") @JsonPropertyDescription("The name of a contact") private String name; /** * Email Address *

* The email address of the contact. * */ @JsonProperty("email") @JsonPropertyDescription("The email address of the contact.") private String email; /** * Phone *

* The phone number of the contact. * */ @JsonProperty("phone") @JsonPropertyDescription("The phone number of the contact.") private String phone; /** * Identifier for referable and therefore interlink-able elements.value SHOULD not start with the BOM-Link intro 'urn:cdx:' * */ @JsonProperty("bom-ref") public String getBomRef() { return bomRef; } /** * Identifier for referable and therefore interlink-able elements.value SHOULD not start with the BOM-Link intro 'urn:cdx:' * */ @JsonProperty("bom-ref") public void setBomRef(String bomRef) { this.bomRef = bomRef; } /** * Name *

* The name of a contact * */ @JsonProperty("name") public String getName() { return name; } /** * Name *

* The name of a contact * */ @JsonProperty("name") public void setName(String name) { this.name = name; } /** * Email Address *

* The email address of the contact. * */ @JsonProperty("email") public String getEmail() { return email; } /** * Email Address *

* The email address of the contact. * */ @JsonProperty("email") public void setEmail(String email) { this.email = email; } /** * Phone *

* The phone number of the contact. * */ @JsonProperty("phone") public String getPhone() { return phone; } /** * Phone *

* The phone number of the contact. * */ @JsonProperty("phone") public void setPhone(String phone) { this.phone = phone; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(OrganizationalContact.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('['); sb.append("bomRef"); sb.append('='); sb.append(((this.bomRef == null)?"":this.bomRef)); sb.append(','); sb.append("name"); sb.append('='); sb.append(((this.name == null)?"":this.name)); sb.append(','); sb.append("email"); sb.append('='); sb.append(((this.email == null)?"":this.email)); sb.append(','); sb.append("phone"); sb.append('='); sb.append(((this.phone == null)?"":this.phone)); sb.append(','); if (sb.charAt((sb.length()- 1)) == ',') { sb.setCharAt((sb.length()- 1), ']'); } else { sb.append(']'); } return sb.toString(); } @Override public int hashCode() { int result = 1; result = ((result* 31)+((this.name == null)? 0 :this.name.hashCode())); result = ((result* 31)+((this.bomRef == null)? 0 :this.bomRef.hashCode())); result = ((result* 31)+((this.phone == null)? 0 :this.phone.hashCode())); result = ((result* 31)+((this.email == null)? 0 :this.email.hashCode())); return result; } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof OrganizationalContact) == false) { return false; } OrganizationalContact rhs = ((OrganizationalContact) other); return (((((this.name == rhs.name)||((this.name!= null)&&this.name.equals(rhs.name)))&&((this.bomRef == rhs.bomRef)||((this.bomRef!= null)&&this.bomRef.equals(rhs.bomRef))))&&((this.phone == rhs.phone)||((this.phone!= null)&&this.phone.equals(rhs.phone))))&&((this.email == rhs.email)||((this.email!= null)&&this.email.equals(rhs.email)))); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy