Class CisTargetResourceAggregation
- java.lang.Object
-
- software.amazon.awssdk.services.inspector2.model.CisTargetResourceAggregation
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<CisTargetResourceAggregation.Builder,CisTargetResourceAggregation>
@Generated("software.amazon.awssdk:codegen") public final class CisTargetResourceAggregation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CisTargetResourceAggregation.Builder,CisTargetResourceAggregation>
The CIS target resource aggregation.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCisTargetResourceAggregation.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaccountId()The account ID for the CIS target resource.static CisTargetResourceAggregation.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasTargetResourceTags()For responses, this returns true if the service returned a value for the TargetResourceTags property.Stringplatform()The platform for the CIS target resource.StringscanArn()The scan ARN for the CIS target resource.List<SdkField<?>>sdkFields()static Class<? extends CisTargetResourceAggregation.Builder>serializableBuilderClass()StatusCountsstatusCounts()The target resource status counts.StringtargetResourceId()The ID of the target resource.Map<String,List<String>>targetResourceTags()The tag for the target resource.CisTargetStatustargetStatus()The status of the target resource.StringtargetStatusAsString()The status of the target resource.CisTargetStatusReasontargetStatusReason()The reason for the target resource.StringtargetStatusReasonAsString()The reason for the target resource.CisTargetResourceAggregation.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
accountId
public final String accountId()
The account ID for the CIS target resource.
- Returns:
- The account ID for the CIS target resource.
-
platform
public final String platform()
The platform for the CIS target resource.
- Returns:
- The platform for the CIS target resource.
-
scanArn
public final String scanArn()
The scan ARN for the CIS target resource.
- Returns:
- The scan ARN for the CIS target resource.
-
statusCounts
public final StatusCounts statusCounts()
The target resource status counts.
- Returns:
- The target resource status counts.
-
targetResourceId
public final String targetResourceId()
The ID of the target resource.
- Returns:
- The ID of the target resource.
-
hasTargetResourceTags
public final boolean hasTargetResourceTags()
For responses, this returns true if the service returned a value for the TargetResourceTags property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
targetResourceTags
public final Map<String,List<String>> targetResourceTags()
The tag for the target resource.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasTargetResourceTags()method.- Returns:
- The tag for the target resource.
-
targetStatus
public final CisTargetStatus targetStatus()
The status of the target resource.
If the service returns an enum value that is not available in the current SDK version,
targetStatuswill returnCisTargetStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtargetStatusAsString().- Returns:
- The status of the target resource.
- See Also:
CisTargetStatus
-
targetStatusAsString
public final String targetStatusAsString()
The status of the target resource.
If the service returns an enum value that is not available in the current SDK version,
targetStatuswill returnCisTargetStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtargetStatusAsString().- Returns:
- The status of the target resource.
- See Also:
CisTargetStatus
-
targetStatusReason
public final CisTargetStatusReason targetStatusReason()
The reason for the target resource.
If the service returns an enum value that is not available in the current SDK version,
targetStatusReasonwill returnCisTargetStatusReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtargetStatusReasonAsString().- Returns:
- The reason for the target resource.
- See Also:
CisTargetStatusReason
-
targetStatusReasonAsString
public final String targetStatusReasonAsString()
The reason for the target resource.
If the service returns an enum value that is not available in the current SDK version,
targetStatusReasonwill returnCisTargetStatusReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtargetStatusReasonAsString().- Returns:
- The reason for the target resource.
- See Also:
CisTargetStatusReason
-
toBuilder
public CisTargetResourceAggregation.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CisTargetResourceAggregation.Builder,CisTargetResourceAggregation>
-
builder
public static CisTargetResourceAggregation.Builder builder()
-
serializableBuilderClass
public static Class<? extends CisTargetResourceAggregation.Builder> serializableBuilderClass()
-
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.
-
-