com.amazonaws.services.opsworks.model

## クラス Source

- java.lang.Object
- - com.amazonaws.services.opsworks.model.Source

- すべての実装されたインタフェース:
    java.io.Serializable

      public class Source
      extends java.lang.Object
      implements java.io.Serializable

  Contains the information required to retrieve an app or cookbook from a repository. For more information, see Creating Apps or Custom Recipes and Cookbooks .

  関連項目:
    直列化された形式

- - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `Source()`

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getPassword()` This parameter depends on the repository type.
    `java.lang.String` | `getRevision()` The application's version.
    `java.lang.String` | `getSshKey()` The repository's SSH key.
    `java.lang.String` | `getType()` The repository type.
    `java.lang.String` | `getUrl()` The source URL.
    `java.lang.String` | `getUsername()` This parameter depends on the repository type.
    `int` | `hashCode()`
    `void` | `setPassword(java.lang.String password)` This parameter depends on the repository type.
    `void` | `setRevision(java.lang.String revision)` The application's version.
    `void` | `setSshKey(java.lang.String sshKey)` The repository's SSH key.
    `void` | `setType(SourceType type)` The repository type.
    `void` | `setType(java.lang.String type)` The repository type.
    `void` | `setUrl(java.lang.String url)` The source URL.
    `void` | `setUsername(java.lang.String username)` This parameter depends on the repository type.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `Source` | `withPassword(java.lang.String password)` This parameter depends on the repository type.
    `Source` | `withRevision(java.lang.String revision)` The application's version.
    `Source` | `withSshKey(java.lang.String sshKey)` The repository's SSH key.
    `Source` | `withType(SourceType type)` The repository type.
    `Source` | `withType(java.lang.String type)` The repository type.
    `Source` | `withUrl(java.lang.String url)` The source URL.
    `Source` | `withUsername(java.lang.String username)` This parameter depends on the repository type.

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### コンストラクタの詳細

    - #### Source

          public Source()

  - ### メソッドの詳細

    - #### getType

          public java.lang.String getType()

      The repository type.

      Constraints:
      Allowed Values: git, svn, archive, s3

      戻り値:
        The repository type.
      関連項目:
        `SourceType`

    - #### setType

          public void setType(java.lang.String type)

      The repository type.

      Constraints:
      Allowed Values: git, svn, archive, s3

      パラメータ:
        `type` - The repository type.
      関連項目:
        `SourceType`

    - #### withType

          public Source withType(java.lang.String type)

      The repository type.

      Returns a reference to this object so that method calls can be chained together.

      Constraints:
      Allowed Values: git, svn, archive, s3

      パラメータ:
        `type` - The repository type.
      関連項目:
        `SourceType`

    - #### setType

          public void setType(SourceType type)

      The repository type.

      Constraints:
      Allowed Values: git, svn, archive, s3

      パラメータ:
        `type` - The repository type.
      関連項目:
        `SourceType`

    - #### withType

          public Source withType(SourceType type)

      The repository type.

      Returns a reference to this object so that method calls can be chained together.

      Constraints:
      Allowed Values: git, svn, archive, s3

      パラメータ:
        `type` - The repository type.
      関連項目:
        `SourceType`

    - #### getUrl

          public java.lang.String getUrl()

      The source URL.
      戻り値:
        The source URL.

    - #### setUrl

          public void setUrl(java.lang.String url)

      The source URL.
      パラメータ:
        `url` - The source URL.

    - #### withUrl

          public Source withUrl(java.lang.String url)

      The source URL.

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `url` - The source URL.

    - #### getUsername

          public java.lang.String getUsername()

      This parameter depends on the repository type.
      - For Amazon S3 bundles, set `Username` to the appropriate AWS access key.
      - For HTTP bundles, Git repositories, and Subversion repositories, set `Username` to the user name.
      戻り値:
        This parameter depends on the repository type.
        - For Amazon S3 bundles, set `Username` to the appropriate AWS access key.
        - For HTTP bundles, Git repositories, and Subversion repositories, set `Username` to the user name.

    - #### setUsername

          public void setUsername(java.lang.String username)

      This parameter depends on the repository type.
      - For Amazon S3 bundles, set `Username` to the appropriate AWS access key.
      - For HTTP bundles, Git repositories, and Subversion repositories, set `Username` to the user name.
      パラメータ:
        `username` - This parameter depends on the repository type.
        - For Amazon S3 bundles, set `Username` to the appropriate AWS access key.
        - For HTTP bundles, Git repositories, and Subversion repositories, set `Username` to the user name.

    - #### withUsername

          public Source withUsername(java.lang.String username)

      This parameter depends on the repository type.
      - For Amazon S3 bundles, set `Username` to the appropriate AWS access key.
      - For HTTP bundles, Git repositories, and Subversion repositories, set `Username` to the user name.

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `username` - This parameter depends on the repository type.
        - For Amazon S3 bundles, set `Username` to the appropriate AWS access key.
        - For HTTP bundles, Git repositories, and Subversion repositories, set `Username` to the user name.

    - #### getPassword

          public java.lang.String getPassword()

      This parameter depends on the repository type.
      - For Amazon S3 bundles, set `Password` to the appropriate AWS secret key.
      - For HTTP bundles, Git repositories, and Subversion repositories, set `Password` to the password.
      戻り値:
        This parameter depends on the repository type.
        - For Amazon S3 bundles, set `Password` to the appropriate AWS secret key.
        - For HTTP bundles, Git repositories, and Subversion repositories, set `Password` to the password.

    - #### setPassword

          public void setPassword(java.lang.String password)

      This parameter depends on the repository type.
      - For Amazon S3 bundles, set `Password` to the appropriate AWS secret key.
      - For HTTP bundles, Git repositories, and Subversion repositories, set `Password` to the password.
      パラメータ:
        `password` - This parameter depends on the repository type.
        - For Amazon S3 bundles, set `Password` to the appropriate AWS secret key.
        - For HTTP bundles, Git repositories, and Subversion repositories, set `Password` to the password.

    - #### withPassword

          public Source withPassword(java.lang.String password)

      This parameter depends on the repository type.
      - For Amazon S3 bundles, set `Password` to the appropriate AWS secret key.
      - For HTTP bundles, Git repositories, and Subversion repositories, set `Password` to the password.

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `password` - This parameter depends on the repository type.
        - For Amazon S3 bundles, set `Password` to the appropriate AWS secret key.
        - For HTTP bundles, Git repositories, and Subversion repositories, set `Password` to the password.

    - #### getSshKey

          public java.lang.String getSshKey()

      The repository's SSH key.
      戻り値:
        The repository's SSH key.

    - #### setSshKey

          public void setSshKey(java.lang.String sshKey)

      The repository's SSH key.
      パラメータ:
        `sshKey` - The repository's SSH key.

    - #### withSshKey

          public Source withSshKey(java.lang.String sshKey)

      The repository's SSH key.

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `sshKey` - The repository's SSH key.

    - #### getRevision

          public java.lang.String getRevision()

      The application's version. AWS OpsWorks enables you to easily deploy new versions of an application. One of the simplest approaches is to have branches or revisions in your repository that represent different versions that can potentially be deployed.
      戻り値:
        The application's version. AWS OpsWorks enables you to easily deploy new versions of an application. One of the simplest approaches is to have branches or revisions in your repository that represent different versions that can potentially be deployed.

    - #### setRevision

          public void setRevision(java.lang.String revision)

      The application's version. AWS OpsWorks enables you to easily deploy new versions of an application. One of the simplest approaches is to have branches or revisions in your repository that represent different versions that can potentially be deployed.
      パラメータ:
        `revision` - The application's version. AWS OpsWorks enables you to easily deploy new versions of an application. One of the simplest approaches is to have branches or revisions in your repository that represent different versions that can potentially be deployed.

    - #### withRevision

          public Source withRevision(java.lang.String revision)

      The application's version. AWS OpsWorks enables you to easily deploy new versions of an application. One of the simplest approaches is to have branches or revisions in your repository that represent different versions that can potentially be deployed.

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `revision` - The application's version. AWS OpsWorks enables you to easily deploy new versions of an application. One of the simplest approaches is to have branches or revisions in your repository that represent different versions that can potentially be deployed.

    - #### toString

          public java.lang.String toString()

      Returns a string representation of this object; useful for testing and debugging.
      オーバーライド:
        `toString` クラス内 `java.lang.Object`
      戻り値:
        A string representation of this object.
      関連項目:
        `Object.toString()`

    - #### hashCode

          public int hashCode()

      オーバーライド:
        `hashCode` クラス内 `java.lang.Object`

    - #### equals

          public boolean equals(java.lang.Object obj)

      オーバーライド:
        `equals` クラス内 `java.lang.Object`