public class Layer
extends java.lang.Object
implements java.io.Serializable
Describes a layer.
| コンストラクタと説明 |
|---|
Layer() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
Layer |
addAttributesEntry(java.lang.String key,
java.lang.String value)
The layer attributes.
|
Layer |
clearAttributesEntries()
Removes all the entries added into Attributes.
|
boolean |
equals(java.lang.Object obj) |
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
The layer attributes.
|
java.lang.Boolean |
getAutoAssignElasticIps()
Whether the layer has an automatically assigned Elastic
IP address.
|
java.lang.String |
getCreatedAt()
Date when the layer was created.
|
java.lang.String |
getCustomInstanceProfileArn()
The ARN of the default IAM profile to be used for the layer's EC2
instances.
|
Recipes |
getCustomRecipes()
A
LayerCustomRecipes object that specifies the layer's
custom recipes. |
java.util.List<java.lang.String> |
getCustomSecurityGroupIds()
An array containing the layer's custom security group IDs.
|
Recipes |
getDefaultRecipes()
AWS OpsWorks supports five lifecycle events, setup,
configuration, deploy, undeploy, and
shutdown.
|
java.util.List<java.lang.String> |
getDefaultSecurityGroupNames()
An array containing the layer's security group names.
|
java.lang.Boolean |
getEnableAutoHealing()
Whether auto healing is disabled for the layer.
|
java.lang.Boolean |
getInstallUpdatesOnBoot()
Whether to install operating system and package updates when the
instance boots.
|
java.lang.String |
getLayerId()
The layer ID.
|
java.lang.String |
getName()
The layer name.
|
java.util.List<java.lang.String> |
getPackages()
An array of
Package objects that describe the layer's
packages. |
java.lang.String |
getShortname()
The layer short name.
|
java.lang.String |
getStackId()
The layer stack ID.
|
java.lang.String |
getType()
The layer type, which must be one of the following:
Custom GangliaMonitoringMaster HaProxy
MemcachedServer MySqlMaster NodeJsAppServer
PhpAppServer RailsAppServer WebServer
Constraints:
Allowed Values: lb, web, php-app, rails-app, nodejs-app, memcached, db-master, monitoring-master, custom |
java.util.List<VolumeConfiguration> |
getVolumeConfigurations()
A
VolumeConfigurations object that describes the layer's
Amazon EBS volumes. |
int |
hashCode() |
java.lang.Boolean |
isAutoAssignElasticIps()
Whether the layer has an automatically assigned Elastic
IP address.
|
java.lang.Boolean |
isEnableAutoHealing()
Whether auto healing is disabled for the layer.
|
java.lang.Boolean |
isInstallUpdatesOnBoot()
Whether to install operating system and package updates when the
instance boots.
|
void |
setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
The layer attributes.
|
void |
setAutoAssignElasticIps(java.lang.Boolean autoAssignElasticIps)
Whether the layer has an automatically assigned Elastic
IP address.
|
void |
setCreatedAt(java.lang.String createdAt)
Date when the layer was created.
|
void |
setCustomInstanceProfileArn(java.lang.String customInstanceProfileArn)
The ARN of the default IAM profile to be used for the layer's EC2
instances.
|
void |
setCustomRecipes(Recipes customRecipes)
A
LayerCustomRecipes object that specifies the layer's
custom recipes. |
void |
setCustomSecurityGroupIds(java.util.Collection<java.lang.String> customSecurityGroupIds)
An array containing the layer's custom security group IDs.
|
void |
setDefaultRecipes(Recipes defaultRecipes)
AWS OpsWorks supports five lifecycle events, setup,
configuration, deploy, undeploy, and
shutdown.
|
void |
setDefaultSecurityGroupNames(java.util.Collection<java.lang.String> defaultSecurityGroupNames)
An array containing the layer's security group names.
|
void |
setEnableAutoHealing(java.lang.Boolean enableAutoHealing)
Whether auto healing is disabled for the layer.
|
void |
setInstallUpdatesOnBoot(java.lang.Boolean installUpdatesOnBoot)
Whether to install operating system and package updates when the
instance boots.
|
void |
setLayerId(java.lang.String layerId)
The layer ID.
|
void |
setName(java.lang.String name)
The layer name.
|
void |
setPackages(java.util.Collection<java.lang.String> packages)
An array of
Package objects that describe the layer's
packages. |
void |
setShortname(java.lang.String shortname)
The layer short name.
|
void |
setStackId(java.lang.String stackId)
The layer stack ID.
|
void |
setType(LayerType type)
The layer type, which must be one of the following:
Custom GangliaMonitoringMaster HaProxy
MemcachedServer MySqlMaster NodeJsAppServer
PhpAppServer RailsAppServer WebServer
Constraints:
Allowed Values: lb, web, php-app, rails-app, nodejs-app, memcached, db-master, monitoring-master, custom |
void |
setType(java.lang.String type)
The layer type, which must be one of the following:
Custom GangliaMonitoringMaster HaProxy
MemcachedServer MySqlMaster NodeJsAppServer
PhpAppServer RailsAppServer WebServer
Constraints:
Allowed Values: lb, web, php-app, rails-app, nodejs-app, memcached, db-master, monitoring-master, custom |
void |
setVolumeConfigurations(java.util.Collection<VolumeConfiguration> volumeConfigurations)
A
VolumeConfigurations object that describes the layer's
Amazon EBS volumes. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Layer |
withAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
The layer attributes.
|
Layer |
withAutoAssignElasticIps(java.lang.Boolean autoAssignElasticIps)
Whether the layer has an automatically assigned Elastic
IP address.
|
Layer |
withCreatedAt(java.lang.String createdAt)
Date when the layer was created.
|
Layer |
withCustomInstanceProfileArn(java.lang.String customInstanceProfileArn)
The ARN of the default IAM profile to be used for the layer's EC2
instances.
|
Layer |
withCustomRecipes(Recipes customRecipes)
A
LayerCustomRecipes object that specifies the layer's
custom recipes. |
Layer |
withCustomSecurityGroupIds(java.util.Collection<java.lang.String> customSecurityGroupIds)
An array containing the layer's custom security group IDs.
|
Layer |
withCustomSecurityGroupIds(java.lang.String... customSecurityGroupIds)
An array containing the layer's custom security group IDs.
|
Layer |
withDefaultRecipes(Recipes defaultRecipes)
AWS OpsWorks supports five lifecycle events, setup,
configuration, deploy, undeploy, and
shutdown.
|
Layer |
withDefaultSecurityGroupNames(java.util.Collection<java.lang.String> defaultSecurityGroupNames)
An array containing the layer's security group names.
|
Layer |
withDefaultSecurityGroupNames(java.lang.String... defaultSecurityGroupNames)
An array containing the layer's security group names.
|
Layer |
withEnableAutoHealing(java.lang.Boolean enableAutoHealing)
Whether auto healing is disabled for the layer.
|
Layer |
withInstallUpdatesOnBoot(java.lang.Boolean installUpdatesOnBoot)
Whether to install operating system and package updates when the
instance boots.
|
Layer |
withLayerId(java.lang.String layerId)
The layer ID.
|
Layer |
withName(java.lang.String name)
The layer name.
|
Layer |
withPackages(java.util.Collection<java.lang.String> packages)
An array of
Package objects that describe the layer's
packages. |
Layer |
withPackages(java.lang.String... packages)
An array of
Package objects that describe the layer's
packages. |
Layer |
withShortname(java.lang.String shortname)
The layer short name.
|
Layer |
withStackId(java.lang.String stackId)
The layer stack ID.
|
Layer |
withType(LayerType type)
The layer type, which must be one of the following:
Custom GangliaMonitoringMaster HaProxy
MemcachedServer MySqlMaster NodeJsAppServer
PhpAppServer RailsAppServer WebServer
Returns a reference to this object so that method calls can be chained together.
|
Layer |
withType(java.lang.String type)
The layer type, which must be one of the following:
Custom GangliaMonitoringMaster HaProxy
MemcachedServer MySqlMaster NodeJsAppServer
PhpAppServer RailsAppServer WebServer
Returns a reference to this object so that method calls can be chained together.
|
Layer |
withVolumeConfigurations(java.util.Collection<VolumeConfiguration> volumeConfigurations)
A
VolumeConfigurations object that describes the layer's
Amazon EBS volumes. |
Layer |
withVolumeConfigurations(VolumeConfiguration... volumeConfigurations)
A
VolumeConfigurations object that describes the layer's
Amazon EBS volumes. |
public java.lang.String getStackId()
public void setStackId(java.lang.String stackId)
stackId - The layer stack ID.public Layer withStackId(java.lang.String stackId)
Returns a reference to this object so that method calls can be chained together.
stackId - The layer stack ID.public java.lang.String getLayerId()
public void setLayerId(java.lang.String layerId)
layerId - The layer ID.public Layer withLayerId(java.lang.String layerId)
Returns a reference to this object so that method calls can be chained together.
layerId - The layer ID.public java.lang.String getType()
Constraints:
Allowed Values: lb, web, php-app, rails-app, nodejs-app, memcached, db-master, monitoring-master, custom
LayerTypepublic void setType(java.lang.String type)
Constraints:
Allowed Values: lb, web, php-app, rails-app, nodejs-app, memcached, db-master, monitoring-master, custom
type - The layer type, which must be one of the following: LayerTypepublic Layer withType(java.lang.String type)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: lb, web, php-app, rails-app, nodejs-app, memcached, db-master, monitoring-master, custom
type - The layer type, which must be one of the following: LayerTypepublic void setType(LayerType type)
Constraints:
Allowed Values: lb, web, php-app, rails-app, nodejs-app, memcached, db-master, monitoring-master, custom
type - The layer type, which must be one of the following: LayerTypepublic Layer withType(LayerType type)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: lb, web, php-app, rails-app, nodejs-app, memcached, db-master, monitoring-master, custom
type - The layer type, which must be one of the following: LayerTypepublic java.lang.String getName()
public void setName(java.lang.String name)
name - The layer name.public Layer withName(java.lang.String name)
Returns a reference to this object so that method calls can be chained together.
name - The layer name.public java.lang.String getShortname()
public void setShortname(java.lang.String shortname)
shortname - The layer short name.public Layer withShortname(java.lang.String shortname)
Returns a reference to this object so that method calls can be chained together.
shortname - The layer short name.public java.util.Map<java.lang.String,java.lang.String> getAttributes()
public void setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
attributes - The layer attributes.public Layer withAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
Returns a reference to this object so that method calls can be chained together.
attributes - The layer attributes.public Layer addAttributesEntry(java.lang.String key, java.lang.String value)
The method adds a new key-value pair into Attributes parameter, and returns a reference to this object so that method calls can be chained together.
key - The key of the entry to be added into Attributes.value - The corresponding value of the entry to be added into Attributes.public Layer clearAttributesEntries()
Returns a reference to this object so that method calls can be chained together.
public java.lang.String getCustomInstanceProfileArn()
public void setCustomInstanceProfileArn(java.lang.String customInstanceProfileArn)
customInstanceProfileArn - The ARN of the default IAM profile to be used for the layer's EC2
instances. For more information about IAM ARNs, see Using
Identifiers.public Layer withCustomInstanceProfileArn(java.lang.String customInstanceProfileArn)
Returns a reference to this object so that method calls can be chained together.
customInstanceProfileArn - The ARN of the default IAM profile to be used for the layer's EC2
instances. For more information about IAM ARNs, see Using
Identifiers.public java.util.List<java.lang.String> getCustomSecurityGroupIds()
public void setCustomSecurityGroupIds(java.util.Collection<java.lang.String> customSecurityGroupIds)
customSecurityGroupIds - An array containing the layer's custom security group IDs.public Layer withCustomSecurityGroupIds(java.lang.String... customSecurityGroupIds)
Returns a reference to this object so that method calls can be chained together.
customSecurityGroupIds - An array containing the layer's custom security group IDs.public Layer withCustomSecurityGroupIds(java.util.Collection<java.lang.String> customSecurityGroupIds)
Returns a reference to this object so that method calls can be chained together.
customSecurityGroupIds - An array containing the layer's custom security group IDs.public java.util.List<java.lang.String> getDefaultSecurityGroupNames()
public void setDefaultSecurityGroupNames(java.util.Collection<java.lang.String> defaultSecurityGroupNames)
defaultSecurityGroupNames - An array containing the layer's security group names.public Layer withDefaultSecurityGroupNames(java.lang.String... defaultSecurityGroupNames)
Returns a reference to this object so that method calls can be chained together.
defaultSecurityGroupNames - An array containing the layer's security group names.public Layer withDefaultSecurityGroupNames(java.util.Collection<java.lang.String> defaultSecurityGroupNames)
Returns a reference to this object so that method calls can be chained together.
defaultSecurityGroupNames - An array containing the layer's security group names.public java.util.List<java.lang.String> getPackages()
Package objects that describe the layer's
packages.Package objects that describe the layer's
packages.public void setPackages(java.util.Collection<java.lang.String> packages)
Package objects that describe the layer's
packages.packages - An array of Package objects that describe the layer's
packages.public Layer withPackages(java.lang.String... packages)
Package objects that describe the layer's
packages.
Returns a reference to this object so that method calls can be chained together.
packages - An array of Package objects that describe the layer's
packages.public Layer withPackages(java.util.Collection<java.lang.String> packages)
Package objects that describe the layer's
packages.
Returns a reference to this object so that method calls can be chained together.
packages - An array of Package objects that describe the layer's
packages.public java.util.List<VolumeConfiguration> getVolumeConfigurations()
VolumeConfigurations object that describes the layer's
Amazon EBS volumes.VolumeConfigurations object that describes the layer's
Amazon EBS volumes.public void setVolumeConfigurations(java.util.Collection<VolumeConfiguration> volumeConfigurations)
VolumeConfigurations object that describes the layer's
Amazon EBS volumes.volumeConfigurations - A VolumeConfigurations object that describes the layer's
Amazon EBS volumes.public Layer withVolumeConfigurations(VolumeConfiguration... volumeConfigurations)
VolumeConfigurations object that describes the layer's
Amazon EBS volumes.
Returns a reference to this object so that method calls can be chained together.
volumeConfigurations - A VolumeConfigurations object that describes the layer's
Amazon EBS volumes.public Layer withVolumeConfigurations(java.util.Collection<VolumeConfiguration> volumeConfigurations)
VolumeConfigurations object that describes the layer's
Amazon EBS volumes.
Returns a reference to this object so that method calls can be chained together.
volumeConfigurations - A VolumeConfigurations object that describes the layer's
Amazon EBS volumes.public java.lang.Boolean isEnableAutoHealing()
public void setEnableAutoHealing(java.lang.Boolean enableAutoHealing)
enableAutoHealing - Whether auto healing is disabled for the layer.public Layer withEnableAutoHealing(java.lang.Boolean enableAutoHealing)
Returns a reference to this object so that method calls can be chained together.
enableAutoHealing - Whether auto healing is disabled for the layer.public java.lang.Boolean getEnableAutoHealing()
public java.lang.Boolean isAutoAssignElasticIps()
public void setAutoAssignElasticIps(java.lang.Boolean autoAssignElasticIps)
autoAssignElasticIps - Whether the layer has an automatically assigned Elastic
IP address.public Layer withAutoAssignElasticIps(java.lang.Boolean autoAssignElasticIps)
Returns a reference to this object so that method calls can be chained together.
autoAssignElasticIps - Whether the layer has an automatically assigned Elastic
IP address.public java.lang.Boolean getAutoAssignElasticIps()
public Recipes getDefaultRecipes()
LayerCustomRecipes
specifies the custom recipes for a particular layer to be run in
response to each of the five events. To specify a recipe, use the cookbook's directory name in the repository followed by two colons and the recipe name, which is the recipe's file name without the .rb extension. For example: phpapp2::dbsetup specifies the dbsetup.rb recipe in the repository's phpapp2 folder.
LayerCustomRecipes
specifies the custom recipes for a particular layer to be run in
response to each of the five events. To specify a recipe, use the cookbook's directory name in the repository followed by two colons and the recipe name, which is the recipe's file name without the .rb extension. For example: phpapp2::dbsetup specifies the dbsetup.rb recipe in the repository's phpapp2 folder.
public void setDefaultRecipes(Recipes defaultRecipes)
LayerCustomRecipes
specifies the custom recipes for a particular layer to be run in
response to each of the five events. To specify a recipe, use the cookbook's directory name in the repository followed by two colons and the recipe name, which is the recipe's file name without the .rb extension. For example: phpapp2::dbsetup specifies the dbsetup.rb recipe in the repository's phpapp2 folder.
defaultRecipes - AWS OpsWorks supports five lifecycle events, setup,
configuration, deploy, undeploy, and
shutdown. For each layer, AWS OpsWorks runs a set of standard
recipes for each event. In addition, you can provide custom recipes
for any or all layers and events. AWS OpsWorks runs custom event
recipes after the standard recipes. LayerCustomRecipes
specifies the custom recipes for a particular layer to be run in
response to each of the five events. To specify a recipe, use the cookbook's directory name in the repository followed by two colons and the recipe name, which is the recipe's file name without the .rb extension. For example: phpapp2::dbsetup specifies the dbsetup.rb recipe in the repository's phpapp2 folder.
public Layer withDefaultRecipes(Recipes defaultRecipes)
LayerCustomRecipes
specifies the custom recipes for a particular layer to be run in
response to each of the five events. To specify a recipe, use the cookbook's directory name in the repository followed by two colons and the recipe name, which is the recipe's file name without the .rb extension. For example: phpapp2::dbsetup specifies the dbsetup.rb recipe in the repository's phpapp2 folder.
Returns a reference to this object so that method calls can be chained together.
defaultRecipes - AWS OpsWorks supports five lifecycle events, setup,
configuration, deploy, undeploy, and
shutdown. For each layer, AWS OpsWorks runs a set of standard
recipes for each event. In addition, you can provide custom recipes
for any or all layers and events. AWS OpsWorks runs custom event
recipes after the standard recipes. LayerCustomRecipes
specifies the custom recipes for a particular layer to be run in
response to each of the five events. To specify a recipe, use the cookbook's directory name in the repository followed by two colons and the recipe name, which is the recipe's file name without the .rb extension. For example: phpapp2::dbsetup specifies the dbsetup.rb recipe in the repository's phpapp2 folder.
public Recipes getCustomRecipes()
LayerCustomRecipes object that specifies the layer's
custom recipes.LayerCustomRecipes object that specifies the layer's
custom recipes.public void setCustomRecipes(Recipes customRecipes)
LayerCustomRecipes object that specifies the layer's
custom recipes.customRecipes - A LayerCustomRecipes object that specifies the layer's
custom recipes.public Layer withCustomRecipes(Recipes customRecipes)
LayerCustomRecipes object that specifies the layer's
custom recipes.
Returns a reference to this object so that method calls can be chained together.
customRecipes - A LayerCustomRecipes object that specifies the layer's
custom recipes.public java.lang.String getCreatedAt()
public void setCreatedAt(java.lang.String createdAt)
createdAt - Date when the layer was created.public Layer withCreatedAt(java.lang.String createdAt)
Returns a reference to this object so that method calls can be chained together.
createdAt - Date when the layer was created.public java.lang.Boolean isInstallUpdatesOnBoot()
true. If this value
is set to false, you must then update your instances
manually by using CreateDeployment to run the
update_dependencies stack command or manually running
yum (Amazon Linux) or apt-get (Ubuntu) on
the instances. true, to ensure that your instances have the latest
security updates.true. If this value
is set to false, you must then update your instances
manually by using CreateDeployment to run the
update_dependencies stack command or manually running
yum (Amazon Linux) or apt-get (Ubuntu) on
the instances. true, to ensure that your instances have the latest
security updates.public void setInstallUpdatesOnBoot(java.lang.Boolean installUpdatesOnBoot)
true. If this value
is set to false, you must then update your instances
manually by using CreateDeployment to run the
update_dependencies stack command or manually running
yum (Amazon Linux) or apt-get (Ubuntu) on
the instances. true, to ensure that your instances have the latest
security updates.installUpdatesOnBoot - Whether to install operating system and package updates when the
instance boots. The default value is true. If this value
is set to false, you must then update your instances
manually by using CreateDeployment to run the
update_dependencies stack command or manually running
yum (Amazon Linux) or apt-get (Ubuntu) on
the instances. true, to ensure that your instances have the latest
security updates.public Layer withInstallUpdatesOnBoot(java.lang.Boolean installUpdatesOnBoot)
true. If this value
is set to false, you must then update your instances
manually by using CreateDeployment to run the
update_dependencies stack command or manually running
yum (Amazon Linux) or apt-get (Ubuntu) on
the instances. true, to ensure that your instances have the latest
security updates.Returns a reference to this object so that method calls can be chained together.
installUpdatesOnBoot - Whether to install operating system and package updates when the
instance boots. The default value is true. If this value
is set to false, you must then update your instances
manually by using CreateDeployment to run the
update_dependencies stack command or manually running
yum (Amazon Linux) or apt-get (Ubuntu) on
the instances. true, to ensure that your instances have the latest
security updates.public java.lang.Boolean getInstallUpdatesOnBoot()
true. If this value
is set to false, you must then update your instances
manually by using CreateDeployment to run the
update_dependencies stack command or manually running
yum (Amazon Linux) or apt-get (Ubuntu) on
the instances. true, to ensure that your instances have the latest
security updates.true. If this value
is set to false, you must then update your instances
manually by using CreateDeployment to run the
update_dependencies stack command or manually running
yum (Amazon Linux) or apt-get (Ubuntu) on
the instances. true, to ensure that your instances have the latest
security updates.public java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object