/* * Copyright 2018-2023 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.licensemanager.model; import java.io.Serializable; import javax.annotation.Generated; /** * * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class GetServiceSettingsResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable { /** *

* Regional S3 bucket path for storing reports, license trail event data, discovery data, and so on. *

*/ private String s3BucketArn; /** *

* SNS topic configured to receive notifications from License Manager. *

*/ private String snsTopicArn; /** *

* Indicates whether Organizations is integrated with License Manager for cross-account discovery. *

*/ private OrganizationConfiguration organizationConfiguration; /** *

* Indicates whether cross-account discovery is enabled. *

*/ private Boolean enableCrossAccountsDiscovery; /** *

* Amazon Resource Name (ARN) of the resource share. The License Manager management account provides member accounts * with access to this share. *

*/ private String licenseManagerResourceShareArn; /** *

* Regional S3 bucket path for storing reports, license trail event data, discovery data, and so on. *

* * @param s3BucketArn * Regional S3 bucket path for storing reports, license trail event data, discovery data, and so on. */ public void setS3BucketArn(String s3BucketArn) { this.s3BucketArn = s3BucketArn; } /** *

* Regional S3 bucket path for storing reports, license trail event data, discovery data, and so on. *

* * @return Regional S3 bucket path for storing reports, license trail event data, discovery data, and so on. */ public String getS3BucketArn() { return this.s3BucketArn; } /** *

* Regional S3 bucket path for storing reports, license trail event data, discovery data, and so on. *

* * @param s3BucketArn * Regional S3 bucket path for storing reports, license trail event data, discovery data, and so on. * @return Returns a reference to this object so that method calls can be chained together. */ public GetServiceSettingsResult withS3BucketArn(String s3BucketArn) { setS3BucketArn(s3BucketArn); return this; } /** *

* SNS topic configured to receive notifications from License Manager. *

* * @param snsTopicArn * SNS topic configured to receive notifications from License Manager. */ public void setSnsTopicArn(String snsTopicArn) { this.snsTopicArn = snsTopicArn; } /** *

* SNS topic configured to receive notifications from License Manager. *

* * @return SNS topic configured to receive notifications from License Manager. */ public String getSnsTopicArn() { return this.snsTopicArn; } /** *

* SNS topic configured to receive notifications from License Manager. *

* * @param snsTopicArn * SNS topic configured to receive notifications from License Manager. * @return Returns a reference to this object so that method calls can be chained together. */ public GetServiceSettingsResult withSnsTopicArn(String snsTopicArn) { setSnsTopicArn(snsTopicArn); return this; } /** *

* Indicates whether Organizations is integrated with License Manager for cross-account discovery. *

* * @param organizationConfiguration * Indicates whether Organizations is integrated with License Manager for cross-account discovery. */ public void setOrganizationConfiguration(OrganizationConfiguration organizationConfiguration) { this.organizationConfiguration = organizationConfiguration; } /** *

* Indicates whether Organizations is integrated with License Manager for cross-account discovery. *

* * @return Indicates whether Organizations is integrated with License Manager for cross-account discovery. */ public OrganizationConfiguration getOrganizationConfiguration() { return this.organizationConfiguration; } /** *

* Indicates whether Organizations is integrated with License Manager for cross-account discovery. *

* * @param organizationConfiguration * Indicates whether Organizations is integrated with License Manager for cross-account discovery. * @return Returns a reference to this object so that method calls can be chained together. */ public GetServiceSettingsResult withOrganizationConfiguration(OrganizationConfiguration organizationConfiguration) { setOrganizationConfiguration(organizationConfiguration); return this; } /** *

* Indicates whether cross-account discovery is enabled. *

* * @param enableCrossAccountsDiscovery * Indicates whether cross-account discovery is enabled. */ public void setEnableCrossAccountsDiscovery(Boolean enableCrossAccountsDiscovery) { this.enableCrossAccountsDiscovery = enableCrossAccountsDiscovery; } /** *

* Indicates whether cross-account discovery is enabled. *

* * @return Indicates whether cross-account discovery is enabled. */ public Boolean getEnableCrossAccountsDiscovery() { return this.enableCrossAccountsDiscovery; } /** *

* Indicates whether cross-account discovery is enabled. *

* * @param enableCrossAccountsDiscovery * Indicates whether cross-account discovery is enabled. * @return Returns a reference to this object so that method calls can be chained together. */ public GetServiceSettingsResult withEnableCrossAccountsDiscovery(Boolean enableCrossAccountsDiscovery) { setEnableCrossAccountsDiscovery(enableCrossAccountsDiscovery); return this; } /** *

* Indicates whether cross-account discovery is enabled. *

* * @return Indicates whether cross-account discovery is enabled. */ public Boolean isEnableCrossAccountsDiscovery() { return this.enableCrossAccountsDiscovery; } /** *

* Amazon Resource Name (ARN) of the resource share. The License Manager management account provides member accounts * with access to this share. *

* * @param licenseManagerResourceShareArn * Amazon Resource Name (ARN) of the resource share. The License Manager management account provides member * accounts with access to this share. */ public void setLicenseManagerResourceShareArn(String licenseManagerResourceShareArn) { this.licenseManagerResourceShareArn = licenseManagerResourceShareArn; } /** *

* Amazon Resource Name (ARN) of the resource share. The License Manager management account provides member accounts * with access to this share. *

* * @return Amazon Resource Name (ARN) of the resource share. The License Manager management account provides member * accounts with access to this share. */ public String getLicenseManagerResourceShareArn() { return this.licenseManagerResourceShareArn; } /** *

* Amazon Resource Name (ARN) of the resource share. The License Manager management account provides member accounts * with access to this share. *

* * @param licenseManagerResourceShareArn * Amazon Resource Name (ARN) of the resource share. The License Manager management account provides member * accounts with access to this share. * @return Returns a reference to this object so that method calls can be chained together. */ public GetServiceSettingsResult withLicenseManagerResourceShareArn(String licenseManagerResourceShareArn) { setLicenseManagerResourceShareArn(licenseManagerResourceShareArn); 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 (getS3BucketArn() != null) sb.append("S3BucketArn: ").append(getS3BucketArn()).append(","); if (getSnsTopicArn() != null) sb.append("SnsTopicArn: ").append(getSnsTopicArn()).append(","); if (getOrganizationConfiguration() != null) sb.append("OrganizationConfiguration: ").append(getOrganizationConfiguration()).append(","); if (getEnableCrossAccountsDiscovery() != null) sb.append("EnableCrossAccountsDiscovery: ").append(getEnableCrossAccountsDiscovery()).append(","); if (getLicenseManagerResourceShareArn() != null) sb.append("LicenseManagerResourceShareArn: ").append(getLicenseManagerResourceShareArn()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetServiceSettingsResult == false) return false; GetServiceSettingsResult other = (GetServiceSettingsResult) obj; if (other.getS3BucketArn() == null ^ this.getS3BucketArn() == null) return false; if (other.getS3BucketArn() != null && other.getS3BucketArn().equals(this.getS3BucketArn()) == false) return false; if (other.getSnsTopicArn() == null ^ this.getSnsTopicArn() == null) return false; if (other.getSnsTopicArn() != null && other.getSnsTopicArn().equals(this.getSnsTopicArn()) == false) return false; if (other.getOrganizationConfiguration() == null ^ this.getOrganizationConfiguration() == null) return false; if (other.getOrganizationConfiguration() != null && other.getOrganizationConfiguration().equals(this.getOrganizationConfiguration()) == false) return false; if (other.getEnableCrossAccountsDiscovery() == null ^ this.getEnableCrossAccountsDiscovery() == null) return false; if (other.getEnableCrossAccountsDiscovery() != null && other.getEnableCrossAccountsDiscovery().equals(this.getEnableCrossAccountsDiscovery()) == false) return false; if (other.getLicenseManagerResourceShareArn() == null ^ this.getLicenseManagerResourceShareArn() == null) return false; if (other.getLicenseManagerResourceShareArn() != null && other.getLicenseManagerResourceShareArn().equals(this.getLicenseManagerResourceShareArn()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getS3BucketArn() == null) ? 0 : getS3BucketArn().hashCode()); hashCode = prime * hashCode + ((getSnsTopicArn() == null) ? 0 : getSnsTopicArn().hashCode()); hashCode = prime * hashCode + ((getOrganizationConfiguration() == null) ? 0 : getOrganizationConfiguration().hashCode()); hashCode = prime * hashCode + ((getEnableCrossAccountsDiscovery() == null) ? 0 : getEnableCrossAccountsDiscovery().hashCode()); hashCode = prime * hashCode + ((getLicenseManagerResourceShareArn() == null) ? 0 : getLicenseManagerResourceShareArn().hashCode()); return hashCode; } @Override public GetServiceSettingsResult clone() { try { return (GetServiceSettingsResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }