/* * 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.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 CreateRepositoryRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The Amazon Resource Name (ARN) of your AWS CodeStar connection that connects Proton to your repository provider * account. For more information, see Setting up for Proton * in the Proton User Guide. *
*/ private String connectionArn; /** ** The ARN of your customer Amazon Web Services Key Management Service (Amazon Web Services KMS) key. *
*/ private String encryptionKey; /** *
* The repository name (for example, myrepos/myrepo
).
*
* The repository provider. *
*/ private String provider; /** ** An optional list of metadata items that you can associate with the Proton repository. A tag is a key-value pair. *
** For more information, see Proton * resources and tagging in the Proton User Guide. *
*/ private java.util.List* The Amazon Resource Name (ARN) of your AWS CodeStar connection that connects Proton to your repository provider * account. For more information, see Setting up for Proton * in the Proton User Guide. *
* * @param connectionArn * The Amazon Resource Name (ARN) of your AWS CodeStar connection that connects Proton to your repository * provider account. For more information, see Setting up for * Proton in the Proton User Guide. */ public void setConnectionArn(String connectionArn) { this.connectionArn = connectionArn; } /** ** The Amazon Resource Name (ARN) of your AWS CodeStar connection that connects Proton to your repository provider * account. For more information, see Setting up for Proton * in the Proton User Guide. *
* * @return The Amazon Resource Name (ARN) of your AWS CodeStar connection that connects Proton to your repository * provider account. For more information, see Setting up for * Proton in the Proton User Guide. */ public String getConnectionArn() { return this.connectionArn; } /** ** The Amazon Resource Name (ARN) of your AWS CodeStar connection that connects Proton to your repository provider * account. For more information, see Setting up for Proton * in the Proton User Guide. *
* * @param connectionArn * The Amazon Resource Name (ARN) of your AWS CodeStar connection that connects Proton to your repository * provider account. For more information, see Setting up for * Proton in the Proton User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateRepositoryRequest withConnectionArn(String connectionArn) { setConnectionArn(connectionArn); return this; } /** ** The ARN of your customer Amazon Web Services Key Management Service (Amazon Web Services KMS) key. *
* * @param encryptionKey * The ARN of your customer Amazon Web Services Key Management Service (Amazon Web Services KMS) key. */ public void setEncryptionKey(String encryptionKey) { this.encryptionKey = encryptionKey; } /** ** The ARN of your customer Amazon Web Services Key Management Service (Amazon Web Services KMS) key. *
* * @return The ARN of your customer Amazon Web Services Key Management Service (Amazon Web Services KMS) key. */ public String getEncryptionKey() { return this.encryptionKey; } /** ** The ARN of your customer Amazon Web Services Key Management Service (Amazon Web Services KMS) key. *
* * @param encryptionKey * The ARN of your customer Amazon Web Services Key Management Service (Amazon Web Services KMS) key. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateRepositoryRequest withEncryptionKey(String encryptionKey) { setEncryptionKey(encryptionKey); return this; } /** *
* The repository name (for example, myrepos/myrepo
).
*
myrepos/myrepo
).
*/
public void setName(String name) {
this.name = name;
}
/**
*
* The repository name (for example, myrepos/myrepo
).
*
myrepos/myrepo
).
*/
public String getName() {
return this.name;
}
/**
*
* The repository name (for example, myrepos/myrepo
).
*
myrepos/myrepo
).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateRepositoryRequest withName(String name) {
setName(name);
return this;
}
/**
* * The repository provider. *
* * @param provider * The repository provider. * @see RepositoryProvider */ public void setProvider(String provider) { this.provider = provider; } /** ** The repository provider. *
* * @return The repository provider. * @see RepositoryProvider */ public String getProvider() { return this.provider; } /** ** The repository provider. *
* * @param provider * The repository provider. * @return Returns a reference to this object so that method calls can be chained together. * @see RepositoryProvider */ public CreateRepositoryRequest withProvider(String provider) { setProvider(provider); return this; } /** ** The repository provider. *
* * @param provider * The repository provider. * @return Returns a reference to this object so that method calls can be chained together. * @see RepositoryProvider */ public CreateRepositoryRequest withProvider(RepositoryProvider provider) { this.provider = provider.toString(); return this; } /** ** An optional list of metadata items that you can associate with the Proton repository. A tag is a key-value pair. *
** For more information, see Proton * resources and tagging in the Proton User Guide. *
* * @return An optional list of metadata items that you can associate with the Proton repository. A tag is a * key-value pair. *
* For more information, see Proton resources and
* tagging in the Proton User Guide.
*/
public java.util.List
* An optional list of metadata items that you can associate with the Proton repository. A tag is a key-value pair.
*
* For more information, see Proton
* resources and tagging in the Proton User Guide.
*
* For more information, see Proton resources and tagging
* in the Proton User Guide.
*/
public void setTags(java.util.Collection
* An optional list of metadata items that you can associate with the Proton repository. A tag is a key-value pair.
*
* For more information, see Proton
* resources and tagging in the Proton User Guide.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the
* existing values.
*
* For more information, see Proton resources and tagging
* in the Proton User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateRepositoryRequest withTags(Tag... tags) {
if (this.tags == null) {
setTags(new java.util.ArrayList
* An optional list of metadata items that you can associate with the Proton repository. A tag is a key-value pair.
*
* For more information, see Proton
* resources and tagging in the Proton User Guide.
*
* For more information, see Proton resources and tagging
* in the Proton User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateRepositoryRequest withTags(java.util.Collection