com.amazonaws.services.guardduty.model.DescribeOrganizationConfigurationResult Maven / Gradle / Ivy
Show all versions of aws-java-sdk-guardduty Show documentation
/*
* Copyright 2015-2020 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.guardduty.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeOrganizationConfigurationResult extends com.amazonaws.AmazonWebServiceResult implements Serializable,
Cloneable {
/**
*
* Indicates whether GuardDuty is automatically enabled for accounts added to the organization.
*
*/
private Boolean autoEnable;
/**
*
* Indicates whether the maximum number of allowed member accounts are already associated with the delegated
* administrator master account.
*
*/
private Boolean memberAccountLimitReached;
/**
*
* An object that describes which data sources are enabled automatically for member accounts.
*
*/
private OrganizationDataSourceConfigurationsResult dataSources;
/**
*
* Indicates whether GuardDuty is automatically enabled for accounts added to the organization.
*
*
* @param autoEnable
* Indicates whether GuardDuty is automatically enabled for accounts added to the organization.
*/
public void setAutoEnable(Boolean autoEnable) {
this.autoEnable = autoEnable;
}
/**
*
* Indicates whether GuardDuty is automatically enabled for accounts added to the organization.
*
*
* @return Indicates whether GuardDuty is automatically enabled for accounts added to the organization.
*/
public Boolean getAutoEnable() {
return this.autoEnable;
}
/**
*
* Indicates whether GuardDuty is automatically enabled for accounts added to the organization.
*
*
* @param autoEnable
* Indicates whether GuardDuty is automatically enabled for accounts added to the organization.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeOrganizationConfigurationResult withAutoEnable(Boolean autoEnable) {
setAutoEnable(autoEnable);
return this;
}
/**
*
* Indicates whether GuardDuty is automatically enabled for accounts added to the organization.
*
*
* @return Indicates whether GuardDuty is automatically enabled for accounts added to the organization.
*/
public Boolean isAutoEnable() {
return this.autoEnable;
}
/**
*
* Indicates whether the maximum number of allowed member accounts are already associated with the delegated
* administrator master account.
*
*
* @param memberAccountLimitReached
* Indicates whether the maximum number of allowed member accounts are already associated with the delegated
* administrator master account.
*/
public void setMemberAccountLimitReached(Boolean memberAccountLimitReached) {
this.memberAccountLimitReached = memberAccountLimitReached;
}
/**
*
* Indicates whether the maximum number of allowed member accounts are already associated with the delegated
* administrator master account.
*
*
* @return Indicates whether the maximum number of allowed member accounts are already associated with the delegated
* administrator master account.
*/
public Boolean getMemberAccountLimitReached() {
return this.memberAccountLimitReached;
}
/**
*
* Indicates whether the maximum number of allowed member accounts are already associated with the delegated
* administrator master account.
*
*
* @param memberAccountLimitReached
* Indicates whether the maximum number of allowed member accounts are already associated with the delegated
* administrator master account.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeOrganizationConfigurationResult withMemberAccountLimitReached(Boolean memberAccountLimitReached) {
setMemberAccountLimitReached(memberAccountLimitReached);
return this;
}
/**
*
* Indicates whether the maximum number of allowed member accounts are already associated with the delegated
* administrator master account.
*
*
* @return Indicates whether the maximum number of allowed member accounts are already associated with the delegated
* administrator master account.
*/
public Boolean isMemberAccountLimitReached() {
return this.memberAccountLimitReached;
}
/**
*
* An object that describes which data sources are enabled automatically for member accounts.
*
*
* @param dataSources
* An object that describes which data sources are enabled automatically for member accounts.
*/
public void setDataSources(OrganizationDataSourceConfigurationsResult dataSources) {
this.dataSources = dataSources;
}
/**
*
* An object that describes which data sources are enabled automatically for member accounts.
*
*
* @return An object that describes which data sources are enabled automatically for member accounts.
*/
public OrganizationDataSourceConfigurationsResult getDataSources() {
return this.dataSources;
}
/**
*
* An object that describes which data sources are enabled automatically for member accounts.
*
*
* @param dataSources
* An object that describes which data sources are enabled automatically for member accounts.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeOrganizationConfigurationResult withDataSources(OrganizationDataSourceConfigurationsResult dataSources) {
setDataSources(dataSources);
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 (getAutoEnable() != null)
sb.append("AutoEnable: ").append(getAutoEnable()).append(",");
if (getMemberAccountLimitReached() != null)
sb.append("MemberAccountLimitReached: ").append(getMemberAccountLimitReached()).append(",");
if (getDataSources() != null)
sb.append("DataSources: ").append(getDataSources());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DescribeOrganizationConfigurationResult == false)
return false;
DescribeOrganizationConfigurationResult other = (DescribeOrganizationConfigurationResult) obj;
if (other.getAutoEnable() == null ^ this.getAutoEnable() == null)
return false;
if (other.getAutoEnable() != null && other.getAutoEnable().equals(this.getAutoEnable()) == false)
return false;
if (other.getMemberAccountLimitReached() == null ^ this.getMemberAccountLimitReached() == null)
return false;
if (other.getMemberAccountLimitReached() != null && other.getMemberAccountLimitReached().equals(this.getMemberAccountLimitReached()) == false)
return false;
if (other.getDataSources() == null ^ this.getDataSources() == null)
return false;
if (other.getDataSources() != null && other.getDataSources().equals(this.getDataSources()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getAutoEnable() == null) ? 0 : getAutoEnable().hashCode());
hashCode = prime * hashCode + ((getMemberAccountLimitReached() == null) ? 0 : getMemberAccountLimitReached().hashCode());
hashCode = prime * hashCode + ((getDataSources() == null) ? 0 : getDataSources().hashCode());
return hashCode;
}
@Override
public DescribeOrganizationConfigurationResult clone() {
try {
return (DescribeOrganizationConfigurationResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}