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

com.amazonaws.services.securityhub.model.ContainerDetails 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.780
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;

/**
 * 

* Container details related to a finding. *

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

* The runtime of the container. *

*/ private String containerRuntime; /** *

* The name of the container related to a finding. *

*/ private String name; /** *

* The identifier of the container image related to a finding. *

*/ private String imageId; /** *

* The name of the container image related to a finding. *

*/ private String imageName; /** *

* Indicates when the container started. *

*

* Uses the date-time format specified in RFC * 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be * separated by T. For example, 2020-03-22T13:22:13.933Z. *

*/ private String launchedAt; /** *

* Provides information about the mounting of a volume in a container. *

*/ private java.util.List volumeMounts; /** *

* When this parameter is true, the container is given elevated privileges on the host container * instance (similar to the root user). *

*/ private Boolean privileged; /** *

* The runtime of the container. *

* * @param containerRuntime * The runtime of the container. */ public void setContainerRuntime(String containerRuntime) { this.containerRuntime = containerRuntime; } /** *

* The runtime of the container. *

* * @return The runtime of the container. */ public String getContainerRuntime() { return this.containerRuntime; } /** *

* The runtime of the container. *

* * @param containerRuntime * The runtime of the container. * @return Returns a reference to this object so that method calls can be chained together. */ public ContainerDetails withContainerRuntime(String containerRuntime) { setContainerRuntime(containerRuntime); return this; } /** *

* The name of the container related to a finding. *

* * @param name * The name of the container related to a finding. */ public void setName(String name) { this.name = name; } /** *

* The name of the container related to a finding. *

* * @return The name of the container related to a finding. */ public String getName() { return this.name; } /** *

* The name of the container related to a finding. *

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

* The identifier of the container image related to a finding. *

* * @param imageId * The identifier of the container image related to a finding. */ public void setImageId(String imageId) { this.imageId = imageId; } /** *

* The identifier of the container image related to a finding. *

* * @return The identifier of the container image related to a finding. */ public String getImageId() { return this.imageId; } /** *

* The identifier of the container image related to a finding. *

* * @param imageId * The identifier of the container image related to a finding. * @return Returns a reference to this object so that method calls can be chained together. */ public ContainerDetails withImageId(String imageId) { setImageId(imageId); return this; } /** *

* The name of the container image related to a finding. *

* * @param imageName * The name of the container image related to a finding. */ public void setImageName(String imageName) { this.imageName = imageName; } /** *

* The name of the container image related to a finding. *

* * @return The name of the container image related to a finding. */ public String getImageName() { return this.imageName; } /** *

* The name of the container image related to a finding. *

* * @param imageName * The name of the container image related to a finding. * @return Returns a reference to this object so that method calls can be chained together. */ public ContainerDetails withImageName(String imageName) { setImageName(imageName); return this; } /** *

* Indicates when the container started. *

*

* Uses the date-time format specified in RFC * 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be * separated by T. For example, 2020-03-22T13:22:13.933Z. *

* * @param launchedAt * Indicates when the container started.

*

* Uses the date-time format specified in RFC 3339 section 5.6, Internet Date/Time * Format. The value cannot contain spaces, and date and time should be separated by T. For * example, 2020-03-22T13:22:13.933Z. */ public void setLaunchedAt(String launchedAt) { this.launchedAt = launchedAt; } /** *

* Indicates when the container started. *

*

* Uses the date-time format specified in RFC * 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be * separated by T. For example, 2020-03-22T13:22:13.933Z. *

* * @return Indicates when the container started.

*

* Uses the date-time format specified in RFC 3339 section 5.6, Internet Date/Time * Format. The value cannot contain spaces, and date and time should be separated by T. For * example, 2020-03-22T13:22:13.933Z. */ public String getLaunchedAt() { return this.launchedAt; } /** *

* Indicates when the container started. *

*

* Uses the date-time format specified in RFC * 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be * separated by T. For example, 2020-03-22T13:22:13.933Z. *

* * @param launchedAt * Indicates when the container started.

*

* Uses the date-time format specified in RFC 3339 section 5.6, Internet Date/Time * Format. The value cannot contain spaces, and date and time should be separated by T. For * example, 2020-03-22T13:22:13.933Z. * @return Returns a reference to this object so that method calls can be chained together. */ public ContainerDetails withLaunchedAt(String launchedAt) { setLaunchedAt(launchedAt); return this; } /** *

* Provides information about the mounting of a volume in a container. *

* * @return Provides information about the mounting of a volume in a container. */ public java.util.List getVolumeMounts() { return volumeMounts; } /** *

* Provides information about the mounting of a volume in a container. *

* * @param volumeMounts * Provides information about the mounting of a volume in a container. */ public void setVolumeMounts(java.util.Collection volumeMounts) { if (volumeMounts == null) { this.volumeMounts = null; return; } this.volumeMounts = new java.util.ArrayList(volumeMounts); } /** *

* Provides information about the mounting of a volume in a container. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setVolumeMounts(java.util.Collection)} or {@link #withVolumeMounts(java.util.Collection)} if you want to * override the existing values. *

* * @param volumeMounts * Provides information about the mounting of a volume in a container. * @return Returns a reference to this object so that method calls can be chained together. */ public ContainerDetails withVolumeMounts(VolumeMount... volumeMounts) { if (this.volumeMounts == null) { setVolumeMounts(new java.util.ArrayList(volumeMounts.length)); } for (VolumeMount ele : volumeMounts) { this.volumeMounts.add(ele); } return this; } /** *

* Provides information about the mounting of a volume in a container. *

* * @param volumeMounts * Provides information about the mounting of a volume in a container. * @return Returns a reference to this object so that method calls can be chained together. */ public ContainerDetails withVolumeMounts(java.util.Collection volumeMounts) { setVolumeMounts(volumeMounts); return this; } /** *

* When this parameter is true, the container is given elevated privileges on the host container * instance (similar to the root user). *

* * @param privileged * When this parameter is true, the container is given elevated privileges on the host container * instance (similar to the root user). */ public void setPrivileged(Boolean privileged) { this.privileged = privileged; } /** *

* When this parameter is true, the container is given elevated privileges on the host container * instance (similar to the root user). *

* * @return When this parameter is true, the container is given elevated privileges on the host * container instance (similar to the root user). */ public Boolean getPrivileged() { return this.privileged; } /** *

* When this parameter is true, the container is given elevated privileges on the host container * instance (similar to the root user). *

* * @param privileged * When this parameter is true, the container is given elevated privileges on the host container * instance (similar to the root user). * @return Returns a reference to this object so that method calls can be chained together. */ public ContainerDetails withPrivileged(Boolean privileged) { setPrivileged(privileged); return this; } /** *

* When this parameter is true, the container is given elevated privileges on the host container * instance (similar to the root user). *

* * @return When this parameter is true, the container is given elevated privileges on the host * container instance (similar to the root user). */ public Boolean isPrivileged() { return this.privileged; } /** * 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 (getContainerRuntime() != null) sb.append("ContainerRuntime: ").append(getContainerRuntime()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getImageId() != null) sb.append("ImageId: ").append(getImageId()).append(","); if (getImageName() != null) sb.append("ImageName: ").append(getImageName()).append(","); if (getLaunchedAt() != null) sb.append("LaunchedAt: ").append(getLaunchedAt()).append(","); if (getVolumeMounts() != null) sb.append("VolumeMounts: ").append(getVolumeMounts()).append(","); if (getPrivileged() != null) sb.append("Privileged: ").append(getPrivileged()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ContainerDetails == false) return false; ContainerDetails other = (ContainerDetails) obj; if (other.getContainerRuntime() == null ^ this.getContainerRuntime() == null) return false; if (other.getContainerRuntime() != null && other.getContainerRuntime().equals(this.getContainerRuntime()) == 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.getImageId() == null ^ this.getImageId() == null) return false; if (other.getImageId() != null && other.getImageId().equals(this.getImageId()) == false) return false; if (other.getImageName() == null ^ this.getImageName() == null) return false; if (other.getImageName() != null && other.getImageName().equals(this.getImageName()) == false) return false; if (other.getLaunchedAt() == null ^ this.getLaunchedAt() == null) return false; if (other.getLaunchedAt() != null && other.getLaunchedAt().equals(this.getLaunchedAt()) == false) return false; if (other.getVolumeMounts() == null ^ this.getVolumeMounts() == null) return false; if (other.getVolumeMounts() != null && other.getVolumeMounts().equals(this.getVolumeMounts()) == false) return false; if (other.getPrivileged() == null ^ this.getPrivileged() == null) return false; if (other.getPrivileged() != null && other.getPrivileged().equals(this.getPrivileged()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getContainerRuntime() == null) ? 0 : getContainerRuntime().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getImageId() == null) ? 0 : getImageId().hashCode()); hashCode = prime * hashCode + ((getImageName() == null) ? 0 : getImageName().hashCode()); hashCode = prime * hashCode + ((getLaunchedAt() == null) ? 0 : getLaunchedAt().hashCode()); hashCode = prime * hashCode + ((getVolumeMounts() == null) ? 0 : getVolumeMounts().hashCode()); hashCode = prime * hashCode + ((getPrivileged() == null) ? 0 : getPrivileged().hashCode()); return hashCode; } @Override public ContainerDetails clone() { try { return (ContainerDetails) 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.ContainerDetailsMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy