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

com.amazonaws.services.auditmanager.model.AssessmentFrameworkMetadata Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Audit Manager module holds the client classes that are used for communicating with AWS Audit Manager 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.auditmanager.model;

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

/**
 * 

* The metadata that's associated with a standard framework or a custom framework. *

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

* The Amazon Resource Name (ARN) of the framework. *

*/ private String arn; /** *

* The unique identifier for the framework. *

*/ private String id; /** *

* The framework type, such as a standard framework or a custom framework. *

*/ private String type; /** *

* The name of the framework. *

*/ private String name; /** *

* The description of the framework. *

*/ private String description; /** *

* The logo that's associated with the framework. *

*/ private String logo; /** *

* The compliance type that the new custom framework supports, such as CIS or HIPAA. *

*/ private String complianceType; /** *

* The number of controls that are associated with the framework. *

*/ private Integer controlsCount; /** *

* The number of control sets that are associated with the framework. *

*/ private Integer controlSetsCount; /** *

* The time when the framework was created. *

*/ private java.util.Date createdAt; /** *

* The time when the framework was most recently updated. *

*/ private java.util.Date lastUpdatedAt; /** *

* The Amazon Resource Name (ARN) of the framework. *

* * @param arn * The Amazon Resource Name (ARN) of the framework. */ public void setArn(String arn) { this.arn = arn; } /** *

* The Amazon Resource Name (ARN) of the framework. *

* * @return The Amazon Resource Name (ARN) of the framework. */ public String getArn() { return this.arn; } /** *

* The Amazon Resource Name (ARN) of the framework. *

* * @param arn * The Amazon Resource Name (ARN) of the framework. * @return Returns a reference to this object so that method calls can be chained together. */ public AssessmentFrameworkMetadata withArn(String arn) { setArn(arn); return this; } /** *

* The unique identifier for the framework. *

* * @param id * The unique identifier for the framework. */ public void setId(String id) { this.id = id; } /** *

* The unique identifier for the framework. *

* * @return The unique identifier for the framework. */ public String getId() { return this.id; } /** *

* The unique identifier for the framework. *

* * @param id * The unique identifier for the framework. * @return Returns a reference to this object so that method calls can be chained together. */ public AssessmentFrameworkMetadata withId(String id) { setId(id); return this; } /** *

* The framework type, such as a standard framework or a custom framework. *

* * @param type * The framework type, such as a standard framework or a custom framework. * @see FrameworkType */ public void setType(String type) { this.type = type; } /** *

* The framework type, such as a standard framework or a custom framework. *

* * @return The framework type, such as a standard framework or a custom framework. * @see FrameworkType */ public String getType() { return this.type; } /** *

* The framework type, such as a standard framework or a custom framework. *

* * @param type * The framework type, such as a standard framework or a custom framework. * @return Returns a reference to this object so that method calls can be chained together. * @see FrameworkType */ public AssessmentFrameworkMetadata withType(String type) { setType(type); return this; } /** *

* The framework type, such as a standard framework or a custom framework. *

* * @param type * The framework type, such as a standard framework or a custom framework. * @return Returns a reference to this object so that method calls can be chained together. * @see FrameworkType */ public AssessmentFrameworkMetadata withType(FrameworkType type) { this.type = type.toString(); return this; } /** *

* The name of the framework. *

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

* The name of the framework. *

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

* The name of the framework. *

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

* The description of the framework. *

* * @param description * The description of the framework. */ public void setDescription(String description) { this.description = description; } /** *

* The description of the framework. *

* * @return The description of the framework. */ public String getDescription() { return this.description; } /** *

* The description of the framework. *

* * @param description * The description of the framework. * @return Returns a reference to this object so that method calls can be chained together. */ public AssessmentFrameworkMetadata withDescription(String description) { setDescription(description); return this; } /** *

* The logo that's associated with the framework. *

* * @param logo * The logo that's associated with the framework. */ public void setLogo(String logo) { this.logo = logo; } /** *

* The logo that's associated with the framework. *

* * @return The logo that's associated with the framework. */ public String getLogo() { return this.logo; } /** *

* The logo that's associated with the framework. *

* * @param logo * The logo that's associated with the framework. * @return Returns a reference to this object so that method calls can be chained together. */ public AssessmentFrameworkMetadata withLogo(String logo) { setLogo(logo); return this; } /** *

* The compliance type that the new custom framework supports, such as CIS or HIPAA. *

* * @param complianceType * The compliance type that the new custom framework supports, such as CIS or HIPAA. */ public void setComplianceType(String complianceType) { this.complianceType = complianceType; } /** *

* The compliance type that the new custom framework supports, such as CIS or HIPAA. *

* * @return The compliance type that the new custom framework supports, such as CIS or HIPAA. */ public String getComplianceType() { return this.complianceType; } /** *

* The compliance type that the new custom framework supports, such as CIS or HIPAA. *

* * @param complianceType * The compliance type that the new custom framework supports, such as CIS or HIPAA. * @return Returns a reference to this object so that method calls can be chained together. */ public AssessmentFrameworkMetadata withComplianceType(String complianceType) { setComplianceType(complianceType); return this; } /** *

* The number of controls that are associated with the framework. *

* * @param controlsCount * The number of controls that are associated with the framework. */ public void setControlsCount(Integer controlsCount) { this.controlsCount = controlsCount; } /** *

* The number of controls that are associated with the framework. *

* * @return The number of controls that are associated with the framework. */ public Integer getControlsCount() { return this.controlsCount; } /** *

* The number of controls that are associated with the framework. *

* * @param controlsCount * The number of controls that are associated with the framework. * @return Returns a reference to this object so that method calls can be chained together. */ public AssessmentFrameworkMetadata withControlsCount(Integer controlsCount) { setControlsCount(controlsCount); return this; } /** *

* The number of control sets that are associated with the framework. *

* * @param controlSetsCount * The number of control sets that are associated with the framework. */ public void setControlSetsCount(Integer controlSetsCount) { this.controlSetsCount = controlSetsCount; } /** *

* The number of control sets that are associated with the framework. *

* * @return The number of control sets that are associated with the framework. */ public Integer getControlSetsCount() { return this.controlSetsCount; } /** *

* The number of control sets that are associated with the framework. *

* * @param controlSetsCount * The number of control sets that are associated with the framework. * @return Returns a reference to this object so that method calls can be chained together. */ public AssessmentFrameworkMetadata withControlSetsCount(Integer controlSetsCount) { setControlSetsCount(controlSetsCount); return this; } /** *

* The time when the framework was created. *

* * @param createdAt * The time when the framework was created. */ public void setCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; } /** *

* The time when the framework was created. *

* * @return The time when the framework was created. */ public java.util.Date getCreatedAt() { return this.createdAt; } /** *

* The time when the framework was created. *

* * @param createdAt * The time when the framework was created. * @return Returns a reference to this object so that method calls can be chained together. */ public AssessmentFrameworkMetadata withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); return this; } /** *

* The time when the framework was most recently updated. *

* * @param lastUpdatedAt * The time when the framework was most recently updated. */ public void setLastUpdatedAt(java.util.Date lastUpdatedAt) { this.lastUpdatedAt = lastUpdatedAt; } /** *

* The time when the framework was most recently updated. *

* * @return The time when the framework was most recently updated. */ public java.util.Date getLastUpdatedAt() { return this.lastUpdatedAt; } /** *

* The time when the framework was most recently updated. *

* * @param lastUpdatedAt * The time when the framework was most recently updated. * @return Returns a reference to this object so that method calls can be chained together. */ public AssessmentFrameworkMetadata withLastUpdatedAt(java.util.Date lastUpdatedAt) { setLastUpdatedAt(lastUpdatedAt); 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 (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getType() != null) sb.append("Type: ").append(getType()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getLogo() != null) sb.append("Logo: ").append(getLogo()).append(","); if (getComplianceType() != null) sb.append("ComplianceType: ").append("***Sensitive Data Redacted***").append(","); if (getControlsCount() != null) sb.append("ControlsCount: ").append(getControlsCount()).append(","); if (getControlSetsCount() != null) sb.append("ControlSetsCount: ").append(getControlSetsCount()).append(","); if (getCreatedAt() != null) sb.append("CreatedAt: ").append(getCreatedAt()).append(","); if (getLastUpdatedAt() != null) sb.append("LastUpdatedAt: ").append(getLastUpdatedAt()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AssessmentFrameworkMetadata == false) return false; AssessmentFrameworkMetadata other = (AssessmentFrameworkMetadata) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getType() == null ^ this.getType() == null) return false; if (other.getType() != null && other.getType().equals(this.getType()) == 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.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getLogo() == null ^ this.getLogo() == null) return false; if (other.getLogo() != null && other.getLogo().equals(this.getLogo()) == false) return false; if (other.getComplianceType() == null ^ this.getComplianceType() == null) return false; if (other.getComplianceType() != null && other.getComplianceType().equals(this.getComplianceType()) == false) return false; if (other.getControlsCount() == null ^ this.getControlsCount() == null) return false; if (other.getControlsCount() != null && other.getControlsCount().equals(this.getControlsCount()) == false) return false; if (other.getControlSetsCount() == null ^ this.getControlSetsCount() == null) return false; if (other.getControlSetsCount() != null && other.getControlSetsCount().equals(this.getControlSetsCount()) == false) return false; if (other.getCreatedAt() == null ^ this.getCreatedAt() == null) return false; if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false) return false; if (other.getLastUpdatedAt() == null ^ this.getLastUpdatedAt() == null) return false; if (other.getLastUpdatedAt() != null && other.getLastUpdatedAt().equals(this.getLastUpdatedAt()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getLogo() == null) ? 0 : getLogo().hashCode()); hashCode = prime * hashCode + ((getComplianceType() == null) ? 0 : getComplianceType().hashCode()); hashCode = prime * hashCode + ((getControlsCount() == null) ? 0 : getControlsCount().hashCode()); hashCode = prime * hashCode + ((getControlSetsCount() == null) ? 0 : getControlSetsCount().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedAt() == null) ? 0 : getLastUpdatedAt().hashCode()); return hashCode; } @Override public AssessmentFrameworkMetadata clone() { try { return (AssessmentFrameworkMetadata) 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.auditmanager.model.transform.AssessmentFrameworkMetadataMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy