
com.amazonaws.services.proton.model.UpdateAccountSettingsRequest 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.AmazonWebServiceRequest;
/**
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class UpdateAccountSettingsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* Set to true
to remove a configured pipeline repository from the account settings. Don't set this
* field if you are updating the configured pipeline repository.
*
*/
private Boolean deletePipelineProvisioningRepository;
/**
*
* The Amazon Resource Name (ARN) of the service role you want to use for provisioning pipelines. Proton assumes
* this role for CodeBuild-based provisioning.
*
*/
private String pipelineCodebuildRoleArn;
/**
*
* A linked repository for pipeline provisioning. Specify it 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.
*
*
* To remove a previously configured repository, set deletePipelineProvisioningRepository
to
* true
, and don't set pipelineProvisioningRepository
.
*
*/
private RepositoryBranchInput 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.
*
*
* To remove a previously configured ARN, specify an empty string.
*
*/
private String pipelineServiceRoleArn;
/**
*
* Set to true
to remove a configured pipeline repository from the account settings. Don't set this
* field if you are updating the configured pipeline repository.
*
*
* @param deletePipelineProvisioningRepository
* Set to true
to remove a configured pipeline repository from the account settings. Don't set
* this field if you are updating the configured pipeline repository.
*/
public void setDeletePipelineProvisioningRepository(Boolean deletePipelineProvisioningRepository) {
this.deletePipelineProvisioningRepository = deletePipelineProvisioningRepository;
}
/**
*
* Set to true
to remove a configured pipeline repository from the account settings. Don't set this
* field if you are updating the configured pipeline repository.
*
*
* @return Set to true
to remove a configured pipeline repository from the account settings. Don't set
* this field if you are updating the configured pipeline repository.
*/
public Boolean getDeletePipelineProvisioningRepository() {
return this.deletePipelineProvisioningRepository;
}
/**
*
* Set to true
to remove a configured pipeline repository from the account settings. Don't set this
* field if you are updating the configured pipeline repository.
*
*
* @param deletePipelineProvisioningRepository
* Set to true
to remove a configured pipeline repository from the account settings. Don't set
* this field if you are updating the configured pipeline repository.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateAccountSettingsRequest withDeletePipelineProvisioningRepository(Boolean deletePipelineProvisioningRepository) {
setDeletePipelineProvisioningRepository(deletePipelineProvisioningRepository);
return this;
}
/**
*
* Set to true
to remove a configured pipeline repository from the account settings. Don't set this
* field if you are updating the configured pipeline repository.
*
*
* @return Set to true
to remove a configured pipeline repository from the account settings. Don't set
* this field if you are updating the configured pipeline repository.
*/
public Boolean isDeletePipelineProvisioningRepository() {
return this.deletePipelineProvisioningRepository;
}
/**
*
* The Amazon Resource Name (ARN) of the service role you want to use for provisioning pipelines. Proton assumes
* this role for CodeBuild-based provisioning.
*
*
* @param pipelineCodebuildRoleArn
* The Amazon Resource Name (ARN) of the service role you want to use 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 you want to use for provisioning pipelines. Proton assumes
* this role for CodeBuild-based provisioning.
*
*
* @return The Amazon Resource Name (ARN) of the service role you want to use 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 you want to use for provisioning pipelines. Proton assumes
* this role for CodeBuild-based provisioning.
*
*
* @param pipelineCodebuildRoleArn
* The Amazon Resource Name (ARN) of the service role you want to use 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 UpdateAccountSettingsRequest withPipelineCodebuildRoleArn(String pipelineCodebuildRoleArn) {
setPipelineCodebuildRoleArn(pipelineCodebuildRoleArn);
return this;
}
/**
*
* A linked repository for pipeline provisioning. Specify it 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.
*
*
* To remove a previously configured repository, set deletePipelineProvisioningRepository
to
* true
, and don't set pipelineProvisioningRepository
.
*
*
* @param pipelineProvisioningRepository
* A linked repository for pipeline provisioning. Specify it 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.
*
* To remove a previously configured repository, set deletePipelineProvisioningRepository
to
* true
, and don't set pipelineProvisioningRepository
.
*/
public void setPipelineProvisioningRepository(RepositoryBranchInput pipelineProvisioningRepository) {
this.pipelineProvisioningRepository = pipelineProvisioningRepository;
}
/**
*
* A linked repository for pipeline provisioning. Specify it 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.
*
*
* To remove a previously configured repository, set deletePipelineProvisioningRepository
to
* true
, and don't set pipelineProvisioningRepository
.
*
*
* @return A linked repository for pipeline provisioning. Specify it 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.
*
* To remove a previously configured repository, set deletePipelineProvisioningRepository
to
* true
, and don't set pipelineProvisioningRepository
.
*/
public RepositoryBranchInput getPipelineProvisioningRepository() {
return this.pipelineProvisioningRepository;
}
/**
*
* A linked repository for pipeline provisioning. Specify it 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.
*
*
* To remove a previously configured repository, set deletePipelineProvisioningRepository
to
* true
, and don't set pipelineProvisioningRepository
.
*
*
* @param pipelineProvisioningRepository
* A linked repository for pipeline provisioning. Specify it 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.
*
* To remove a previously configured repository, set deletePipelineProvisioningRepository
to
* true
, and don't set pipelineProvisioningRepository
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateAccountSettingsRequest withPipelineProvisioningRepository(RepositoryBranchInput 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.
*
*
* To remove a previously configured ARN, specify an empty string.
*
*
* @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.
*
* To remove a previously configured ARN, specify an empty string.
*/
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.
*
*
* To remove a previously configured ARN, specify an empty string.
*
*
* @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.
*
* To remove a previously configured ARN, specify an empty string.
*/
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.
*
*
* To remove a previously configured ARN, specify an empty string.
*
*
* @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.
*
* To remove a previously configured ARN, specify an empty string.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateAccountSettingsRequest 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 (getDeletePipelineProvisioningRepository() != null)
sb.append("DeletePipelineProvisioningRepository: ").append(getDeletePipelineProvisioningRepository()).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 UpdateAccountSettingsRequest == false)
return false;
UpdateAccountSettingsRequest other = (UpdateAccountSettingsRequest) obj;
if (other.getDeletePipelineProvisioningRepository() == null ^ this.getDeletePipelineProvisioningRepository() == null)
return false;
if (other.getDeletePipelineProvisioningRepository() != null
&& other.getDeletePipelineProvisioningRepository().equals(this.getDeletePipelineProvisioningRepository()) == false)
return false;
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 + ((getDeletePipelineProvisioningRepository() == null) ? 0 : getDeletePipelineProvisioningRepository().hashCode());
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 UpdateAccountSettingsRequest clone() {
return (UpdateAccountSettingsRequest) super.clone();
}
}