Class GetScanResponse
- java.lang.Object
-
- software.amazon.awssdk.core.SdkResponse
-
- software.amazon.awssdk.awscore.AwsResponse
-
- software.amazon.awssdk.services.codegurusecurity.model.CodeGuruSecurityResponse
-
- software.amazon.awssdk.services.codegurusecurity.model.GetScanResponse
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<GetScanResponse.Builder,GetScanResponse>
@Generated("software.amazon.awssdk:codegen") public final class GetScanResponse extends CodeGuruSecurityResponse implements ToCopyableBuilder<GetScanResponse.Builder,GetScanResponse>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGetScanResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AnalysisTypeanalysisType()The type of analysis CodeGuru Security performed in the scan, eitherSecurityorAll.StringanalysisTypeAsString()The type of analysis CodeGuru Security performed in the scan, eitherSecurityorAll.static GetScanResponse.Builderbuilder()InstantcreatedAt()The time the scan was created.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()LongnumberOfRevisions()The number of times a scan has been re-run on a revised resource.StringrunId()UUID that identifies the individual scan run.StringscanName()The name of the scan.StringscanNameArn()The ARN for the scan name.ScanStatescanState()The current state of the scan.StringscanStateAsString()The current state of the scan.List<SdkField<?>>sdkFields()static Class<? extends GetScanResponse.Builder>serializableBuilderClass()GetScanResponse.BuildertoBuilder()StringtoString()Returns a string representation of this object.InstantupdatedAt()The time when the scan was last updated.-
Methods inherited from class software.amazon.awssdk.services.codegurusecurity.model.CodeGuruSecurityResponse
responseMetadata
-
Methods inherited from class software.amazon.awssdk.core.SdkResponse
sdkHttpResponse
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
analysisType
public final AnalysisType analysisType()
The type of analysis CodeGuru Security performed in the scan, either
SecurityorAll. TheSecuritytype only generates findings related to security. TheAlltype generates both security findings and quality findings.If the service returns an enum value that is not available in the current SDK version,
analysisTypewill returnAnalysisType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromanalysisTypeAsString().- Returns:
- The type of analysis CodeGuru Security performed in the scan, either
SecurityorAll. TheSecuritytype only generates findings related to security. TheAlltype generates both security findings and quality findings. - See Also:
AnalysisType
-
analysisTypeAsString
public final String analysisTypeAsString()
The type of analysis CodeGuru Security performed in the scan, either
SecurityorAll. TheSecuritytype only generates findings related to security. TheAlltype generates both security findings and quality findings.If the service returns an enum value that is not available in the current SDK version,
analysisTypewill returnAnalysisType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromanalysisTypeAsString().- Returns:
- The type of analysis CodeGuru Security performed in the scan, either
SecurityorAll. TheSecuritytype only generates findings related to security. TheAlltype generates both security findings and quality findings. - See Also:
AnalysisType
-
createdAt
public final Instant createdAt()
The time the scan was created.
- Returns:
- The time the scan was created.
-
numberOfRevisions
public final Long numberOfRevisions()
The number of times a scan has been re-run on a revised resource.
- Returns:
- The number of times a scan has been re-run on a revised resource.
-
runId
public final String runId()
UUID that identifies the individual scan run.
- Returns:
- UUID that identifies the individual scan run.
-
scanName
public final String scanName()
The name of the scan.
- Returns:
- The name of the scan.
-
scanNameArn
public final String scanNameArn()
The ARN for the scan name.
- Returns:
- The ARN for the scan name.
-
scanState
public final ScanState scanState()
The current state of the scan. Pass either
InProgress,Successful, orFailed.If the service returns an enum value that is not available in the current SDK version,
scanStatewill returnScanState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromscanStateAsString().- Returns:
- The current state of the scan. Pass either
InProgress,Successful, orFailed. - See Also:
ScanState
-
scanStateAsString
public final String scanStateAsString()
The current state of the scan. Pass either
InProgress,Successful, orFailed.If the service returns an enum value that is not available in the current SDK version,
scanStatewill returnScanState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromscanStateAsString().- Returns:
- The current state of the scan. Pass either
InProgress,Successful, orFailed. - See Also:
ScanState
-
updatedAt
public final Instant updatedAt()
The time when the scan was last updated. Only available for
STANDARDscan types.- Returns:
- The time when the scan was last updated. Only available for
STANDARDscan types.
-
toBuilder
public GetScanResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<GetScanResponse.Builder,GetScanResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static GetScanResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends GetScanResponse.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsResponse
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsResponse
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkResponse
-
-