
com.amazonaws.services.proton.model.AccountSettings Maven / Gradle / Ivy
/*
* 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.proton.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* Proton settings that are used for multiple services in the Amazon Web Services account.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class AccountSettings implements Serializable, Cloneable, StructuredPojo {
/**
*
* The Amazon Resource Name (ARN) of the service role that Proton uses for provisioning pipelines. Proton assumes
* this role for CodeBuild-based provisioning.
*
*/
private String pipelineCodebuildRoleArn;
/**
*
* The linked repository for pipeline provisioning. Required if you have environments configured for self-managed
* provisioning with services that include pipelines. A linked repository is a repository that has been registered
* with Proton. For more information, see CreateRepository.
*
*/
private RepositoryBranch pipelineProvisioningRepository;
/**
*
* The Amazon Resource Name (ARN) of the service role you want to use for provisioning pipelines. Assumed by Proton
* for Amazon Web Services-managed provisioning, and by customer-owned automation for self-managed provisioning.
*
*/
private String pipelineServiceRoleArn;
/**
*
* The Amazon Resource Name (ARN) of the service role that Proton uses for provisioning pipelines. Proton assumes
* this role for CodeBuild-based provisioning.
*
*
* @param pipelineCodebuildRoleArn
* The Amazon Resource Name (ARN) of the service role that Proton uses for provisioning pipelines. Proton
* assumes this role for CodeBuild-based provisioning.
*/
public void setPipelineCodebuildRoleArn(String pipelineCodebuildRoleArn) {
this.pipelineCodebuildRoleArn = pipelineCodebuildRoleArn;
}
/**
*
* The Amazon Resource Name (ARN) of the service role that Proton uses for provisioning pipelines. Proton assumes
* this role for CodeBuild-based provisioning.
*
*
* @return The Amazon Resource Name (ARN) of the service role that Proton uses for provisioning pipelines. Proton
* assumes this role for CodeBuild-based provisioning.
*/
public String getPipelineCodebuildRoleArn() {
return this.pipelineCodebuildRoleArn;
}
/**
*
* The Amazon Resource Name (ARN) of the service role that Proton uses for provisioning pipelines. Proton assumes
* this role for CodeBuild-based provisioning.
*
*
* @param pipelineCodebuildRoleArn
* The Amazon Resource Name (ARN) of the service role that Proton uses for provisioning pipelines. Proton
* assumes this role for CodeBuild-based provisioning.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AccountSettings withPipelineCodebuildRoleArn(String pipelineCodebuildRoleArn) {
setPipelineCodebuildRoleArn(pipelineCodebuildRoleArn);
return this;
}
/**
*
* The linked repository for pipeline provisioning. Required if you have environments configured for self-managed
* provisioning with services that include pipelines. A linked repository is a repository that has been registered
* with Proton. For more information, see CreateRepository.
*
*
* @param pipelineProvisioningRepository
* The linked repository for pipeline provisioning. Required if you have environments configured for
* self-managed provisioning with services that include pipelines. A linked repository is a repository that
* has been registered with Proton. For more information, see CreateRepository.
*/
public void setPipelineProvisioningRepository(RepositoryBranch pipelineProvisioningRepository) {
this.pipelineProvisioningRepository = pipelineProvisioningRepository;
}
/**
*
* The linked repository for pipeline provisioning. Required if you have environments configured for self-managed
* provisioning with services that include pipelines. A linked repository is a repository that has been registered
* with Proton. For more information, see CreateRepository.
*
*
* @return The linked repository for pipeline provisioning. Required if you have environments configured for
* self-managed provisioning with services that include pipelines. A linked repository is a repository that
* has been registered with Proton. For more information, see CreateRepository.
*/
public RepositoryBranch getPipelineProvisioningRepository() {
return this.pipelineProvisioningRepository;
}
/**
*
* The linked repository for pipeline provisioning. Required if you have environments configured for self-managed
* provisioning with services that include pipelines. A linked repository is a repository that has been registered
* with Proton. For more information, see CreateRepository.
*
*
* @param pipelineProvisioningRepository
* The linked repository for pipeline provisioning. Required if you have environments configured for
* self-managed provisioning with services that include pipelines. A linked repository is a repository that
* has been registered with Proton. For more information, see CreateRepository.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AccountSettings withPipelineProvisioningRepository(RepositoryBranch pipelineProvisioningRepository) {
setPipelineProvisioningRepository(pipelineProvisioningRepository);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the service role you want to use for provisioning pipelines. Assumed by Proton
* for Amazon Web Services-managed provisioning, and by customer-owned automation for self-managed provisioning.
*
*
* @param pipelineServiceRoleArn
* The Amazon Resource Name (ARN) of the service role you want to use for provisioning pipelines. Assumed by
* Proton for Amazon Web Services-managed provisioning, and by customer-owned automation for self-managed
* provisioning.
*/
public void setPipelineServiceRoleArn(String pipelineServiceRoleArn) {
this.pipelineServiceRoleArn = pipelineServiceRoleArn;
}
/**
*
* The Amazon Resource Name (ARN) of the service role you want to use for provisioning pipelines. Assumed by Proton
* for Amazon Web Services-managed provisioning, and by customer-owned automation for self-managed provisioning.
*
*
* @return The Amazon Resource Name (ARN) of the service role you want to use for provisioning pipelines. Assumed by
* Proton for Amazon Web Services-managed provisioning, and by customer-owned automation for self-managed
* provisioning.
*/
public String getPipelineServiceRoleArn() {
return this.pipelineServiceRoleArn;
}
/**
*
* The Amazon Resource Name (ARN) of the service role you want to use for provisioning pipelines. Assumed by Proton
* for Amazon Web Services-managed provisioning, and by customer-owned automation for self-managed provisioning.
*
*
* @param pipelineServiceRoleArn
* The Amazon Resource Name (ARN) of the service role you want to use for provisioning pipelines. Assumed by
* Proton for Amazon Web Services-managed provisioning, and by customer-owned automation for self-managed
* provisioning.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AccountSettings withPipelineServiceRoleArn(String pipelineServiceRoleArn) {
setPipelineServiceRoleArn(pipelineServiceRoleArn);
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 (getPipelineCodebuildRoleArn() != null)
sb.append("PipelineCodebuildRoleArn: ").append(getPipelineCodebuildRoleArn()).append(",");
if (getPipelineProvisioningRepository() != null)
sb.append("PipelineProvisioningRepository: ").append(getPipelineProvisioningRepository()).append(",");
if (getPipelineServiceRoleArn() != null)
sb.append("PipelineServiceRoleArn: ").append(getPipelineServiceRoleArn());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof AccountSettings == false)
return false;
AccountSettings other = (AccountSettings) obj;
if (other.getPipelineCodebuildRoleArn() == null ^ this.getPipelineCodebuildRoleArn() == null)
return false;
if (other.getPipelineCodebuildRoleArn() != null && other.getPipelineCodebuildRoleArn().equals(this.getPipelineCodebuildRoleArn()) == false)
return false;
if (other.getPipelineProvisioningRepository() == null ^ this.getPipelineProvisioningRepository() == null)
return false;
if (other.getPipelineProvisioningRepository() != null
&& other.getPipelineProvisioningRepository().equals(this.getPipelineProvisioningRepository()) == false)
return false;
if (other.getPipelineServiceRoleArn() == null ^ this.getPipelineServiceRoleArn() == null)
return false;
if (other.getPipelineServiceRoleArn() != null && other.getPipelineServiceRoleArn().equals(this.getPipelineServiceRoleArn()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getPipelineCodebuildRoleArn() == null) ? 0 : getPipelineCodebuildRoleArn().hashCode());
hashCode = prime * hashCode + ((getPipelineProvisioningRepository() == null) ? 0 : getPipelineProvisioningRepository().hashCode());
hashCode = prime * hashCode + ((getPipelineServiceRoleArn() == null) ? 0 : getPipelineServiceRoleArn().hashCode());
return hashCode;
}
@Override
public AccountSettings clone() {
try {
return (AccountSettings) 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.proton.model.transform.AccountSettingsMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}