@Generated(value="software.amazon.awssdk:codegen") public final class AssessmentTemplate extends Object implements SdkPojo, Serializable, 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.
|
Integer |
assessmentRunCount()
The number of existing assessment runs associated with this 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 template.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasRulesPackageArns()
Returns true if the RulesPackageArns property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
boolean |
hasUserAttributesForFindings()
Returns true if the UserAttributesForFindings property was specified by the sender (it may be empty), or false if
the sender did not specify the value (it will be empty).
|
String |
lastAssessmentRunArn()
The Amazon Resource Name (ARN) of the most recent assessment run associated with this assessment template.
|
String |
name()
The name of the assessment template.
|
List<String> |
rulesPackageArns()
The rules packages that are specified for this assessment template.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AssessmentTemplate.Builder> |
serializableBuilderClass() |
AssessmentTemplate.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
List<Attribute> |
userAttributesForFindings()
The user-defined attributes that are assigned to every generated finding from the assessment run that uses this
assessment template.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String arn()
The ARN of the assessment template.
public final String name()
The name of the assessment template.
public final String assessmentTargetArn()
The ARN of the assessment target that corresponds to this assessment template.
public final Integer durationInSeconds()
The duration in seconds specified for this assessment template. The default value is 3600 seconds (one hour). The maximum value is 86400 seconds (one day).
public final boolean hasRulesPackageArns()
public final 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.
You can use hasRulesPackageArns() to see if a value was sent in this field.
public final boolean hasUserAttributesForFindings()
public final 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.
You can use hasUserAttributesForFindings() to see if a value was sent in this field.
public final String lastAssessmentRunArn()
The Amazon Resource Name (ARN) of the most recent assessment run associated with this assessment template. This value exists only when the value of assessmentRunCount is greaterpa than zero.
public final Integer assessmentRunCount()
The number of existing assessment runs associated with this assessment template. This value can be zero or a positive integer.
public final Instant createdAt()
The time at which the assessment template is created.
public AssessmentTemplate.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AssessmentTemplate.Builder,AssessmentTemplate>public static AssessmentTemplate.Builder builder()
public static Class<? extends AssessmentTemplate.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.