Interface DescribeAgentVersionsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<DescribeAgentVersionsResponse.Builder,
,DescribeAgentVersionsResponse> OpsWorksResponse.Builder
,SdkBuilder<DescribeAgentVersionsResponse.Builder,
,DescribeAgentVersionsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
DescribeAgentVersionsResponse
public static interface DescribeAgentVersionsResponse.Builder
extends OpsWorksResponse.Builder, SdkPojo, CopyableBuilder<DescribeAgentVersionsResponse.Builder,DescribeAgentVersionsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionagentVersions
(Collection<AgentVersion> agentVersions) The agent versions for the specified stack or configuration manager.agentVersions
(Consumer<AgentVersion.Builder>... agentVersions) The agent versions for the specified stack or configuration manager.agentVersions
(AgentVersion... agentVersions) The agent versions for the specified stack or configuration manager.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.opsworks.model.OpsWorksResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
agentVersions
The agent versions for the specified stack or configuration manager. Note that this value is the complete version number, not the abbreviated number used by the console.
- Parameters:
agentVersions
- The agent versions for the specified stack or configuration manager. Note that this value is the complete version number, not the abbreviated number used by the console.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agentVersions
The agent versions for the specified stack or configuration manager. Note that this value is the complete version number, not the abbreviated number used by the console.
- Parameters:
agentVersions
- The agent versions for the specified stack or configuration manager. Note that this value is the complete version number, not the abbreviated number used by the console.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agentVersions
DescribeAgentVersionsResponse.Builder agentVersions(Consumer<AgentVersion.Builder>... agentVersions) The agent versions for the specified stack or configuration manager. Note that this value is the complete version number, not the abbreviated number used by the console.
This is a convenience method that creates an instance of theAgentVersion.Builder
avoiding the need to create one manually viaAgentVersion.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toagentVersions(List<AgentVersion>)
.- Parameters:
agentVersions
- a consumer that will call methods onAgentVersion.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-