/* * 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.apprunner.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Describes a source code repository. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CodeRepository implements Serializable, Cloneable, StructuredPojo { /** ** The location of the repository that contains the source code. *
*/ private String repositoryUrl; /** ** The version that should be used within the source code repository. *
*/ private SourceCodeVersion sourceCodeVersion; /** ** Configuration for building and running the service from a source code repository. *
*
* CodeConfiguration
is required only for CreateService
request.
*
* The location of the repository that contains the source code. *
* * @param repositoryUrl * The location of the repository that contains the source code. */ public void setRepositoryUrl(String repositoryUrl) { this.repositoryUrl = repositoryUrl; } /** ** The location of the repository that contains the source code. *
* * @return The location of the repository that contains the source code. */ public String getRepositoryUrl() { return this.repositoryUrl; } /** ** The location of the repository that contains the source code. *
* * @param repositoryUrl * The location of the repository that contains the source code. * @return Returns a reference to this object so that method calls can be chained together. */ public CodeRepository withRepositoryUrl(String repositoryUrl) { setRepositoryUrl(repositoryUrl); return this; } /** ** The version that should be used within the source code repository. *
* * @param sourceCodeVersion * The version that should be used within the source code repository. */ public void setSourceCodeVersion(SourceCodeVersion sourceCodeVersion) { this.sourceCodeVersion = sourceCodeVersion; } /** ** The version that should be used within the source code repository. *
* * @return The version that should be used within the source code repository. */ public SourceCodeVersion getSourceCodeVersion() { return this.sourceCodeVersion; } /** ** The version that should be used within the source code repository. *
* * @param sourceCodeVersion * The version that should be used within the source code repository. * @return Returns a reference to this object so that method calls can be chained together. */ public CodeRepository withSourceCodeVersion(SourceCodeVersion sourceCodeVersion) { setSourceCodeVersion(sourceCodeVersion); return this; } /** ** Configuration for building and running the service from a source code repository. *
*
* CodeConfiguration
is required only for CreateService
request.
*
* CodeConfiguration
is required only for CreateService
request.
*
* Configuration for building and running the service from a source code repository. *
*
* CodeConfiguration
is required only for CreateService
request.
*
* CodeConfiguration
is required only for CreateService
request.
*
* Configuration for building and running the service from a source code repository. *
*
* CodeConfiguration
is required only for CreateService
request.
*
* CodeConfiguration
is required only for CreateService
request.
*