/* * 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 CreateServiceRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name of the code repository branch that holds the code that's deployed in Proton. Don't include this * parameter if your service template doesn't include a service pipeline. *
*/ private String branchName; /** ** A description of the Proton service. *
*/ private String description; /** ** The service name. *
*/ private String name; /** ** The Amazon Resource Name (ARN) of the repository connection. For more information, see Setting up an AWS CodeStar connection in the Proton User Guide. Don't include this parameter * if your service template doesn't include a service pipeline. *
*/ private String repositoryConnectionArn; /** ** The ID of the code repository. Don't include this parameter if your service template doesn't * include a service pipeline. *
*/ private String repositoryId; /** ** A link to a spec file that provides inputs as defined in the service template bundle schema file. The spec file * is in YAML format. Don’t include pipeline inputs in the spec if your service template doesn’t * include a service pipeline. For more information, see Create a service in the * Proton User Guide. *
*/ private String spec; /** ** An optional list of metadata items that you can associate with the Proton service. 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 major version of the service template that was used to create the service. *
*/ private String templateMajorVersion; /** ** The minor version of the service template that was used to create the service. *
*/ private String templateMinorVersion; /** ** The name of the service template that's used to create the service. *
*/ private String templateName; /** ** The name of the code repository branch that holds the code that's deployed in Proton. Don't include this * parameter if your service template doesn't include a service pipeline. *
* * @param branchName * The name of the code repository branch that holds the code that's deployed in Proton. Don't include * this parameter if your service template doesn't include a service pipeline. */ public void setBranchName(String branchName) { this.branchName = branchName; } /** ** The name of the code repository branch that holds the code that's deployed in Proton. Don't include this * parameter if your service template doesn't include a service pipeline. *
* * @return The name of the code repository branch that holds the code that's deployed in Proton. Don't * include this parameter if your service template doesn't include a service pipeline. */ public String getBranchName() { return this.branchName; } /** ** The name of the code repository branch that holds the code that's deployed in Proton. Don't include this * parameter if your service template doesn't include a service pipeline. *
* * @param branchName * The name of the code repository branch that holds the code that's deployed in Proton. Don't include * this parameter if your service template doesn't include a service pipeline. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateServiceRequest withBranchName(String branchName) { setBranchName(branchName); return this; } /** ** A description of the Proton service. *
* * @param description * A description of the Proton service. */ public void setDescription(String description) { this.description = description; } /** ** A description of the Proton service. *
* * @return A description of the Proton service. */ public String getDescription() { return this.description; } /** ** A description of the Proton service. *
* * @param description * A description of the Proton service. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateServiceRequest withDescription(String description) { setDescription(description); return this; } /** ** The service name. *
* * @param name * The service name. */ public void setName(String name) { this.name = name; } /** ** The service name. *
* * @return The service name. */ public String getName() { return this.name; } /** ** The service name. *
* * @param name * The service name. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateServiceRequest withName(String name) { setName(name); return this; } /** ** The Amazon Resource Name (ARN) of the repository connection. For more information, see Setting up an AWS CodeStar connection in the Proton User Guide. Don't include this parameter * if your service template doesn't include a service pipeline. *
* * @param repositoryConnectionArn * The Amazon Resource Name (ARN) of the repository connection. For more information, see Setting up an AWS CodeStar connection in the Proton User Guide. Don't include this * parameter if your service template doesn't include a service pipeline. */ public void setRepositoryConnectionArn(String repositoryConnectionArn) { this.repositoryConnectionArn = repositoryConnectionArn; } /** ** The Amazon Resource Name (ARN) of the repository connection. For more information, see Setting up an AWS CodeStar connection in the Proton User Guide. Don't include this parameter * if your service template doesn't include a service pipeline. *
* * @return The Amazon Resource Name (ARN) of the repository connection. For more information, see Setting up an AWS CodeStar connection in the Proton User Guide. Don't include this * parameter if your service template doesn't include a service pipeline. */ public String getRepositoryConnectionArn() { return this.repositoryConnectionArn; } /** ** The Amazon Resource Name (ARN) of the repository connection. For more information, see Setting up an AWS CodeStar connection in the Proton User Guide. Don't include this parameter * if your service template doesn't include a service pipeline. *
* * @param repositoryConnectionArn * The Amazon Resource Name (ARN) of the repository connection. For more information, see Setting up an AWS CodeStar connection in the Proton User Guide. Don't include this * parameter if your service template doesn't include a service pipeline. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateServiceRequest withRepositoryConnectionArn(String repositoryConnectionArn) { setRepositoryConnectionArn(repositoryConnectionArn); return this; } /** ** The ID of the code repository. Don't include this parameter if your service template doesn't * include a service pipeline. *
* * @param repositoryId * The ID of the code repository. Don't include this parameter if your service template doesn't * include a service pipeline. */ public void setRepositoryId(String repositoryId) { this.repositoryId = repositoryId; } /** ** The ID of the code repository. Don't include this parameter if your service template doesn't * include a service pipeline. *
* * @return The ID of the code repository. Don't include this parameter if your service template * doesn't include a service pipeline. */ public String getRepositoryId() { return this.repositoryId; } /** ** The ID of the code repository. Don't include this parameter if your service template doesn't * include a service pipeline. *
* * @param repositoryId * The ID of the code repository. Don't include this parameter if your service template doesn't * include a service pipeline. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateServiceRequest withRepositoryId(String repositoryId) { setRepositoryId(repositoryId); return this; } /** ** A link to a spec file that provides inputs as defined in the service template bundle schema file. The spec file * is in YAML format. Don’t include pipeline inputs in the spec if your service template doesn’t * include a service pipeline. For more information, see Create a service in the * Proton User Guide. *
* * @param spec * A link to a spec file that provides inputs as defined in the service template bundle schema file. The spec * file is in YAML format. Don’t include pipeline inputs in the spec if your service template * doesn’t include a service pipeline. For more information, see Create a service in the * Proton User Guide. */ public void setSpec(String spec) { this.spec = spec; } /** ** A link to a spec file that provides inputs as defined in the service template bundle schema file. The spec file * is in YAML format. Don’t include pipeline inputs in the spec if your service template doesn’t * include a service pipeline. For more information, see Create a service in the * Proton User Guide. *
* * @return A link to a spec file that provides inputs as defined in the service template bundle schema file. The * spec file is in YAML format. Don’t include pipeline inputs in the spec if your service template * doesn’t include a service pipeline. For more information, see Create a service in the * Proton User Guide. */ public String getSpec() { return this.spec; } /** ** A link to a spec file that provides inputs as defined in the service template bundle schema file. The spec file * is in YAML format. Don’t include pipeline inputs in the spec if your service template doesn’t * include a service pipeline. For more information, see Create a service in the * Proton User Guide. *
* * @param spec * A link to a spec file that provides inputs as defined in the service template bundle schema file. The spec * file is in YAML format. Don’t include pipeline inputs in the spec if your service template * doesn’t include a service pipeline. For more information, see Create a service in the * Proton User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateServiceRequest withSpec(String spec) { setSpec(spec); return this; } /** ** An optional list of metadata items that you can associate with the Proton service. 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 service. 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 service. 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 service. 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 CreateServiceRequest 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 service. 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 CreateServiceRequest withTags(java.util.Collection
* The major version of the service template that was used to create the service.
*
* The major version of the service template that was used to create the service.
*
* The major version of the service template that was used to create the service.
*
* The minor version of the service template that was used to create the service.
*
* The minor version of the service template that was used to create the service.
*
* The minor version of the service template that was used to create the service.
*
* The name of the service template that's used to create the service.
*
* The name of the service template that's used to create the service.
*
* The name of the service template that's used to create the service.
*