Interface Insight.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Insight.Builder,Insight>,SdkBuilder<Insight.Builder,Insight>,SdkPojo
- Enclosing class:
- Insight
public static interface Insight.Builder extends SdkPojo, CopyableBuilder<Insight.Builder,Insight>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Insight.BuilderadditionalInfo(Map<String,String> additionalInfo)Links to sources that provide additional context on the insight.Insight.Buildercategory(String category)The category of the insight.Insight.Buildercategory(Category category)The category of the insight.default Insight.BuildercategorySpecificSummary(Consumer<InsightCategorySpecificSummary.Builder> categorySpecificSummary)Summary information that relates to the category of the insight.Insight.BuildercategorySpecificSummary(InsightCategorySpecificSummary categorySpecificSummary)Summary information that relates to the category of the insight.Insight.Builderdescription(String description)The description of the insight which includes alert criteria, remediation recommendation, and additional resources (contains Markdown).Insight.Builderid(String id)The ID of the insight.default Insight.BuilderinsightStatus(Consumer<InsightStatus.Builder> insightStatus)An object containing more detail on the status of the insight resource.Insight.BuilderinsightStatus(InsightStatus insightStatus)An object containing more detail on the status of the insight resource.Insight.BuilderkubernetesVersion(String kubernetesVersion)The Kubernetes minor version associated with an insight if applicable.Insight.BuilderlastRefreshTime(Instant lastRefreshTime)The time Amazon EKS last successfully completed a refresh of this insight check on the cluster.Insight.BuilderlastTransitionTime(Instant lastTransitionTime)The time the status of the insight last changed.Insight.Buildername(String name)The name of the insight.Insight.Builderrecommendation(String recommendation)A summary of how to remediate the finding of this insight if applicable.Insight.Builderresources(Collection<InsightResourceDetail> resources)The details about each resource listed in the insight check result.Insight.Builderresources(Consumer<InsightResourceDetail.Builder>... resources)The details about each resource listed in the insight check result.Insight.Builderresources(InsightResourceDetail... resources)The details about each resource listed in the insight check result.-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
id
Insight.Builder id(String id)
The ID of the insight.
- Parameters:
id- The ID of the insight.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
Insight.Builder name(String name)
The name of the insight.
- Parameters:
name- The name of the insight.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
category
Insight.Builder category(String category)
The category of the insight.
-
category
Insight.Builder category(Category category)
The category of the insight.
-
kubernetesVersion
Insight.Builder kubernetesVersion(String kubernetesVersion)
The Kubernetes minor version associated with an insight if applicable.
- Parameters:
kubernetesVersion- The Kubernetes minor version associated with an insight if applicable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastRefreshTime
Insight.Builder lastRefreshTime(Instant lastRefreshTime)
The time Amazon EKS last successfully completed a refresh of this insight check on the cluster.
- Parameters:
lastRefreshTime- The time Amazon EKS last successfully completed a refresh of this insight check on the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastTransitionTime
Insight.Builder lastTransitionTime(Instant lastTransitionTime)
The time the status of the insight last changed.
- Parameters:
lastTransitionTime- The time the status of the insight last changed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
Insight.Builder description(String description)
The description of the insight which includes alert criteria, remediation recommendation, and additional resources (contains Markdown).
- Parameters:
description- The description of the insight which includes alert criteria, remediation recommendation, and additional resources (contains Markdown).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
insightStatus
Insight.Builder insightStatus(InsightStatus insightStatus)
An object containing more detail on the status of the insight resource.
- Parameters:
insightStatus- An object containing more detail on the status of the insight resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
insightStatus
default Insight.Builder insightStatus(Consumer<InsightStatus.Builder> insightStatus)
An object containing more detail on the status of the insight resource.
This is a convenience method that creates an instance of theInsightStatus.Builderavoiding the need to create one manually viaInsightStatus.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinsightStatus(InsightStatus).- Parameters:
insightStatus- a consumer that will call methods onInsightStatus.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
insightStatus(InsightStatus)
-
recommendation
Insight.Builder recommendation(String recommendation)
A summary of how to remediate the finding of this insight if applicable.
- Parameters:
recommendation- A summary of how to remediate the finding of this insight if applicable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
additionalInfo
Insight.Builder additionalInfo(Map<String,String> additionalInfo)
Links to sources that provide additional context on the insight.
- Parameters:
additionalInfo- Links to sources that provide additional context on the insight.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resources
Insight.Builder resources(Collection<InsightResourceDetail> resources)
The details about each resource listed in the insight check result.
- Parameters:
resources- The details about each resource listed in the insight check result.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resources
Insight.Builder resources(InsightResourceDetail... resources)
The details about each resource listed in the insight check result.
- Parameters:
resources- The details about each resource listed in the insight check result.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resources
Insight.Builder resources(Consumer<InsightResourceDetail.Builder>... resources)
The details about each resource listed in the insight check result.
This is a convenience method that creates an instance of theInsightResourceDetail.Builderavoiding the need to create one manually viaInsightResourceDetail.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#resources(List.) - Parameters:
resources- a consumer that will call methods onInsightResourceDetail.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#resources(java.util.Collection)
-
categorySpecificSummary
Insight.Builder categorySpecificSummary(InsightCategorySpecificSummary categorySpecificSummary)
Summary information that relates to the category of the insight. Currently only returned with certain insights having category
UPGRADE_READINESS.- Parameters:
categorySpecificSummary- Summary information that relates to the category of the insight. Currently only returned with certain insights having categoryUPGRADE_READINESS.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
categorySpecificSummary
default Insight.Builder categorySpecificSummary(Consumer<InsightCategorySpecificSummary.Builder> categorySpecificSummary)
Summary information that relates to the category of the insight. Currently only returned with certain insights having category
This is a convenience method that creates an instance of theUPGRADE_READINESS.InsightCategorySpecificSummary.Builderavoiding the need to create one manually viaInsightCategorySpecificSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocategorySpecificSummary(InsightCategorySpecificSummary).- Parameters:
categorySpecificSummary- a consumer that will call methods onInsightCategorySpecificSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
categorySpecificSummary(InsightCategorySpecificSummary)
-
-