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

com.amazonaws.services.inspector2.model.AutoEnable Maven / Gradle / Ivy

Go to download

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

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

/**
 * 

* Represents which scan types are automatically enabled for new members of your Amazon Inspector organization. *

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

* Represents whether Amazon EC2 scans are automatically enabled for new members of your Amazon Inspector * organization. *

*/ private Boolean ec2; /** *

* Represents whether Amazon ECR scans are automatically enabled for new members of your Amazon Inspector * organization. *

*/ private Boolean ecr; /** *

* Represents whether Amazon Web Services Lambda standard scans are automatically enabled for new members of your * Amazon Inspector organization. *

*/ private Boolean lambda; /** *

* Represents whether Lambda code scans are automatically enabled for new members of your Amazon Inspector * organization. * *

     *  </p> 
     * 
*/ private Boolean lambdaCode; /** *

* Represents whether Amazon EC2 scans are automatically enabled for new members of your Amazon Inspector * organization. *

* * @param ec2 * Represents whether Amazon EC2 scans are automatically enabled for new members of your Amazon Inspector * organization. */ public void setEc2(Boolean ec2) { this.ec2 = ec2; } /** *

* Represents whether Amazon EC2 scans are automatically enabled for new members of your Amazon Inspector * organization. *

* * @return Represents whether Amazon EC2 scans are automatically enabled for new members of your Amazon Inspector * organization. */ public Boolean getEc2() { return this.ec2; } /** *

* Represents whether Amazon EC2 scans are automatically enabled for new members of your Amazon Inspector * organization. *

* * @param ec2 * Represents whether Amazon EC2 scans are automatically enabled for new members of your Amazon Inspector * organization. * @return Returns a reference to this object so that method calls can be chained together. */ public AutoEnable withEc2(Boolean ec2) { setEc2(ec2); return this; } /** *

* Represents whether Amazon EC2 scans are automatically enabled for new members of your Amazon Inspector * organization. *

* * @return Represents whether Amazon EC2 scans are automatically enabled for new members of your Amazon Inspector * organization. */ public Boolean isEc2() { return this.ec2; } /** *

* Represents whether Amazon ECR scans are automatically enabled for new members of your Amazon Inspector * organization. *

* * @param ecr * Represents whether Amazon ECR scans are automatically enabled for new members of your Amazon Inspector * organization. */ public void setEcr(Boolean ecr) { this.ecr = ecr; } /** *

* Represents whether Amazon ECR scans are automatically enabled for new members of your Amazon Inspector * organization. *

* * @return Represents whether Amazon ECR scans are automatically enabled for new members of your Amazon Inspector * organization. */ public Boolean getEcr() { return this.ecr; } /** *

* Represents whether Amazon ECR scans are automatically enabled for new members of your Amazon Inspector * organization. *

* * @param ecr * Represents whether Amazon ECR scans are automatically enabled for new members of your Amazon Inspector * organization. * @return Returns a reference to this object so that method calls can be chained together. */ public AutoEnable withEcr(Boolean ecr) { setEcr(ecr); return this; } /** *

* Represents whether Amazon ECR scans are automatically enabled for new members of your Amazon Inspector * organization. *

* * @return Represents whether Amazon ECR scans are automatically enabled for new members of your Amazon Inspector * organization. */ public Boolean isEcr() { return this.ecr; } /** *

* Represents whether Amazon Web Services Lambda standard scans are automatically enabled for new members of your * Amazon Inspector organization. *

* * @param lambda * Represents whether Amazon Web Services Lambda standard scans are automatically enabled for new members of * your Amazon Inspector organization. */ public void setLambda(Boolean lambda) { this.lambda = lambda; } /** *

* Represents whether Amazon Web Services Lambda standard scans are automatically enabled for new members of your * Amazon Inspector organization. *

* * @return Represents whether Amazon Web Services Lambda standard scans are automatically enabled for new members of * your Amazon Inspector organization. */ public Boolean getLambda() { return this.lambda; } /** *

* Represents whether Amazon Web Services Lambda standard scans are automatically enabled for new members of your * Amazon Inspector organization. *

* * @param lambda * Represents whether Amazon Web Services Lambda standard scans are automatically enabled for new members of * your Amazon Inspector organization. * @return Returns a reference to this object so that method calls can be chained together. */ public AutoEnable withLambda(Boolean lambda) { setLambda(lambda); return this; } /** *

* Represents whether Amazon Web Services Lambda standard scans are automatically enabled for new members of your * Amazon Inspector organization. *

* * @return Represents whether Amazon Web Services Lambda standard scans are automatically enabled for new members of * your Amazon Inspector organization. */ public Boolean isLambda() { return this.lambda; } /** *

* Represents whether Lambda code scans are automatically enabled for new members of your Amazon Inspector * organization. * *

     *  </p> 
     * 
* * @param lambdaCode * Represents whether Lambda code scans are automatically enabled for new members of your Amazon Inspector * organization. * *
     * 
     *         </p> 
     */

    public void setLambdaCode(Boolean lambdaCode) {
        this.lambdaCode = lambdaCode;
    }

    /**
     * 

* Represents whether Lambda code scans are automatically enabled for new members of your Amazon Inspector * organization. * *

     *  </p> 
     * 
* * @return Represents whether Lambda code scans are automatically enabled for new members of your Amazon Inspector * organization. * *
     * 
     *          </p> 
     */

    public Boolean getLambdaCode() {
        return this.lambdaCode;
    }

    /**
     * 

* Represents whether Lambda code scans are automatically enabled for new members of your Amazon Inspector * organization. * *

     *  </p> 
     * 
* * @param lambdaCode * Represents whether Lambda code scans are automatically enabled for new members of your Amazon Inspector * organization. * *
     * 
     *         </p>  @return Returns a reference to this object so that method calls can be chained
     *        together.
     */

    public AutoEnable withLambdaCode(Boolean lambdaCode) {
        setLambdaCode(lambdaCode);
        return this;
    }

    /**
     * 

* Represents whether Lambda code scans are automatically enabled for new members of your Amazon Inspector * organization. * *

     *  </p> 
     * 
* * @return Represents whether Lambda code scans are automatically enabled for new members of your Amazon Inspector * organization. * *
     * 
     *          </p> 
     */

    public Boolean isLambdaCode() {
        return this.lambdaCode;
    }

    /**
     * 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 (getEc2() != null)
            sb.append("Ec2: ").append(getEc2()).append(",");
        if (getEcr() != null)
            sb.append("Ecr: ").append(getEcr()).append(",");
        if (getLambda() != null)
            sb.append("Lambda: ").append(getLambda()).append(",");
        if (getLambdaCode() != null)
            sb.append("LambdaCode: ").append(getLambdaCode());
        sb.append("}");
        return sb.toString();
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;

        if (obj instanceof AutoEnable == false)
            return false;
        AutoEnable other = (AutoEnable) obj;
        if (other.getEc2() == null ^ this.getEc2() == null)
            return false;
        if (other.getEc2() != null && other.getEc2().equals(this.getEc2()) == false)
            return false;
        if (other.getEcr() == null ^ this.getEcr() == null)
            return false;
        if (other.getEcr() != null && other.getEcr().equals(this.getEcr()) == false)
            return false;
        if (other.getLambda() == null ^ this.getLambda() == null)
            return false;
        if (other.getLambda() != null && other.getLambda().equals(this.getLambda()) == false)
            return false;
        if (other.getLambdaCode() == null ^ this.getLambdaCode() == null)
            return false;
        if (other.getLambdaCode() != null && other.getLambdaCode().equals(this.getLambdaCode()) == false)
            return false;
        return true;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;

        hashCode = prime * hashCode + ((getEc2() == null) ? 0 : getEc2().hashCode());
        hashCode = prime * hashCode + ((getEcr() == null) ? 0 : getEcr().hashCode());
        hashCode = prime * hashCode + ((getLambda() == null) ? 0 : getLambda().hashCode());
        hashCode = prime * hashCode + ((getLambdaCode() == null) ? 0 : getLambdaCode().hashCode());
        return hashCode;
    }

    @Override
    public AutoEnable clone() {
        try {
            return (AutoEnable) 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.inspector2.model.transform.AutoEnableMarshaller.getInstance().marshall(this, protocolMarshaller);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy