All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.apprunner.model.CodeConfiguration Maven / Gradle / Ivy

/*
 * 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 the configuration that App Runner uses to build and run an App Runner service from a source code * repository. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CodeConfiguration implements Serializable, Cloneable, StructuredPojo { /** *

* The source of the App Runner configuration. Values are interpreted as follows: *

*
    *
  • *

    * REPOSITORY – App Runner reads configuration values from the apprunner.yaml file in the * source code repository and ignores CodeConfigurationValues. *

    *
  • *
  • *

    * API – App Runner uses configuration values provided in CodeConfigurationValues and * ignores the apprunner.yaml file in the source code repository. *

    *
  • *
*/ private String configurationSource; /** *

* The basic configuration for building and running the App Runner service. Use it to quickly launch an App Runner * service without providing a apprunner.yaml file in the source code repository (or ignoring the file * if it exists). *

*/ private CodeConfigurationValues codeConfigurationValues; /** *

* The source of the App Runner configuration. Values are interpreted as follows: *

*
    *
  • *

    * REPOSITORY – App Runner reads configuration values from the apprunner.yaml file in the * source code repository and ignores CodeConfigurationValues. *

    *
  • *
  • *

    * API – App Runner uses configuration values provided in CodeConfigurationValues and * ignores the apprunner.yaml file in the source code repository. *

    *
  • *
* * @param configurationSource * The source of the App Runner configuration. Values are interpreted as follows:

*
    *
  • *

    * REPOSITORY – App Runner reads configuration values from the apprunner.yaml file * in the source code repository and ignores CodeConfigurationValues. *

    *
  • *
  • *

    * API – App Runner uses configuration values provided in CodeConfigurationValues * and ignores the apprunner.yaml file in the source code repository. *

    *
  • * @see ConfigurationSource */ public void setConfigurationSource(String configurationSource) { this.configurationSource = configurationSource; } /** *

    * The source of the App Runner configuration. Values are interpreted as follows: *

    *
      *
    • *

      * REPOSITORY – App Runner reads configuration values from the apprunner.yaml file in the * source code repository and ignores CodeConfigurationValues. *

      *
    • *
    • *

      * API – App Runner uses configuration values provided in CodeConfigurationValues and * ignores the apprunner.yaml file in the source code repository. *

      *
    • *
    * * @return The source of the App Runner configuration. Values are interpreted as follows:

    *
      *
    • *

      * REPOSITORY – App Runner reads configuration values from the apprunner.yaml file * in the source code repository and ignores CodeConfigurationValues. *

      *
    • *
    • *

      * API – App Runner uses configuration values provided in CodeConfigurationValues * and ignores the apprunner.yaml file in the source code repository. *

      *
    • * @see ConfigurationSource */ public String getConfigurationSource() { return this.configurationSource; } /** *

      * The source of the App Runner configuration. Values are interpreted as follows: *

      *
        *
      • *

        * REPOSITORY – App Runner reads configuration values from the apprunner.yaml file in the * source code repository and ignores CodeConfigurationValues. *

        *
      • *
      • *

        * API – App Runner uses configuration values provided in CodeConfigurationValues and * ignores the apprunner.yaml file in the source code repository. *

        *
      • *
      * * @param configurationSource * The source of the App Runner configuration. Values are interpreted as follows:

      *
        *
      • *

        * REPOSITORY – App Runner reads configuration values from the apprunner.yaml file * in the source code repository and ignores CodeConfigurationValues. *

        *
      • *
      • *

        * API – App Runner uses configuration values provided in CodeConfigurationValues * and ignores the apprunner.yaml file in the source code repository. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. * @see ConfigurationSource */ public CodeConfiguration withConfigurationSource(String configurationSource) { setConfigurationSource(configurationSource); return this; } /** *

        * The source of the App Runner configuration. Values are interpreted as follows: *

        *
          *
        • *

          * REPOSITORY – App Runner reads configuration values from the apprunner.yaml file in the * source code repository and ignores CodeConfigurationValues. *

          *
        • *
        • *

          * API – App Runner uses configuration values provided in CodeConfigurationValues and * ignores the apprunner.yaml file in the source code repository. *

          *
        • *
        * * @param configurationSource * The source of the App Runner configuration. Values are interpreted as follows:

        *
          *
        • *

          * REPOSITORY – App Runner reads configuration values from the apprunner.yaml file * in the source code repository and ignores CodeConfigurationValues. *

          *
        • *
        • *

          * API – App Runner uses configuration values provided in CodeConfigurationValues * and ignores the apprunner.yaml file in the source code repository. *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. * @see ConfigurationSource */ public CodeConfiguration withConfigurationSource(ConfigurationSource configurationSource) { this.configurationSource = configurationSource.toString(); return this; } /** *

          * The basic configuration for building and running the App Runner service. Use it to quickly launch an App Runner * service without providing a apprunner.yaml file in the source code repository (or ignoring the file * if it exists). *

          * * @param codeConfigurationValues * The basic configuration for building and running the App Runner service. Use it to quickly launch an App * Runner service without providing a apprunner.yaml file in the source code repository (or * ignoring the file if it exists). */ public void setCodeConfigurationValues(CodeConfigurationValues codeConfigurationValues) { this.codeConfigurationValues = codeConfigurationValues; } /** *

          * The basic configuration for building and running the App Runner service. Use it to quickly launch an App Runner * service without providing a apprunner.yaml file in the source code repository (or ignoring the file * if it exists). *

          * * @return The basic configuration for building and running the App Runner service. Use it to quickly launch an App * Runner service without providing a apprunner.yaml file in the source code repository (or * ignoring the file if it exists). */ public CodeConfigurationValues getCodeConfigurationValues() { return this.codeConfigurationValues; } /** *

          * The basic configuration for building and running the App Runner service. Use it to quickly launch an App Runner * service without providing a apprunner.yaml file in the source code repository (or ignoring the file * if it exists). *

          * * @param codeConfigurationValues * The basic configuration for building and running the App Runner service. Use it to quickly launch an App * Runner service without providing a apprunner.yaml file in the source code repository (or * ignoring the file if it exists). * @return Returns a reference to this object so that method calls can be chained together. */ public CodeConfiguration withCodeConfigurationValues(CodeConfigurationValues codeConfigurationValues) { setCodeConfigurationValues(codeConfigurationValues); 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 (getConfigurationSource() != null) sb.append("ConfigurationSource: ").append(getConfigurationSource()).append(","); if (getCodeConfigurationValues() != null) sb.append("CodeConfigurationValues: ").append(getCodeConfigurationValues()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CodeConfiguration == false) return false; CodeConfiguration other = (CodeConfiguration) obj; if (other.getConfigurationSource() == null ^ this.getConfigurationSource() == null) return false; if (other.getConfigurationSource() != null && other.getConfigurationSource().equals(this.getConfigurationSource()) == false) return false; if (other.getCodeConfigurationValues() == null ^ this.getCodeConfigurationValues() == null) return false; if (other.getCodeConfigurationValues() != null && other.getCodeConfigurationValues().equals(this.getCodeConfigurationValues()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getConfigurationSource() == null) ? 0 : getConfigurationSource().hashCode()); hashCode = prime * hashCode + ((getCodeConfigurationValues() == null) ? 0 : getCodeConfigurationValues().hashCode()); return hashCode; } @Override public CodeConfiguration clone() { try { return (CodeConfiguration) 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.apprunner.model.transform.CodeConfigurationMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy