Interface Stack.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<Stack.Builder,,- Stack> - SdkBuilder<Stack.Builder,,- Stack> - SdkPojo
- Enclosing class:
- Stack
- 
Method SummaryModifier and TypeMethodDescriptionagentVersion(String agentVersion) The agent version.The stack's ARN.attributes(Map<StackAttributesKeys, String> attributes) The stack's attributes.attributesWithStrings(Map<String, String> attributes) The stack's attributes.default Stack.BuilderchefConfiguration(Consumer<ChefConfiguration.Builder> chefConfiguration) AChefConfigurationobject that specifies whether to enable Berkshelf and the Berkshelf version.chefConfiguration(ChefConfiguration chefConfiguration) AChefConfigurationobject that specifies whether to enable Berkshelf and the Berkshelf version.default Stack.BuilderconfigurationManager(Consumer<StackConfigurationManager.Builder> configurationManager) The configuration manager.configurationManager(StackConfigurationManager configurationManager) The configuration manager.The date when the stack was created.default Stack.BuildercustomCookbooksSource(Consumer<Source.Builder> customCookbooksSource) Contains the information required to retrieve an app or cookbook from a repository.customCookbooksSource(Source customCookbooksSource) Contains the information required to retrieve an app or cookbook from a repository.customJson(String customJson) A JSON object that contains user-defined attributes to be added to the stack configuration and deployment attributes.defaultAvailabilityZone(String defaultAvailabilityZone) The stack's default Availability Zone.defaultInstanceProfileArn(String defaultInstanceProfileArn) The ARN of an IAM profile that is the default profile for all of the stack's EC2 instances.The stack's default operating system.defaultRootDeviceType(String defaultRootDeviceType) The default root device type.defaultRootDeviceType(RootDeviceType defaultRootDeviceType) The default root device type.defaultSshKeyName(String defaultSshKeyName) A default Amazon EC2 key pair for the stack's instances.defaultSubnetId(String defaultSubnetId) The default subnet ID; applicable only if the stack is running in a VPC.hostnameTheme(String hostnameTheme) The stack host name theme, with spaces replaced by underscores.The stack name.The stack Amazon Web Services Region, such asap-northeast-2.serviceRoleArn(String serviceRoleArn) The stack Identity and Access Management (IAM) role.The stack ID.useCustomCookbooks(Boolean useCustomCookbooks) Whether the stack uses custom cookbooks.useOpsworksSecurityGroups(Boolean useOpsworksSecurityGroups) Whether the stack automatically associates the OpsWorks Stacks built-in security groups with the stack's layers.The VPC ID; applicable only if the stack is running in a VPC.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFields
- 
Method Details- 
stackIdThe stack ID. - Parameters:
- stackId- The stack ID.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
nameThe stack name. Stack names can be a maximum of 64 characters. - Parameters:
- name- The stack name. Stack names can be a maximum of 64 characters.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
arnThe stack's ARN. - Parameters:
- arn- The stack's ARN.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
regionThe stack Amazon Web Services Region, such as ap-northeast-2. For more information about Amazon Web Services Regions, see Regions and Endpoints.- Parameters:
- region- The stack Amazon Web Services Region, such as- ap-northeast-2. For more information about Amazon Web Services Regions, see Regions and Endpoints.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
vpcIdThe VPC ID; applicable only if the stack is running in a VPC. - Parameters:
- vpcId- The VPC ID; applicable only if the stack is running in a VPC.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
attributesWithStringsThe stack's attributes. - Parameters:
- attributes- The stack's attributes.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
attributesThe stack's attributes. - Parameters:
- attributes- The stack's attributes.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
serviceRoleArnThe stack Identity and Access Management (IAM) role. - Parameters:
- serviceRoleArn- The stack Identity and Access Management (IAM) role.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
defaultInstanceProfileArnThe ARN of an IAM profile that is the default profile for all of the stack's EC2 instances. For more information about IAM ARNs, see Using Identifiers. - Parameters:
- defaultInstanceProfileArn- The ARN of an IAM profile that is the default profile for all of the stack's EC2 instances. For more information about IAM ARNs, see Using Identifiers.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
defaultOsThe stack's default operating system. - Parameters:
- defaultOs- The stack's default operating system.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
hostnameThemeThe stack host name theme, with spaces replaced by underscores. - Parameters:
- hostnameTheme- The stack host name theme, with spaces replaced by underscores.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
defaultAvailabilityZoneThe stack's default Availability Zone. For more information, see Regions and Endpoints. - Parameters:
- defaultAvailabilityZone- The stack's default Availability Zone. For more information, see Regions and Endpoints.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
defaultSubnetIdThe default subnet ID; applicable only if the stack is running in a VPC. - Parameters:
- defaultSubnetId- The default subnet ID; applicable only if the stack is running in a VPC.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
customJsonA JSON object that contains user-defined attributes to be added to the stack configuration and deployment attributes. You can use custom JSON to override the corresponding default stack configuration attribute values or to pass data to recipes. The string should be in the following format: "{\"key1\": \"value1\", \"key2\": \"value2\",...}"For more information on custom JSON, see Use Custom JSON to Modify the Stack Configuration Attributes. - Parameters:
- customJson- A JSON object that contains user-defined attributes to be added to the stack configuration and deployment attributes. You can use custom JSON to override the corresponding default stack configuration attribute values or to pass data to recipes. The string should be in the following format:- "{\"key1\": \"value1\", \"key2\": \"value2\",...}"- For more information on custom JSON, see Use Custom JSON to Modify the Stack Configuration Attributes. 
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
configurationManagerThe configuration manager. - Parameters:
- configurationManager- The configuration manager.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
configurationManagerdefault Stack.Builder configurationManager(Consumer<StackConfigurationManager.Builder> configurationManager) The configuration manager. This is a convenience method that creates an instance of theStackConfigurationManager.Builderavoiding the need to create one manually viaStackConfigurationManager.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toconfigurationManager(StackConfigurationManager).- Parameters:
- configurationManager- a consumer that will call methods on- StackConfigurationManager.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
chefConfigurationA ChefConfigurationobject that specifies whether to enable Berkshelf and the Berkshelf version. For more information, see Create a New Stack.- Parameters:
- chefConfiguration- A- ChefConfigurationobject that specifies whether to enable Berkshelf and the Berkshelf version. For more information, see Create a New Stack.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
chefConfigurationA This is a convenience method that creates an instance of theChefConfigurationobject that specifies whether to enable Berkshelf and the Berkshelf version. For more information, see Create a New Stack.ChefConfiguration.Builderavoiding the need to create one manually viaChefConfiguration.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tochefConfiguration(ChefConfiguration).- Parameters:
- chefConfiguration- a consumer that will call methods on- ChefConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
useCustomCookbooksWhether the stack uses custom cookbooks. - Parameters:
- useCustomCookbooks- Whether the stack uses custom cookbooks.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
useOpsworksSecurityGroupsWhether the stack automatically associates the OpsWorks Stacks built-in security groups with the stack's layers. - Parameters:
- useOpsworksSecurityGroups- Whether the stack automatically associates the OpsWorks Stacks built-in security groups with the stack's layers.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
customCookbooksSourceContains the information required to retrieve an app or cookbook from a repository. For more information, see Adding Apps or Cookbooks and Recipes. - Parameters:
- customCookbooksSource- Contains the information required to retrieve an app or cookbook from a repository. For more information, see Adding Apps or Cookbooks and Recipes.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
customCookbooksSourceContains the information required to retrieve an app or cookbook from a repository. For more information, see Adding Apps or Cookbooks and Recipes. This is a convenience method that creates an instance of theSource.Builderavoiding the need to create one manually viaSource.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocustomCookbooksSource(Source).- Parameters:
- customCookbooksSource- a consumer that will call methods on- Source.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
defaultSshKeyNameA default Amazon EC2 key pair for the stack's instances. You can override this value when you create or update an instance. - Parameters:
- defaultSshKeyName- A default Amazon EC2 key pair for the stack's instances. You can override this value when you create or update an instance.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
createdAtThe date when the stack was created. - Parameters:
- createdAt- The date when the stack was created.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
defaultRootDeviceTypeThe default root device type. This value is used by default for all instances in the stack, but you can override it when you create an instance. For more information, see Storage for the Root Device. - Parameters:
- defaultRootDeviceType- The default root device type. This value is used by default for all instances in the stack, but you can override it when you create an instance. For more information, see Storage for the Root Device.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
defaultRootDeviceTypeThe default root device type. This value is used by default for all instances in the stack, but you can override it when you create an instance. For more information, see Storage for the Root Device. - Parameters:
- defaultRootDeviceType- The default root device type. This value is used by default for all instances in the stack, but you can override it when you create an instance. For more information, see Storage for the Root Device.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
agentVersionThe agent version. This parameter is set to LATESTfor auto-update. or a version number for a fixed agent version.- Parameters:
- agentVersion- The agent version. This parameter is set to- LATESTfor auto-update. or a version number for a fixed agent version.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
 
-