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

com.amazonaws.services.securityhub.model.SoftwarePackage Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS SecurityHub module holds the client classes that are used for communicating with AWS SecurityHub Service

There is a newer version: 1.12.772
Show newest version
/*
 * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file 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 com.amazonaws.services.securityhub.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Information about a software package. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class SoftwarePackage implements Serializable, Cloneable, StructuredPojo { /** *

* The name of the software package. *

*/ private String name; /** *

* The version of the software package. *

*/ private String version; /** *

* The epoch of the software package. *

*/ private String epoch; /** *

* The release of the software package. *

*/ private String release; /** *

* The architecture used for the software package. *

*/ private String architecture; /** *

* The source of the package. *

*/ private String packageManager; /** *

* The file system path to the package manager inventory file. *

*/ private String filePath; /** *

* The name of the software package. *

* * @param name * The name of the software package. */ public void setName(String name) { this.name = name; } /** *

* The name of the software package. *

* * @return The name of the software package. */ public String getName() { return this.name; } /** *

* The name of the software package. *

* * @param name * The name of the software package. * @return Returns a reference to this object so that method calls can be chained together. */ public SoftwarePackage withName(String name) { setName(name); return this; } /** *

* The version of the software package. *

* * @param version * The version of the software package. */ public void setVersion(String version) { this.version = version; } /** *

* The version of the software package. *

* * @return The version of the software package. */ public String getVersion() { return this.version; } /** *

* The version of the software package. *

* * @param version * The version of the software package. * @return Returns a reference to this object so that method calls can be chained together. */ public SoftwarePackage withVersion(String version) { setVersion(version); return this; } /** *

* The epoch of the software package. *

* * @param epoch * The epoch of the software package. */ public void setEpoch(String epoch) { this.epoch = epoch; } /** *

* The epoch of the software package. *

* * @return The epoch of the software package. */ public String getEpoch() { return this.epoch; } /** *

* The epoch of the software package. *

* * @param epoch * The epoch of the software package. * @return Returns a reference to this object so that method calls can be chained together. */ public SoftwarePackage withEpoch(String epoch) { setEpoch(epoch); return this; } /** *

* The release of the software package. *

* * @param release * The release of the software package. */ public void setRelease(String release) { this.release = release; } /** *

* The release of the software package. *

* * @return The release of the software package. */ public String getRelease() { return this.release; } /** *

* The release of the software package. *

* * @param release * The release of the software package. * @return Returns a reference to this object so that method calls can be chained together. */ public SoftwarePackage withRelease(String release) { setRelease(release); return this; } /** *

* The architecture used for the software package. *

* * @param architecture * The architecture used for the software package. */ public void setArchitecture(String architecture) { this.architecture = architecture; } /** *

* The architecture used for the software package. *

* * @return The architecture used for the software package. */ public String getArchitecture() { return this.architecture; } /** *

* The architecture used for the software package. *

* * @param architecture * The architecture used for the software package. * @return Returns a reference to this object so that method calls can be chained together. */ public SoftwarePackage withArchitecture(String architecture) { setArchitecture(architecture); return this; } /** *

* The source of the package. *

* * @param packageManager * The source of the package. */ public void setPackageManager(String packageManager) { this.packageManager = packageManager; } /** *

* The source of the package. *

* * @return The source of the package. */ public String getPackageManager() { return this.packageManager; } /** *

* The source of the package. *

* * @param packageManager * The source of the package. * @return Returns a reference to this object so that method calls can be chained together. */ public SoftwarePackage withPackageManager(String packageManager) { setPackageManager(packageManager); return this; } /** *

* The file system path to the package manager inventory file. *

* * @param filePath * The file system path to the package manager inventory file. */ public void setFilePath(String filePath) { this.filePath = filePath; } /** *

* The file system path to the package manager inventory file. *

* * @return The file system path to the package manager inventory file. */ public String getFilePath() { return this.filePath; } /** *

* The file system path to the package manager inventory file. *

* * @param filePath * The file system path to the package manager inventory file. * @return Returns a reference to this object so that method calls can be chained together. */ public SoftwarePackage withFilePath(String filePath) { setFilePath(filePath); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getVersion() != null) sb.append("Version: ").append(getVersion()).append(","); if (getEpoch() != null) sb.append("Epoch: ").append(getEpoch()).append(","); if (getRelease() != null) sb.append("Release: ").append(getRelease()).append(","); if (getArchitecture() != null) sb.append("Architecture: ").append(getArchitecture()).append(","); if (getPackageManager() != null) sb.append("PackageManager: ").append(getPackageManager()).append(","); if (getFilePath() != null) sb.append("FilePath: ").append(getFilePath()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SoftwarePackage == false) return false; SoftwarePackage other = (SoftwarePackage) obj; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getVersion() == null ^ this.getVersion() == null) return false; if (other.getVersion() != null && other.getVersion().equals(this.getVersion()) == false) return false; if (other.getEpoch() == null ^ this.getEpoch() == null) return false; if (other.getEpoch() != null && other.getEpoch().equals(this.getEpoch()) == false) return false; if (other.getRelease() == null ^ this.getRelease() == null) return false; if (other.getRelease() != null && other.getRelease().equals(this.getRelease()) == false) return false; if (other.getArchitecture() == null ^ this.getArchitecture() == null) return false; if (other.getArchitecture() != null && other.getArchitecture().equals(this.getArchitecture()) == false) return false; if (other.getPackageManager() == null ^ this.getPackageManager() == null) return false; if (other.getPackageManager() != null && other.getPackageManager().equals(this.getPackageManager()) == false) return false; if (other.getFilePath() == null ^ this.getFilePath() == null) return false; if (other.getFilePath() != null && other.getFilePath().equals(this.getFilePath()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getVersion() == null) ? 0 : getVersion().hashCode()); hashCode = prime * hashCode + ((getEpoch() == null) ? 0 : getEpoch().hashCode()); hashCode = prime * hashCode + ((getRelease() == null) ? 0 : getRelease().hashCode()); hashCode = prime * hashCode + ((getArchitecture() == null) ? 0 : getArchitecture().hashCode()); hashCode = prime * hashCode + ((getPackageManager() == null) ? 0 : getPackageManager().hashCode()); hashCode = prime * hashCode + ((getFilePath() == null) ? 0 : getFilePath().hashCode()); return hashCode; } @Override public SoftwarePackage clone() { try { return (SoftwarePackage) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.securityhub.model.transform.SoftwarePackageMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy