com.amazonaws.services.wellarchitected.model.GetGlobalSettingsResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-wellarchitected Show documentation
Show all versions of aws-java-sdk-wellarchitected Show documentation
The AWS Java SDK for AWS Well-Architected Tool module holds the client classes that are used for communicating with AWS Well-Architected Tool Service
/*
* 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.wellarchitected.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* @see AWS
* API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class GetGlobalSettingsResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* Amazon Web Services Organizations sharing status.
*
*/
private String organizationSharingStatus;
/**
*
* Discovery integration status.
*
*/
private String discoveryIntegrationStatus;
/**
*
* Jira configuration status.
*
*/
private AccountJiraConfigurationOutput jiraConfiguration;
/**
*
* Amazon Web Services Organizations sharing status.
*
*
* @param organizationSharingStatus
* Amazon Web Services Organizations sharing status.
* @see OrganizationSharingStatus
*/
public void setOrganizationSharingStatus(String organizationSharingStatus) {
this.organizationSharingStatus = organizationSharingStatus;
}
/**
*
* Amazon Web Services Organizations sharing status.
*
*
* @return Amazon Web Services Organizations sharing status.
* @see OrganizationSharingStatus
*/
public String getOrganizationSharingStatus() {
return this.organizationSharingStatus;
}
/**
*
* Amazon Web Services Organizations sharing status.
*
*
* @param organizationSharingStatus
* Amazon Web Services Organizations sharing status.
* @return Returns a reference to this object so that method calls can be chained together.
* @see OrganizationSharingStatus
*/
public GetGlobalSettingsResult withOrganizationSharingStatus(String organizationSharingStatus) {
setOrganizationSharingStatus(organizationSharingStatus);
return this;
}
/**
*
* Amazon Web Services Organizations sharing status.
*
*
* @param organizationSharingStatus
* Amazon Web Services Organizations sharing status.
* @return Returns a reference to this object so that method calls can be chained together.
* @see OrganizationSharingStatus
*/
public GetGlobalSettingsResult withOrganizationSharingStatus(OrganizationSharingStatus organizationSharingStatus) {
this.organizationSharingStatus = organizationSharingStatus.toString();
return this;
}
/**
*
* Discovery integration status.
*
*
* @param discoveryIntegrationStatus
* Discovery integration status.
* @see DiscoveryIntegrationStatus
*/
public void setDiscoveryIntegrationStatus(String discoveryIntegrationStatus) {
this.discoveryIntegrationStatus = discoveryIntegrationStatus;
}
/**
*
* Discovery integration status.
*
*
* @return Discovery integration status.
* @see DiscoveryIntegrationStatus
*/
public String getDiscoveryIntegrationStatus() {
return this.discoveryIntegrationStatus;
}
/**
*
* Discovery integration status.
*
*
* @param discoveryIntegrationStatus
* Discovery integration status.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DiscoveryIntegrationStatus
*/
public GetGlobalSettingsResult withDiscoveryIntegrationStatus(String discoveryIntegrationStatus) {
setDiscoveryIntegrationStatus(discoveryIntegrationStatus);
return this;
}
/**
*
* Discovery integration status.
*
*
* @param discoveryIntegrationStatus
* Discovery integration status.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DiscoveryIntegrationStatus
*/
public GetGlobalSettingsResult withDiscoveryIntegrationStatus(DiscoveryIntegrationStatus discoveryIntegrationStatus) {
this.discoveryIntegrationStatus = discoveryIntegrationStatus.toString();
return this;
}
/**
*
* Jira configuration status.
*
*
* @param jiraConfiguration
* Jira configuration status.
*/
public void setJiraConfiguration(AccountJiraConfigurationOutput jiraConfiguration) {
this.jiraConfiguration = jiraConfiguration;
}
/**
*
* Jira configuration status.
*
*
* @return Jira configuration status.
*/
public AccountJiraConfigurationOutput getJiraConfiguration() {
return this.jiraConfiguration;
}
/**
*
* Jira configuration status.
*
*
* @param jiraConfiguration
* Jira configuration status.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetGlobalSettingsResult withJiraConfiguration(AccountJiraConfigurationOutput jiraConfiguration) {
setJiraConfiguration(jiraConfiguration);
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 (getOrganizationSharingStatus() != null)
sb.append("OrganizationSharingStatus: ").append(getOrganizationSharingStatus()).append(",");
if (getDiscoveryIntegrationStatus() != null)
sb.append("DiscoveryIntegrationStatus: ").append(getDiscoveryIntegrationStatus()).append(",");
if (getJiraConfiguration() != null)
sb.append("JiraConfiguration: ").append(getJiraConfiguration());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof GetGlobalSettingsResult == false)
return false;
GetGlobalSettingsResult other = (GetGlobalSettingsResult) obj;
if (other.getOrganizationSharingStatus() == null ^ this.getOrganizationSharingStatus() == null)
return false;
if (other.getOrganizationSharingStatus() != null && other.getOrganizationSharingStatus().equals(this.getOrganizationSharingStatus()) == false)
return false;
if (other.getDiscoveryIntegrationStatus() == null ^ this.getDiscoveryIntegrationStatus() == null)
return false;
if (other.getDiscoveryIntegrationStatus() != null && other.getDiscoveryIntegrationStatus().equals(this.getDiscoveryIntegrationStatus()) == false)
return false;
if (other.getJiraConfiguration() == null ^ this.getJiraConfiguration() == null)
return false;
if (other.getJiraConfiguration() != null && other.getJiraConfiguration().equals(this.getJiraConfiguration()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getOrganizationSharingStatus() == null) ? 0 : getOrganizationSharingStatus().hashCode());
hashCode = prime * hashCode + ((getDiscoveryIntegrationStatus() == null) ? 0 : getDiscoveryIntegrationStatus().hashCode());
hashCode = prime * hashCode + ((getJiraConfiguration() == null) ? 0 : getJiraConfiguration().hashCode());
return hashCode;
}
@Override
public GetGlobalSettingsResult clone() {
try {
return (GetGlobalSettingsResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}