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

com.amazonaws.services.auditmanager.model.ControlMappingSource 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 2016-2021 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 data source that determines from where AWS Audit Manager collects evidence for the control. *

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

* The unique identifier for the specified source. *

*/ private String sourceId; /** *

* The name of the specified source. *

*/ private String sourceName; /** *

* The description of the specified source. *

*/ private String sourceDescription; /** *

* The setup option for the data source, which reflects if the evidence collection is automated or manual. *

*/ private String sourceSetUpOption; /** *

* Specifies one of the five types of data sources for evidence collection. *

*/ private String sourceType; private SourceKeyword sourceKeyword; /** *

* The frequency of evidence collection for the specified control mapping source. *

*/ private String sourceFrequency; /** *

* The instructions for troubleshooting the specified control. *

*/ private String troubleshootingText; /** *

* The unique identifier for the specified source. *

* * @param sourceId * The unique identifier for the specified source. */ public void setSourceId(String sourceId) { this.sourceId = sourceId; } /** *

* The unique identifier for the specified source. *

* * @return The unique identifier for the specified source. */ public String getSourceId() { return this.sourceId; } /** *

* The unique identifier for the specified source. *

* * @param sourceId * The unique identifier for the specified source. * @return Returns a reference to this object so that method calls can be chained together. */ public ControlMappingSource withSourceId(String sourceId) { setSourceId(sourceId); return this; } /** *

* The name of the specified source. *

* * @param sourceName * The name of the specified source. */ public void setSourceName(String sourceName) { this.sourceName = sourceName; } /** *

* The name of the specified source. *

* * @return The name of the specified source. */ public String getSourceName() { return this.sourceName; } /** *

* The name of the specified source. *

* * @param sourceName * The name of the specified source. * @return Returns a reference to this object so that method calls can be chained together. */ public ControlMappingSource withSourceName(String sourceName) { setSourceName(sourceName); return this; } /** *

* The description of the specified source. *

* * @param sourceDescription * The description of the specified source. */ public void setSourceDescription(String sourceDescription) { this.sourceDescription = sourceDescription; } /** *

* The description of the specified source. *

* * @return The description of the specified source. */ public String getSourceDescription() { return this.sourceDescription; } /** *

* The description of the specified source. *

* * @param sourceDescription * The description of the specified source. * @return Returns a reference to this object so that method calls can be chained together. */ public ControlMappingSource withSourceDescription(String sourceDescription) { setSourceDescription(sourceDescription); return this; } /** *

* The setup option for the data source, which reflects if the evidence collection is automated or manual. *

* * @param sourceSetUpOption * The setup option for the data source, which reflects if the evidence collection is automated or manual. * @see SourceSetUpOption */ public void setSourceSetUpOption(String sourceSetUpOption) { this.sourceSetUpOption = sourceSetUpOption; } /** *

* The setup option for the data source, which reflects if the evidence collection is automated or manual. *

* * @return The setup option for the data source, which reflects if the evidence collection is automated or manual. * @see SourceSetUpOption */ public String getSourceSetUpOption() { return this.sourceSetUpOption; } /** *

* The setup option for the data source, which reflects if the evidence collection is automated or manual. *

* * @param sourceSetUpOption * The setup option for the data source, which reflects if the evidence collection is automated or manual. * @return Returns a reference to this object so that method calls can be chained together. * @see SourceSetUpOption */ public ControlMappingSource withSourceSetUpOption(String sourceSetUpOption) { setSourceSetUpOption(sourceSetUpOption); return this; } /** *

* The setup option for the data source, which reflects if the evidence collection is automated or manual. *

* * @param sourceSetUpOption * The setup option for the data source, which reflects if the evidence collection is automated or manual. * @return Returns a reference to this object so that method calls can be chained together. * @see SourceSetUpOption */ public ControlMappingSource withSourceSetUpOption(SourceSetUpOption sourceSetUpOption) { this.sourceSetUpOption = sourceSetUpOption.toString(); return this; } /** *

* Specifies one of the five types of data sources for evidence collection. *

* * @param sourceType * Specifies one of the five types of data sources for evidence collection. * @see SourceType */ public void setSourceType(String sourceType) { this.sourceType = sourceType; } /** *

* Specifies one of the five types of data sources for evidence collection. *

* * @return Specifies one of the five types of data sources for evidence collection. * @see SourceType */ public String getSourceType() { return this.sourceType; } /** *

* Specifies one of the five types of data sources for evidence collection. *

* * @param sourceType * Specifies one of the five types of data sources for evidence collection. * @return Returns a reference to this object so that method calls can be chained together. * @see SourceType */ public ControlMappingSource withSourceType(String sourceType) { setSourceType(sourceType); return this; } /** *

* Specifies one of the five types of data sources for evidence collection. *

* * @param sourceType * Specifies one of the five types of data sources for evidence collection. * @return Returns a reference to this object so that method calls can be chained together. * @see SourceType */ public ControlMappingSource withSourceType(SourceType sourceType) { this.sourceType = sourceType.toString(); return this; } /** * @param sourceKeyword */ public void setSourceKeyword(SourceKeyword sourceKeyword) { this.sourceKeyword = sourceKeyword; } /** * @return */ public SourceKeyword getSourceKeyword() { return this.sourceKeyword; } /** * @param sourceKeyword * @return Returns a reference to this object so that method calls can be chained together. */ public ControlMappingSource withSourceKeyword(SourceKeyword sourceKeyword) { setSourceKeyword(sourceKeyword); return this; } /** *

* The frequency of evidence collection for the specified control mapping source. *

* * @param sourceFrequency * The frequency of evidence collection for the specified control mapping source. * @see SourceFrequency */ public void setSourceFrequency(String sourceFrequency) { this.sourceFrequency = sourceFrequency; } /** *

* The frequency of evidence collection for the specified control mapping source. *

* * @return The frequency of evidence collection for the specified control mapping source. * @see SourceFrequency */ public String getSourceFrequency() { return this.sourceFrequency; } /** *

* The frequency of evidence collection for the specified control mapping source. *

* * @param sourceFrequency * The frequency of evidence collection for the specified control mapping source. * @return Returns a reference to this object so that method calls can be chained together. * @see SourceFrequency */ public ControlMappingSource withSourceFrequency(String sourceFrequency) { setSourceFrequency(sourceFrequency); return this; } /** *

* The frequency of evidence collection for the specified control mapping source. *

* * @param sourceFrequency * The frequency of evidence collection for the specified control mapping source. * @return Returns a reference to this object so that method calls can be chained together. * @see SourceFrequency */ public ControlMappingSource withSourceFrequency(SourceFrequency sourceFrequency) { this.sourceFrequency = sourceFrequency.toString(); return this; } /** *

* The instructions for troubleshooting the specified control. *

* * @param troubleshootingText * The instructions for troubleshooting the specified control. */ public void setTroubleshootingText(String troubleshootingText) { this.troubleshootingText = troubleshootingText; } /** *

* The instructions for troubleshooting the specified control. *

* * @return The instructions for troubleshooting the specified control. */ public String getTroubleshootingText() { return this.troubleshootingText; } /** *

* The instructions for troubleshooting the specified control. *

* * @param troubleshootingText * The instructions for troubleshooting the specified control. * @return Returns a reference to this object so that method calls can be chained together. */ public ControlMappingSource withTroubleshootingText(String troubleshootingText) { setTroubleshootingText(troubleshootingText); 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 (getSourceId() != null) sb.append("SourceId: ").append(getSourceId()).append(","); if (getSourceName() != null) sb.append("SourceName: ").append(getSourceName()).append(","); if (getSourceDescription() != null) sb.append("SourceDescription: ").append(getSourceDescription()).append(","); if (getSourceSetUpOption() != null) sb.append("SourceSetUpOption: ").append(getSourceSetUpOption()).append(","); if (getSourceType() != null) sb.append("SourceType: ").append(getSourceType()).append(","); if (getSourceKeyword() != null) sb.append("SourceKeyword: ").append(getSourceKeyword()).append(","); if (getSourceFrequency() != null) sb.append("SourceFrequency: ").append(getSourceFrequency()).append(","); if (getTroubleshootingText() != null) sb.append("TroubleshootingText: ").append(getTroubleshootingText()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ControlMappingSource == false) return false; ControlMappingSource other = (ControlMappingSource) obj; if (other.getSourceId() == null ^ this.getSourceId() == null) return false; if (other.getSourceId() != null && other.getSourceId().equals(this.getSourceId()) == false) return false; if (other.getSourceName() == null ^ this.getSourceName() == null) return false; if (other.getSourceName() != null && other.getSourceName().equals(this.getSourceName()) == false) return false; if (other.getSourceDescription() == null ^ this.getSourceDescription() == null) return false; if (other.getSourceDescription() != null && other.getSourceDescription().equals(this.getSourceDescription()) == false) return false; if (other.getSourceSetUpOption() == null ^ this.getSourceSetUpOption() == null) return false; if (other.getSourceSetUpOption() != null && other.getSourceSetUpOption().equals(this.getSourceSetUpOption()) == false) return false; if (other.getSourceType() == null ^ this.getSourceType() == null) return false; if (other.getSourceType() != null && other.getSourceType().equals(this.getSourceType()) == false) return false; if (other.getSourceKeyword() == null ^ this.getSourceKeyword() == null) return false; if (other.getSourceKeyword() != null && other.getSourceKeyword().equals(this.getSourceKeyword()) == false) return false; if (other.getSourceFrequency() == null ^ this.getSourceFrequency() == null) return false; if (other.getSourceFrequency() != null && other.getSourceFrequency().equals(this.getSourceFrequency()) == false) return false; if (other.getTroubleshootingText() == null ^ this.getTroubleshootingText() == null) return false; if (other.getTroubleshootingText() != null && other.getTroubleshootingText().equals(this.getTroubleshootingText()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSourceId() == null) ? 0 : getSourceId().hashCode()); hashCode = prime * hashCode + ((getSourceName() == null) ? 0 : getSourceName().hashCode()); hashCode = prime * hashCode + ((getSourceDescription() == null) ? 0 : getSourceDescription().hashCode()); hashCode = prime * hashCode + ((getSourceSetUpOption() == null) ? 0 : getSourceSetUpOption().hashCode()); hashCode = prime * hashCode + ((getSourceType() == null) ? 0 : getSourceType().hashCode()); hashCode = prime * hashCode + ((getSourceKeyword() == null) ? 0 : getSourceKeyword().hashCode()); hashCode = prime * hashCode + ((getSourceFrequency() == null) ? 0 : getSourceFrequency().hashCode()); hashCode = prime * hashCode + ((getTroubleshootingText() == null) ? 0 : getTroubleshootingText().hashCode()); return hashCode; } @Override public ControlMappingSource clone() { try { return (ControlMappingSource) 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.ControlMappingSourceMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy