Interface PutEvidenceRequest.Builder
- All Superinterfaces:
AssuranceRequest.Builder,AwsRequest.Builder,Buildable,CopyableBuilder<PutEvidenceRequest.Builder,,PutEvidenceRequest> SdkBuilder<PutEvidenceRequest.Builder,,PutEvidenceRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
PutEvidenceRequest
-
Method Summary
Modifier and TypeMethodDescriptionconnectionId(String connectionId) The ID of the connection to readreferencethrough, as returned byListEnvironmentConnections.The file content.contentMIMEType(String contentMIMEType) The declared Multipurpose Internet Mail Extensions (MIME) type of the file, for exampleapplication/pdf.controlReferences(Collection<ControlReference> controlReferences) The controls to link the evidence to when you add it.controlReferences(Consumer<ControlReference.Builder>... controlReferences) The controls to link the evidence to when you add it.controlReferences(ControlReference... controlReferences) The controls to link the evidence to when you add it.description(String description) The optional description of the evidence.environmentArn(String environmentArn) The Amazon Resource Name (ARN) of this governance environment.evidenceId(String evidenceId) The ID of existing evidence.Specifies whether AWS Assurance analyzes the evidence and links it to relevant controls.Specifies whether AWS Assurance analyzes the evidence and links it to relevant controls.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Project scope for the evidence.What the evidence is for.purpose(EvidencePurpose purpose) What the evidence is for.A link to the document.The title of the evidence.Methods inherited from interface software.amazon.awssdk.services.assurance.model.AssuranceRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
environmentArn
The Amazon Resource Name (ARN) of this governance environment.
- Parameters:
environmentArn- The Amazon Resource Name (ARN) of this governance environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
The file content. Required for a direct upload. You can't specify both
contentandreference.- Parameters:
content- The file content. Required for a direct upload. You can't specify bothcontentandreference.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
title
The title of the evidence. When you create new evidence, AWS Assurance derives the evidence ID from the title, in the form
assurance://{sanitized-title}.Required when you specify
content. Optional when you specifyreference. If you omit it, AWS Assurance uses the name of the referenced document.- Parameters:
title- The title of the evidence. When you create new evidence, AWS Assurance derives the evidence ID from the title, in the formassurance://{sanitized-title}.Required when you specify
content. Optional when you specifyreference. If you omit it, AWS Assurance uses the name of the referenced document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The optional description of the evidence.
- Parameters:
description- The optional description of the evidence.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evidenceId
The ID of existing evidence. Specify it to add a new version of that evidence. Omit it to create new evidence.
- Parameters:
evidenceId- The ID of existing evidence. Specify it to add a new version of that evidence. Omit it to create new evidence.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contentMIMEType
The declared Multipurpose Internet Mail Extensions (MIME) type of the file, for example
application/pdf. AWS Assurance checks the declared type against the actual file content. For the list of registered types, see Media Types on the IANA website.- Parameters:
contentMIMEType- The declared Multipurpose Internet Mail Extensions (MIME) type of the file, for exampleapplication/pdf. AWS Assurance checks the declared type against the actual file content. For the list of registered types, see Media Types on the IANA website.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
project
Project scope for the evidence.
- Parameters:
project- Project scope for the evidence.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reference
A link to the document. You can't specify both
referenceandcontent. Supported formats:-
For a file in GitHub, a link in the form https://github.com/{owner}/{repo}/blob/{ref}/{path}.
-
For a document in SharePoint, any link to the document in the form https://{tenant}.sharepoint.com/{path}, including a sharing link.
-
For an object in Amazon S3, a URI in the form s3://{bucket}/{key}. The bucket must be the evidence bucket configured for the environment.
- Parameters:
reference- A link to the document. You can't specify bothreferenceandcontent. Supported formats:-
For a file in GitHub, a link in the form https://github.com/{owner}/{repo}/blob/{ref}/{path}.
-
For a document in SharePoint, any link to the document in the form https://{tenant}.sharepoint.com/{path}, including a sharing link.
-
For an object in Amazon S3, a URI in the form s3://{bucket}/{key}. The bucket must be the evidence bucket configured for the environment.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
connectionId
The ID of the connection to read
referencethrough, as returned byListEnvironmentConnections. Each new version of the document uses this connection too.Use this parameter only with
reference.If you omit this parameter, the operation uses the single connection that can read the document. If the environment has more than one connection to the same provider, specify this parameter.
- Parameters:
connectionId- The ID of the connection to readreferencethrough, as returned byListEnvironmentConnections. Each new version of the document uses this connection too.Use this parameter only with
reference.If you omit this parameter, the operation uses the single connection that can read the document. If the environment has more than one connection to the same provider, specify this parameter.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
controlReferences
The controls to link the evidence to when you add it. You can specify control links only when
purposeisCONTROL_EVIDENCE.- Parameters:
controlReferences- The controls to link the evidence to when you add it. You can specify control links only whenpurposeisCONTROL_EVIDENCE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
controlReferences
The controls to link the evidence to when you add it. You can specify control links only when
purposeisCONTROL_EVIDENCE.- Parameters:
controlReferences- The controls to link the evidence to when you add it. You can specify control links only whenpurposeisCONTROL_EVIDENCE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
controlReferences
PutEvidenceRequest.Builder controlReferences(Consumer<ControlReference.Builder>... controlReferences) The controls to link the evidence to when you add it. You can specify control links only when
This is a convenience method that creates an instance of thepurposeisCONTROL_EVIDENCE.ControlReference.Builderavoiding the need to create one manually viaControlReference.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocontrolReferences(List<ControlReference>).- Parameters:
controlReferences- a consumer that will call methods onControlReference.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
linkMode
Specifies whether AWS Assurance analyzes the evidence and links it to relevant controls. A link shows that the evidence is relevant to a control, not that you meet the control. An assessment determines whether you meet the control. Specify one of the following values:
-
AUTO– AWS Assurance analyzes the evidence and adds control links. -
MANUAL– AWS Assurance doesn't analyze the evidence. You add control links yourself.
Automatic linking is available only to some accounts during the preview. If you omit this parameter, the default is
AUTOfor those accounts andMANUALfor all other accounts. Evidence whosepurposeisn'tCONTROL_EVIDENCEalways has the modeDISABLED, which means that it can't be linked to controls. You can't specifyAUTOfor that evidence.- Parameters:
linkMode- Specifies whether AWS Assurance analyzes the evidence and links it to relevant controls. A link shows that the evidence is relevant to a control, not that you meet the control. An assessment determines whether you meet the control. Specify one of the following values:-
AUTO– AWS Assurance analyzes the evidence and adds control links. -
MANUAL– AWS Assurance doesn't analyze the evidence. You add control links yourself.
Automatic linking is available only to some accounts during the preview. If you omit this parameter, the default is
AUTOfor those accounts andMANUALfor all other accounts. Evidence whosepurposeisn'tCONTROL_EVIDENCEalways has the modeDISABLED, which means that it can't be linked to controls. You can't specifyAUTOfor that evidence.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
linkMode
Specifies whether AWS Assurance analyzes the evidence and links it to relevant controls. A link shows that the evidence is relevant to a control, not that you meet the control. An assessment determines whether you meet the control. Specify one of the following values:
-
AUTO– AWS Assurance analyzes the evidence and adds control links. -
MANUAL– AWS Assurance doesn't analyze the evidence. You add control links yourself.
Automatic linking is available only to some accounts during the preview. If you omit this parameter, the default is
AUTOfor those accounts andMANUALfor all other accounts. Evidence whosepurposeisn'tCONTROL_EVIDENCEalways has the modeDISABLED, which means that it can't be linked to controls. You can't specifyAUTOfor that evidence.- Parameters:
linkMode- Specifies whether AWS Assurance analyzes the evidence and links it to relevant controls. A link shows that the evidence is relevant to a control, not that you meet the control. An assessment determines whether you meet the control. Specify one of the following values:-
AUTO– AWS Assurance analyzes the evidence and adds control links. -
MANUAL– AWS Assurance doesn't analyze the evidence. You add control links yourself.
Automatic linking is available only to some accounts during the preview. If you omit this parameter, the default is
AUTOfor those accounts andMANUALfor all other accounts. Evidence whosepurposeisn'tCONTROL_EVIDENCEalways has the modeDISABLED, which means that it can't be linked to controls. You can't specifyAUTOfor that evidence.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
purpose
What the evidence is for. Specify one of the following values:
-
CONTROL_EVIDENCE– Evidence that supports controls. -
FRAMEWORK_SOURCE– The document that you create a custom framework from. AWS Assurance never links this evidence to controls.
You can't specify
SCAN_EVIDENCE. If you omit this parameter, a new version keeps the purpose of the existing evidence, and new evidence usesCONTROL_EVIDENCE. You can't change the purpose in a new version.- Parameters:
purpose- What the evidence is for. Specify one of the following values:-
CONTROL_EVIDENCE– Evidence that supports controls. -
FRAMEWORK_SOURCE– The document that you create a custom framework from. AWS Assurance never links this evidence to controls.
You can't specify
SCAN_EVIDENCE. If you omit this parameter, a new version keeps the purpose of the existing evidence, and new evidence usesCONTROL_EVIDENCE. You can't change the purpose in a new version.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
purpose
What the evidence is for. Specify one of the following values:
-
CONTROL_EVIDENCE– Evidence that supports controls. -
FRAMEWORK_SOURCE– The document that you create a custom framework from. AWS Assurance never links this evidence to controls.
You can't specify
SCAN_EVIDENCE. If you omit this parameter, a new version keeps the purpose of the existing evidence, and new evidence usesCONTROL_EVIDENCE. You can't change the purpose in a new version.- Parameters:
purpose- What the evidence is for. Specify one of the following values:-
CONTROL_EVIDENCE– Evidence that supports controls. -
FRAMEWORK_SOURCE– The document that you create a custom framework from. AWS Assurance never links this evidence to controls.
You can't specify
SCAN_EVIDENCE. If you omit this parameter, a new version keeps the purpose of the existing evidence, and new evidence usesCONTROL_EVIDENCE. You can't change the purpose in a new version.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
overrideConfiguration
PutEvidenceRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
PutEvidenceRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-