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

com.amazonaws.services.securityhub.model.AwsCodeBuildProjectArtifactsDetails 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 2019-2024 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 the build artifacts for the CodeBuild project. *

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

* An identifier for the artifact definition. *

*/ private String artifactIdentifier; /** *

* Indicates whether to disable encryption on the artifact. Only valid when Type is S3. *

*/ private Boolean encryptionDisabled; /** *

* Only used when Type is S3. The name of the S3 bucket where the artifact is located. *

*/ private String location; /** *

* Only used when Type is S3. The name of the artifact. Used with NamepaceType and Path to * determine the pattern for storing the artifact. *

*/ private String name; /** *

* Only used when Type is S3. The value to use for the namespace. Used with * Name and Path to determine the pattern for storing the artifact. *

*/ private String namespaceType; /** *

* Whether the name specified in the buildspec file overrides the artifact name. *

*/ private Boolean overrideArtifactName; /** *

* Only used when Type is S3. The type of output artifact to create. *

*/ private String packaging; /** *

* Only used when Type is S3. The path to the artifact. Used with Name and * NamespaceType to determine the pattern for storing the artifact. *

*/ private String path; /** *

* The type of build artifact. *

*/ private String type; /** *

* An identifier for the artifact definition. *

* * @param artifactIdentifier * An identifier for the artifact definition. */ public void setArtifactIdentifier(String artifactIdentifier) { this.artifactIdentifier = artifactIdentifier; } /** *

* An identifier for the artifact definition. *

* * @return An identifier for the artifact definition. */ public String getArtifactIdentifier() { return this.artifactIdentifier; } /** *

* An identifier for the artifact definition. *

* * @param artifactIdentifier * An identifier for the artifact definition. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsCodeBuildProjectArtifactsDetails withArtifactIdentifier(String artifactIdentifier) { setArtifactIdentifier(artifactIdentifier); return this; } /** *

* Indicates whether to disable encryption on the artifact. Only valid when Type is S3. *

* * @param encryptionDisabled * Indicates whether to disable encryption on the artifact. Only valid when Type is * S3. */ public void setEncryptionDisabled(Boolean encryptionDisabled) { this.encryptionDisabled = encryptionDisabled; } /** *

* Indicates whether to disable encryption on the artifact. Only valid when Type is S3. *

* * @return Indicates whether to disable encryption on the artifact. Only valid when Type is * S3. */ public Boolean getEncryptionDisabled() { return this.encryptionDisabled; } /** *

* Indicates whether to disable encryption on the artifact. Only valid when Type is S3. *

* * @param encryptionDisabled * Indicates whether to disable encryption on the artifact. Only valid when Type is * S3. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsCodeBuildProjectArtifactsDetails withEncryptionDisabled(Boolean encryptionDisabled) { setEncryptionDisabled(encryptionDisabled); return this; } /** *

* Indicates whether to disable encryption on the artifact. Only valid when Type is S3. *

* * @return Indicates whether to disable encryption on the artifact. Only valid when Type is * S3. */ public Boolean isEncryptionDisabled() { return this.encryptionDisabled; } /** *

* Only used when Type is S3. The name of the S3 bucket where the artifact is located. *

* * @param location * Only used when Type is S3. The name of the S3 bucket where the artifact is * located. */ public void setLocation(String location) { this.location = location; } /** *

* Only used when Type is S3. The name of the S3 bucket where the artifact is located. *

* * @return Only used when Type is S3. The name of the S3 bucket where the artifact is * located. */ public String getLocation() { return this.location; } /** *

* Only used when Type is S3. The name of the S3 bucket where the artifact is located. *

* * @param location * Only used when Type is S3. The name of the S3 bucket where the artifact is * located. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsCodeBuildProjectArtifactsDetails withLocation(String location) { setLocation(location); return this; } /** *

* Only used when Type is S3. The name of the artifact. Used with NamepaceType and Path to * determine the pattern for storing the artifact. *

* * @param name * Only used when Type is S3. The name of the artifact. Used with NamepaceType and * Path to determine the pattern for storing the artifact. */ public void setName(String name) { this.name = name; } /** *

* Only used when Type is S3. The name of the artifact. Used with NamepaceType and Path to * determine the pattern for storing the artifact. *

* * @return Only used when Type is S3. The name of the artifact. Used with NamepaceType and * Path to determine the pattern for storing the artifact. */ public String getName() { return this.name; } /** *

* Only used when Type is S3. The name of the artifact. Used with NamepaceType and Path to * determine the pattern for storing the artifact. *

* * @param name * Only used when Type is S3. The name of the artifact. Used with NamepaceType and * Path to determine the pattern for storing the artifact. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsCodeBuildProjectArtifactsDetails withName(String name) { setName(name); return this; } /** *

* Only used when Type is S3. The value to use for the namespace. Used with * Name and Path to determine the pattern for storing the artifact. *

* * @param namespaceType * Only used when Type is S3. The value to use for the namespace. Used with * Name and Path to determine the pattern for storing the artifact. */ public void setNamespaceType(String namespaceType) { this.namespaceType = namespaceType; } /** *

* Only used when Type is S3. The value to use for the namespace. Used with * Name and Path to determine the pattern for storing the artifact. *

* * @return Only used when Type is S3. The value to use for the namespace. Used with * Name and Path to determine the pattern for storing the artifact. */ public String getNamespaceType() { return this.namespaceType; } /** *

* Only used when Type is S3. The value to use for the namespace. Used with * Name and Path to determine the pattern for storing the artifact. *

* * @param namespaceType * Only used when Type is S3. The value to use for the namespace. Used with * Name and Path to determine the pattern for storing the artifact. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsCodeBuildProjectArtifactsDetails withNamespaceType(String namespaceType) { setNamespaceType(namespaceType); return this; } /** *

* Whether the name specified in the buildspec file overrides the artifact name. *

* * @param overrideArtifactName * Whether the name specified in the buildspec file overrides the artifact name. */ public void setOverrideArtifactName(Boolean overrideArtifactName) { this.overrideArtifactName = overrideArtifactName; } /** *

* Whether the name specified in the buildspec file overrides the artifact name. *

* * @return Whether the name specified in the buildspec file overrides the artifact name. */ public Boolean getOverrideArtifactName() { return this.overrideArtifactName; } /** *

* Whether the name specified in the buildspec file overrides the artifact name. *

* * @param overrideArtifactName * Whether the name specified in the buildspec file overrides the artifact name. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsCodeBuildProjectArtifactsDetails withOverrideArtifactName(Boolean overrideArtifactName) { setOverrideArtifactName(overrideArtifactName); return this; } /** *

* Whether the name specified in the buildspec file overrides the artifact name. *

* * @return Whether the name specified in the buildspec file overrides the artifact name. */ public Boolean isOverrideArtifactName() { return this.overrideArtifactName; } /** *

* Only used when Type is S3. The type of output artifact to create. *

* * @param packaging * Only used when Type is S3. The type of output artifact to create. */ public void setPackaging(String packaging) { this.packaging = packaging; } /** *

* Only used when Type is S3. The type of output artifact to create. *

* * @return Only used when Type is S3. The type of output artifact to create. */ public String getPackaging() { return this.packaging; } /** *

* Only used when Type is S3. The type of output artifact to create. *

* * @param packaging * Only used when Type is S3. The type of output artifact to create. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsCodeBuildProjectArtifactsDetails withPackaging(String packaging) { setPackaging(packaging); return this; } /** *

* Only used when Type is S3. The path to the artifact. Used with Name and * NamespaceType to determine the pattern for storing the artifact. *

* * @param path * Only used when Type is S3. The path to the artifact. Used with Name * and NamespaceType to determine the pattern for storing the artifact. */ public void setPath(String path) { this.path = path; } /** *

* Only used when Type is S3. The path to the artifact. Used with Name and * NamespaceType to determine the pattern for storing the artifact. *

* * @return Only used when Type is S3. The path to the artifact. Used with * Name and NamespaceType to determine the pattern for storing the artifact. */ public String getPath() { return this.path; } /** *

* Only used when Type is S3. The path to the artifact. Used with Name and * NamespaceType to determine the pattern for storing the artifact. *

* * @param path * Only used when Type is S3. The path to the artifact. Used with Name * and NamespaceType to determine the pattern for storing the artifact. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsCodeBuildProjectArtifactsDetails withPath(String path) { setPath(path); return this; } /** *

* The type of build artifact. *

* * @param type * The type of build artifact. */ public void setType(String type) { this.type = type; } /** *

* The type of build artifact. *

* * @return The type of build artifact. */ public String getType() { return this.type; } /** *

* The type of build artifact. *

* * @param type * The type of build artifact. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsCodeBuildProjectArtifactsDetails withType(String type) { setType(type); 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 (getArtifactIdentifier() != null) sb.append("ArtifactIdentifier: ").append(getArtifactIdentifier()).append(","); if (getEncryptionDisabled() != null) sb.append("EncryptionDisabled: ").append(getEncryptionDisabled()).append(","); if (getLocation() != null) sb.append("Location: ").append(getLocation()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getNamespaceType() != null) sb.append("NamespaceType: ").append(getNamespaceType()).append(","); if (getOverrideArtifactName() != null) sb.append("OverrideArtifactName: ").append(getOverrideArtifactName()).append(","); if (getPackaging() != null) sb.append("Packaging: ").append(getPackaging()).append(","); if (getPath() != null) sb.append("Path: ").append(getPath()).append(","); if (getType() != null) sb.append("Type: ").append(getType()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AwsCodeBuildProjectArtifactsDetails == false) return false; AwsCodeBuildProjectArtifactsDetails other = (AwsCodeBuildProjectArtifactsDetails) obj; if (other.getArtifactIdentifier() == null ^ this.getArtifactIdentifier() == null) return false; if (other.getArtifactIdentifier() != null && other.getArtifactIdentifier().equals(this.getArtifactIdentifier()) == false) return false; if (other.getEncryptionDisabled() == null ^ this.getEncryptionDisabled() == null) return false; if (other.getEncryptionDisabled() != null && other.getEncryptionDisabled().equals(this.getEncryptionDisabled()) == false) return false; if (other.getLocation() == null ^ this.getLocation() == null) return false; if (other.getLocation() != null && other.getLocation().equals(this.getLocation()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getNamespaceType() == null ^ this.getNamespaceType() == null) return false; if (other.getNamespaceType() != null && other.getNamespaceType().equals(this.getNamespaceType()) == false) return false; if (other.getOverrideArtifactName() == null ^ this.getOverrideArtifactName() == null) return false; if (other.getOverrideArtifactName() != null && other.getOverrideArtifactName().equals(this.getOverrideArtifactName()) == false) return false; if (other.getPackaging() == null ^ this.getPackaging() == null) return false; if (other.getPackaging() != null && other.getPackaging().equals(this.getPackaging()) == false) return false; if (other.getPath() == null ^ this.getPath() == null) return false; if (other.getPath() != null && other.getPath().equals(this.getPath()) == false) return false; if (other.getType() == null ^ this.getType() == null) return false; if (other.getType() != null && other.getType().equals(this.getType()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getArtifactIdentifier() == null) ? 0 : getArtifactIdentifier().hashCode()); hashCode = prime * hashCode + ((getEncryptionDisabled() == null) ? 0 : getEncryptionDisabled().hashCode()); hashCode = prime * hashCode + ((getLocation() == null) ? 0 : getLocation().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getNamespaceType() == null) ? 0 : getNamespaceType().hashCode()); hashCode = prime * hashCode + ((getOverrideArtifactName() == null) ? 0 : getOverrideArtifactName().hashCode()); hashCode = prime * hashCode + ((getPackaging() == null) ? 0 : getPackaging().hashCode()); hashCode = prime * hashCode + ((getPath() == null) ? 0 : getPath().hashCode()); hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); return hashCode; } @Override public AwsCodeBuildProjectArtifactsDetails clone() { try { return (AwsCodeBuildProjectArtifactsDetails) 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.AwsCodeBuildProjectArtifactsDetailsMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy