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

The 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 data source that determines where Audit Manager collects evidence from 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 source. *

*/ private String sourceId; /** *

* The name of the source. *

*/ private String sourceName; /** *

* The description of the source. *

*/ private String sourceDescription; /** *

* The setup option for the data source. This option reflects if the evidence collection method is automated or * manual. If you don’t provide a value for sourceSetUpOption, Audit Manager automatically infers and * populates the correct value based on the sourceType that you specify. *

*/ private String sourceSetUpOption; /** *

* Specifies which type of data source is used to collect evidence. *

*
    *
  • *

    * The source can be an individual data source type, such as AWS_Cloudtrail, AWS_Config, * AWS_Security_Hub, AWS_API_Call, or MANUAL. *

    *
  • *
  • *

    * The source can also be a managed grouping of data sources, such as a Core_Control or a * Common_Control. *

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

* Specifies how often evidence is collected from the control mapping source. *

*/ private String sourceFrequency; /** *

* The instructions for troubleshooting the control. *

*/ private String troubleshootingText; /** *

* The unique identifier for the source. *

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

* The unique identifier for the source. *

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

* The unique identifier for the source. *

* * @param sourceId * The unique identifier for the 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 source. *

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

* The name of the source. *

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

* The name of the source. *

* * @param sourceName * The name of the 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 source. *

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

* The description of the source. *

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

* The description of the source. *

* * @param sourceDescription * The description of the 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. This option reflects if the evidence collection method is automated or * manual. If you don’t provide a value for sourceSetUpOption, Audit Manager automatically infers and * populates the correct value based on the sourceType that you specify. *

* * @param sourceSetUpOption * The setup option for the data source. This option reflects if the evidence collection method is automated * or manual. If you don’t provide a value for sourceSetUpOption, Audit Manager automatically * infers and populates the correct value based on the sourceType that you specify. * @see SourceSetUpOption */ public void setSourceSetUpOption(String sourceSetUpOption) { this.sourceSetUpOption = sourceSetUpOption; } /** *

* The setup option for the data source. This option reflects if the evidence collection method is automated or * manual. If you don’t provide a value for sourceSetUpOption, Audit Manager automatically infers and * populates the correct value based on the sourceType that you specify. *

* * @return The setup option for the data source. This option reflects if the evidence collection method is automated * or manual. If you don’t provide a value for sourceSetUpOption, Audit Manager automatically * infers and populates the correct value based on the sourceType that you specify. * @see SourceSetUpOption */ public String getSourceSetUpOption() { return this.sourceSetUpOption; } /** *

* The setup option for the data source. This option reflects if the evidence collection method is automated or * manual. If you don’t provide a value for sourceSetUpOption, Audit Manager automatically infers and * populates the correct value based on the sourceType that you specify. *

* * @param sourceSetUpOption * The setup option for the data source. This option reflects if the evidence collection method is automated * or manual. If you don’t provide a value for sourceSetUpOption, Audit Manager automatically * infers and populates the correct value based on the sourceType that you specify. * @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. This option reflects if the evidence collection method is automated or * manual. If you don’t provide a value for sourceSetUpOption, Audit Manager automatically infers and * populates the correct value based on the sourceType that you specify. *

* * @param sourceSetUpOption * The setup option for the data source. This option reflects if the evidence collection method is automated * or manual. If you don’t provide a value for sourceSetUpOption, Audit Manager automatically * infers and populates the correct value based on the sourceType that you specify. * @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 which type of data source is used to collect evidence. *

*
    *
  • *

    * The source can be an individual data source type, such as AWS_Cloudtrail, AWS_Config, * AWS_Security_Hub, AWS_API_Call, or MANUAL. *

    *
  • *
  • *

    * The source can also be a managed grouping of data sources, such as a Core_Control or a * Common_Control. *

    *
  • *
* * @param sourceType * Specifies which type of data source is used to collect evidence.

*
    *
  • *

    * The source can be an individual data source type, such as AWS_Cloudtrail, * AWS_Config, AWS_Security_Hub, AWS_API_Call, or MANUAL. *

    *
  • *
  • *

    * The source can also be a managed grouping of data sources, such as a Core_Control or a * Common_Control. *

    *
  • * @see SourceType */ public void setSourceType(String sourceType) { this.sourceType = sourceType; } /** *

    * Specifies which type of data source is used to collect evidence. *

    *
      *
    • *

      * The source can be an individual data source type, such as AWS_Cloudtrail, AWS_Config, * AWS_Security_Hub, AWS_API_Call, or MANUAL. *

      *
    • *
    • *

      * The source can also be a managed grouping of data sources, such as a Core_Control or a * Common_Control. *

      *
    • *
    * * @return Specifies which type of data source is used to collect evidence.

    *
      *
    • *

      * The source can be an individual data source type, such as AWS_Cloudtrail, * AWS_Config, AWS_Security_Hub, AWS_API_Call, or MANUAL * . *

      *
    • *
    • *

      * The source can also be a managed grouping of data sources, such as a Core_Control or a * Common_Control. *

      *
    • * @see SourceType */ public String getSourceType() { return this.sourceType; } /** *

      * Specifies which type of data source is used to collect evidence. *

      *
        *
      • *

        * The source can be an individual data source type, such as AWS_Cloudtrail, AWS_Config, * AWS_Security_Hub, AWS_API_Call, or MANUAL. *

        *
      • *
      • *

        * The source can also be a managed grouping of data sources, such as a Core_Control or a * Common_Control. *

        *
      • *
      * * @param sourceType * Specifies which type of data source is used to collect evidence.

      *
        *
      • *

        * The source can be an individual data source type, such as AWS_Cloudtrail, * AWS_Config, AWS_Security_Hub, AWS_API_Call, or MANUAL. *

        *
      • *
      • *

        * The source can also be a managed grouping of data sources, such as a Core_Control or a * Common_Control. *

        *
      • * @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 which type of data source is used to collect evidence. *

        *
          *
        • *

          * The source can be an individual data source type, such as AWS_Cloudtrail, AWS_Config, * AWS_Security_Hub, AWS_API_Call, or MANUAL. *

          *
        • *
        • *

          * The source can also be a managed grouping of data sources, such as a Core_Control or a * Common_Control. *

          *
        • *
        * * @param sourceType * Specifies which type of data source is used to collect evidence.

        *
          *
        • *

          * The source can be an individual data source type, such as AWS_Cloudtrail, * AWS_Config, AWS_Security_Hub, AWS_API_Call, or MANUAL. *

          *
        • *
        • *

          * The source can also be a managed grouping of data sources, such as a Core_Control or a * Common_Control. *

          *
        • * @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; } /** *

          * Specifies how often evidence is collected from the control mapping source. *

          * * @param sourceFrequency * Specifies how often evidence is collected from the control mapping source. * @see SourceFrequency */ public void setSourceFrequency(String sourceFrequency) { this.sourceFrequency = sourceFrequency; } /** *

          * Specifies how often evidence is collected from the control mapping source. *

          * * @return Specifies how often evidence is collected from the control mapping source. * @see SourceFrequency */ public String getSourceFrequency() { return this.sourceFrequency; } /** *

          * Specifies how often evidence is collected from the control mapping source. *

          * * @param sourceFrequency * Specifies how often evidence is collected from the 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; } /** *

          * Specifies how often evidence is collected from the control mapping source. *

          * * @param sourceFrequency * Specifies how often evidence is collected from the 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 control. *

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

          * The instructions for troubleshooting the control. *

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

          * The instructions for troubleshooting the control. *

          * * @param troubleshootingText * The instructions for troubleshooting the 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("***Sensitive Data Redacted***"); 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