@Generated(value="software.amazon.awssdk:codegen") public class AssessmentTemplate extends Object implements StructuredPojo, ToCopyableBuilder<AssessmentTemplate.Builder,AssessmentTemplate>
Contains information about an Amazon Inspector assessment template. This data type is used as the response element in the DescribeAssessmentTemplates action.
Modifier and Type | Class and Description |
---|---|
static interface |
AssessmentTemplate.Builder |
Modifier and Type | Method and Description |
---|---|
String |
arn()
The ARN of the assessment template.
|
String |
assessmentTargetArn()
The ARN of the assessment target that corresponds to this assessment template.
|
static AssessmentTemplate.Builder |
builder() |
Instant |
createdAt()
The time at which the assessment template is created.
|
Integer |
durationInSeconds()
The duration in seconds specified for this assessment tempate.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
name()
The name of the assessment template.
|
List<String> |
rulesPackageArns()
The rules packages that are specified for this assessment template.
|
static Class<? extends AssessmentTemplate.Builder> |
serializableBuilderClass() |
AssessmentTemplate.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
List<Attribute> |
userAttributesForFindings()
The user-defined attributes that are assigned to every generated finding from the assessment run that uses this
assessment template.
|
copy
public String arn()
The ARN of the assessment template.
public String name()
The name of the assessment template.
public String assessmentTargetArn()
The ARN of the assessment target that corresponds to this assessment template.
public Integer durationInSeconds()
The duration in seconds specified for this assessment tempate. The default value is 3600 seconds (one hour). The maximum value is 86400 seconds (one day).
public List<String> rulesPackageArns()
The rules packages that are specified for this assessment template.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public List<Attribute> userAttributesForFindings()
The user-defined attributes that are assigned to every generated finding from the assessment run that uses this assessment template.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Instant createdAt()
The time at which the assessment template is created.
public AssessmentTemplate.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<AssessmentTemplate.Builder,AssessmentTemplate>
public static AssessmentTemplate.Builder builder()
public static Class<? extends AssessmentTemplate.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.