Interface OperatingSystem.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<OperatingSystem.Builder,
,OperatingSystem> SdkBuilder<OperatingSystem.Builder,
,OperatingSystem> SdkPojo
- Enclosing class:
OperatingSystem
-
Method Summary
Modifier and TypeMethodDescriptionconfigurationManagers
(Collection<OperatingSystemConfigurationManager> configurationManagers) Supported configuration manager name and versions for an AWS OpsWorks Stacks operating system.configurationManagers
(Consumer<OperatingSystemConfigurationManager.Builder>... configurationManagers) Supported configuration manager name and versions for an AWS OpsWorks Stacks operating system.configurationManagers
(OperatingSystemConfigurationManager... configurationManagers) Supported configuration manager name and versions for an AWS OpsWorks Stacks operating system.The ID of a supported operating system, such asAmazon Linux 2018.03
.The name of the operating system, such asAmazon Linux 2018.03
.reportedName
(String reportedName) A short name for the operating system manufacturer.reportedVersion
(String reportedVersion) The version of the operating system, including the release and edition, if applicable.Indicates that an operating system is not supported for new instances.The type of a supported operating system, eitherLinux
orWindows
.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
name
The name of the operating system, such as
Amazon Linux 2018.03
.- Parameters:
name
- The name of the operating system, such asAmazon Linux 2018.03
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
id
The ID of a supported operating system, such as
Amazon Linux 2018.03
.- Parameters:
id
- The ID of a supported operating system, such asAmazon Linux 2018.03
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
The type of a supported operating system, either
Linux
orWindows
.- Parameters:
type
- The type of a supported operating system, eitherLinux
orWindows
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configurationManagers
OperatingSystem.Builder configurationManagers(Collection<OperatingSystemConfigurationManager> configurationManagers) Supported configuration manager name and versions for an AWS OpsWorks Stacks operating system.
- Parameters:
configurationManagers
- Supported configuration manager name and versions for an AWS OpsWorks Stacks operating system.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configurationManagers
OperatingSystem.Builder configurationManagers(OperatingSystemConfigurationManager... configurationManagers) Supported configuration manager name and versions for an AWS OpsWorks Stacks operating system.
- Parameters:
configurationManagers
- Supported configuration manager name and versions for an AWS OpsWorks Stacks operating system.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configurationManagers
OperatingSystem.Builder configurationManagers(Consumer<OperatingSystemConfigurationManager.Builder>... configurationManagers) Supported configuration manager name and versions for an AWS OpsWorks Stacks operating system.
This is a convenience method that creates an instance of theOperatingSystemConfigurationManager.Builder
avoiding the need to create one manually viaOperatingSystemConfigurationManager.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconfigurationManagers(List<OperatingSystemConfigurationManager>)
.- Parameters:
configurationManagers
- a consumer that will call methods onOperatingSystemConfigurationManager.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
reportedName
A short name for the operating system manufacturer.
- Parameters:
reportedName
- A short name for the operating system manufacturer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reportedVersion
The version of the operating system, including the release and edition, if applicable.
- Parameters:
reportedVersion
- The version of the operating system, including the release and edition, if applicable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
supported
Indicates that an operating system is not supported for new instances.
- Parameters:
supported
- Indicates that an operating system is not supported for new instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-