Class UpdateAppRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.opsworks.model.UpdateAppRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class UpdateAppRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description UpdateAppRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateAppRequestaddAttributesEntry(String key, String value)UpdateAppRequestclearAttributesEntries()Removes all the entries added into Attributes.UpdateAppRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetAppId()The app ID.SourcegetAppSource()ASourceobject that specifies the app repository.Map<String,String>getAttributes()One or more user-defined key/value pairs to be added to the stack attributes.List<DataSource>getDataSources()The app's data sources.StringgetDescription()A description of the app.List<String>getDomains()The app's virtual host settings, with multiple domains separated by commas.BooleangetEnableSsl()Whether SSL is enabled for the app.List<EnvironmentVariable>getEnvironment()An array ofEnvironmentVariableobjects that specify environment variables to be associated with the app.StringgetName()The app name.SslConfigurationgetSslConfiguration()AnSslConfigurationobject with the SSL configuration.StringgetType()The app type.inthashCode()BooleanisEnableSsl()Whether SSL is enabled for the app.voidsetAppId(String appId)The app ID.voidsetAppSource(Source appSource)ASourceobject that specifies the app repository.voidsetAttributes(Map<String,String> attributes)One or more user-defined key/value pairs to be added to the stack attributes.voidsetDataSources(Collection<DataSource> dataSources)The app's data sources.voidsetDescription(String description)A description of the app.voidsetDomains(Collection<String> domains)The app's virtual host settings, with multiple domains separated by commas.voidsetEnableSsl(Boolean enableSsl)Whether SSL is enabled for the app.voidsetEnvironment(Collection<EnvironmentVariable> environment)An array ofEnvironmentVariableobjects that specify environment variables to be associated with the app.voidsetName(String name)The app name.voidsetSslConfiguration(SslConfiguration sslConfiguration)AnSslConfigurationobject with the SSL configuration.voidsetType(AppType type)The app type.voidsetType(String type)The app type.StringtoString()Returns a string representation of this object; useful for testing and debugging.UpdateAppRequestwithAppId(String appId)The app ID.UpdateAppRequestwithAppSource(Source appSource)ASourceobject that specifies the app repository.UpdateAppRequestwithAttributes(Map<String,String> attributes)One or more user-defined key/value pairs to be added to the stack attributes.UpdateAppRequestwithDataSources(DataSource... dataSources)The app's data sources.UpdateAppRequestwithDataSources(Collection<DataSource> dataSources)The app's data sources.UpdateAppRequestwithDescription(String description)A description of the app.UpdateAppRequestwithDomains(String... domains)The app's virtual host settings, with multiple domains separated by commas.UpdateAppRequestwithDomains(Collection<String> domains)The app's virtual host settings, with multiple domains separated by commas.UpdateAppRequestwithEnableSsl(Boolean enableSsl)Whether SSL is enabled for the app.UpdateAppRequestwithEnvironment(EnvironmentVariable... environment)An array ofEnvironmentVariableobjects that specify environment variables to be associated with the app.UpdateAppRequestwithEnvironment(Collection<EnvironmentVariable> environment)An array ofEnvironmentVariableobjects that specify environment variables to be associated with the app.UpdateAppRequestwithName(String name)The app name.UpdateAppRequestwithSslConfiguration(SslConfiguration sslConfiguration)AnSslConfigurationobject with the SSL configuration.UpdateAppRequestwithType(AppType type)The app type.UpdateAppRequestwithType(String type)The app type.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setAppId
public void setAppId(String appId)
The app ID.
- Parameters:
appId- The app ID.
-
getAppId
public String getAppId()
The app ID.
- Returns:
- The app ID.
-
withAppId
public UpdateAppRequest withAppId(String appId)
The app ID.
- Parameters:
appId- The app ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setName
public void setName(String name)
The app name.
- Parameters:
name- The app name.
-
getName
public String getName()
The app name.
- Returns:
- The app name.
-
withName
public UpdateAppRequest withName(String name)
The app name.
- Parameters:
name- The app name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDescription
public void setDescription(String description)
A description of the app.
- Parameters:
description- A description of the app.
-
getDescription
public String getDescription()
A description of the app.
- Returns:
- A description of the app.
-
withDescription
public UpdateAppRequest withDescription(String description)
A description of the app.
- Parameters:
description- A description of the app.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getDataSources
public List<DataSource> getDataSources()
The app's data sources.
- Returns:
- The app's data sources.
-
setDataSources
public void setDataSources(Collection<DataSource> dataSources)
The app's data sources.
- Parameters:
dataSources- The app's data sources.
-
withDataSources
public UpdateAppRequest withDataSources(DataSource... dataSources)
The app's data sources.
NOTE: This method appends the values to the existing list (if any). Use
setDataSources(java.util.Collection)orwithDataSources(java.util.Collection)if you want to override the existing values.- Parameters:
dataSources- The app's data sources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withDataSources
public UpdateAppRequest withDataSources(Collection<DataSource> dataSources)
The app's data sources.
- Parameters:
dataSources- The app's data sources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setType
public void setType(String type)
The app type.
- Parameters:
type- The app type.- See Also:
AppType
-
withType
public UpdateAppRequest withType(String type)
The app type.
- Parameters:
type- The app type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AppType
-
setType
public void setType(AppType type)
The app type.
- Parameters:
type- The app type.- See Also:
AppType
-
withType
public UpdateAppRequest withType(AppType type)
The app type.
- Parameters:
type- The app type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AppType
-
setAppSource
public void setAppSource(Source appSource)
A
Sourceobject that specifies the app repository.- Parameters:
appSource- ASourceobject that specifies the app repository.
-
getAppSource
public Source getAppSource()
A
Sourceobject that specifies the app repository.- Returns:
- A
Sourceobject that specifies the app repository.
-
withAppSource
public UpdateAppRequest withAppSource(Source appSource)
A
Sourceobject that specifies the app repository.- Parameters:
appSource- ASourceobject that specifies the app repository.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getDomains
public List<String> getDomains()
The app's virtual host settings, with multiple domains separated by commas. For example:
'www.example.com, example.com'- Returns:
- The app's virtual host settings, with multiple domains separated
by commas. For example:
'www.example.com, example.com'
-
setDomains
public void setDomains(Collection<String> domains)
The app's virtual host settings, with multiple domains separated by commas. For example:
'www.example.com, example.com'- Parameters:
domains- The app's virtual host settings, with multiple domains separated by commas. For example:'www.example.com, example.com'
-
withDomains
public UpdateAppRequest withDomains(String... domains)
The app's virtual host settings, with multiple domains separated by commas. For example:
'www.example.com, example.com'NOTE: This method appends the values to the existing list (if any). Use
setDomains(java.util.Collection)orwithDomains(java.util.Collection)if you want to override the existing values.- Parameters:
domains- The app's virtual host settings, with multiple domains separated by commas. For example:'www.example.com, example.com'- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withDomains
public UpdateAppRequest withDomains(Collection<String> domains)
The app's virtual host settings, with multiple domains separated by commas. For example:
'www.example.com, example.com'- Parameters:
domains- The app's virtual host settings, with multiple domains separated by commas. For example:'www.example.com, example.com'- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEnableSsl
public void setEnableSsl(Boolean enableSsl)
Whether SSL is enabled for the app.
- Parameters:
enableSsl- Whether SSL is enabled for the app.
-
getEnableSsl
public Boolean getEnableSsl()
Whether SSL is enabled for the app.
- Returns:
- Whether SSL is enabled for the app.
-
withEnableSsl
public UpdateAppRequest withEnableSsl(Boolean enableSsl)
Whether SSL is enabled for the app.
- Parameters:
enableSsl- Whether SSL is enabled for the app.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isEnableSsl
public Boolean isEnableSsl()
Whether SSL is enabled for the app.
- Returns:
- Whether SSL is enabled for the app.
-
setSslConfiguration
public void setSslConfiguration(SslConfiguration sslConfiguration)
An
SslConfigurationobject with the SSL configuration.- Parameters:
sslConfiguration- AnSslConfigurationobject with the SSL configuration.
-
getSslConfiguration
public SslConfiguration getSslConfiguration()
An
SslConfigurationobject with the SSL configuration.- Returns:
- An
SslConfigurationobject with the SSL configuration.
-
withSslConfiguration
public UpdateAppRequest withSslConfiguration(SslConfiguration sslConfiguration)
An
SslConfigurationobject with the SSL configuration.- Parameters:
sslConfiguration- AnSslConfigurationobject with the SSL configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getAttributes
public Map<String,String> getAttributes()
One or more user-defined key/value pairs to be added to the stack attributes.
- Returns:
- One or more user-defined key/value pairs to be added to the stack attributes.
-
setAttributes
public void setAttributes(Map<String,String> attributes)
One or more user-defined key/value pairs to be added to the stack attributes.
- Parameters:
attributes- One or more user-defined key/value pairs to be added to the stack attributes.
-
withAttributes
public UpdateAppRequest withAttributes(Map<String,String> attributes)
One or more user-defined key/value pairs to be added to the stack attributes.
- Parameters:
attributes- One or more user-defined key/value pairs to be added to the stack attributes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addAttributesEntry
public UpdateAppRequest addAttributesEntry(String key, String value)
-
clearAttributesEntries
public UpdateAppRequest clearAttributesEntries()
Removes all the entries added into Attributes. <p> Returns a reference to this object so that method calls can be chained together.
-
getEnvironment
public List<EnvironmentVariable> getEnvironment()
An array of
EnvironmentVariableobjects that specify environment variables to be associated with the app. After you deploy the app, these variables are defined on the associated app server instances.For more information, see Environment Variables.There is no specific limit on the number of environment variables. However, the size of the associated data structure - which includes the variables' names, values, and protected flag values - cannot exceed 10 KB (10240 Bytes). This limit should accommodate most if not all use cases. Exceeding it will cause an exception with the message, "Environment: is too large (maximum is 10KB)."
This parameter is supported only by Chef 11.10 stacks. If you have specified one or more environment variables, you cannot modify the stack's Chef version. - Returns:
- An array of
EnvironmentVariableobjects that specify environment variables to be associated with the app. After you deploy the app, these variables are defined on the associated app server instances.For more information, see Environment Variables.There is no specific limit on the number of environment variables. However, the size of the associated data structure - which includes the variables' names, values, and protected flag values - cannot exceed 10 KB (10240 Bytes). This limit should accommodate most if not all use cases. Exceeding it will cause an exception with the message, "Environment: is too large (maximum is 10KB)."
This parameter is supported only by Chef 11.10 stacks. If you have specified one or more environment variables, you cannot modify the stack's Chef version.
-
setEnvironment
public void setEnvironment(Collection<EnvironmentVariable> environment)
An array of
EnvironmentVariableobjects that specify environment variables to be associated with the app. After you deploy the app, these variables are defined on the associated app server instances.For more information, see Environment Variables.There is no specific limit on the number of environment variables. However, the size of the associated data structure - which includes the variables' names, values, and protected flag values - cannot exceed 10 KB (10240 Bytes). This limit should accommodate most if not all use cases. Exceeding it will cause an exception with the message, "Environment: is too large (maximum is 10KB)."
This parameter is supported only by Chef 11.10 stacks. If you have specified one or more environment variables, you cannot modify the stack's Chef version. - Parameters:
environment- An array ofEnvironmentVariableobjects that specify environment variables to be associated with the app. After you deploy the app, these variables are defined on the associated app server instances.For more information, see Environment Variables.There is no specific limit on the number of environment variables. However, the size of the associated data structure - which includes the variables' names, values, and protected flag values - cannot exceed 10 KB (10240 Bytes). This limit should accommodate most if not all use cases. Exceeding it will cause an exception with the message, "Environment: is too large (maximum is 10KB)."
This parameter is supported only by Chef 11.10 stacks. If you have specified one or more environment variables, you cannot modify the stack's Chef version.
-
withEnvironment
public UpdateAppRequest withEnvironment(EnvironmentVariable... environment)
An array of
EnvironmentVariableobjects that specify environment variables to be associated with the app. After you deploy the app, these variables are defined on the associated app server instances.For more information, see Environment Variables.There is no specific limit on the number of environment variables. However, the size of the associated data structure - which includes the variables' names, values, and protected flag values - cannot exceed 10 KB (10240 Bytes). This limit should accommodate most if not all use cases. Exceeding it will cause an exception with the message, "Environment: is too large (maximum is 10KB)."
This parameter is supported only by Chef 11.10 stacks. If you have specified one or more environment variables, you cannot modify the stack's Chef version. NOTE: This method appends the values to the existing list (if any). Use
setEnvironment(java.util.Collection)orwithEnvironment(java.util.Collection)if you want to override the existing values.- Parameters:
environment- An array ofEnvironmentVariableobjects that specify environment variables to be associated with the app. After you deploy the app, these variables are defined on the associated app server instances.For more information, see Environment Variables.There is no specific limit on the number of environment variables. However, the size of the associated data structure - which includes the variables' names, values, and protected flag values - cannot exceed 10 KB (10240 Bytes). This limit should accommodate most if not all use cases. Exceeding it will cause an exception with the message, "Environment: is too large (maximum is 10KB)."
This parameter is supported only by Chef 11.10 stacks. If you have specified one or more environment variables, you cannot modify the stack's Chef version. - Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withEnvironment
public UpdateAppRequest withEnvironment(Collection<EnvironmentVariable> environment)
An array of
EnvironmentVariableobjects that specify environment variables to be associated with the app. After you deploy the app, these variables are defined on the associated app server instances.For more information, see Environment Variables.There is no specific limit on the number of environment variables. However, the size of the associated data structure - which includes the variables' names, values, and protected flag values - cannot exceed 10 KB (10240 Bytes). This limit should accommodate most if not all use cases. Exceeding it will cause an exception with the message, "Environment: is too large (maximum is 10KB)."
This parameter is supported only by Chef 11.10 stacks. If you have specified one or more environment variables, you cannot modify the stack's Chef version. - Parameters:
environment- An array ofEnvironmentVariableobjects that specify environment variables to be associated with the app. After you deploy the app, these variables are defined on the associated app server instances.For more information, see Environment Variables.There is no specific limit on the number of environment variables. However, the size of the associated data structure - which includes the variables' names, values, and protected flag values - cannot exceed 10 KB (10240 Bytes). This limit should accommodate most if not all use cases. Exceeding it will cause an exception with the message, "Environment: is too large (maximum is 10KB)."
This parameter is supported only by Chef 11.10 stacks. If you have specified one or more environment variables, you cannot modify the stack's Chef version. - Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public UpdateAppRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-