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

com.amazonaws.services.opsworks.model.Source Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS OpsWorks module holds the client classes that are used for communicating with AWS OpsWorks Service

There is a newer version: 1.11.7
Show newest version
/*
 * Copyright 2010-2016 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.opsworks.model;

import 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. *

*/ public class Source implements Serializable, Cloneable { /** *

* The repository type. *

*/ private String type; /** *

* The source URL. *

*/ private String url; /** *

* This parameter depends on the repository type. *

*
    *
  • For Amazon S3 bundles, set Username to the appropriate * IAM access key ID.
  • *
  • For HTTP bundles, Git repositories, and Subversion repositories, set * Username to the user name.
  • *
*/ private String username; /** *

* When included in a request, the parameter depends on the repository type. *

*
    *
  • For Amazon S3 bundles, set Password to the appropriate * IAM secret access key.
  • *
  • For HTTP bundles and Subversion repositories, set * Password to the password.
  • *
*

* For more information on how to safely handle IAM credentials, see . *

*

* In responses, AWS OpsWorks returns *****FILTERED***** * instead of the actual value. *

*/ private String password; /** *

* In requests, the repository's SSH key. *

*

* In responses, AWS OpsWorks returns *****FILTERED***** * instead of the actual value. *

*/ private String sshKey; /** *

* 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. *

*/ private String revision; /** *

* The repository type. *

* * @param type * The repository type. * @see SourceType */ public void setType(String type) { this.type = type; } /** *

* The repository type. *

* * @return The repository type. * @see SourceType */ public String getType() { return this.type; } /** *

* The repository type. *

* * @param type * The repository type. * @return Returns a reference to this object so that method calls can be * chained together. * @see SourceType */ public Source withType(String type) { setType(type); return this; } /** *

* The repository type. *

* * @param type * The repository type. * @see SourceType */ public void setType(SourceType type) { this.type = type.toString(); } /** *

* The repository type. *

* * @param type * The repository type. * @return Returns a reference to this object so that method calls can be * chained together. * @see SourceType */ public Source withType(SourceType type) { setType(type); return this; } /** *

* The source URL. *

* * @param url * The source URL. */ public void setUrl(String url) { this.url = url; } /** *

* The source URL. *

* * @return The source URL. */ public String getUrl() { return this.url; } /** *

* The source URL. *

* * @param url * The source URL. * @return Returns a reference to this object so that method calls can be * chained together. */ public Source withUrl(String url) { setUrl(url); return this; } /** *

* This parameter depends on the repository type. *

*
    *
  • For Amazon S3 bundles, set Username to the appropriate * IAM access key ID.
  • *
  • For HTTP bundles, Git repositories, and Subversion repositories, set * Username to the user name.
  • *
* * @param username * This parameter depends on the repository type.

*




© 2015 - 2025 Weber Informatics LLC | Privacy Policy