Class InventoryAggregateResult
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<InventoryAggregateResult.Builder,InventoryAggregateResult>
One requested aggregate and its groups.
EXPIRY_WINDOW always returns its six fixed groups, including groups with a count of 0. They are ordered from expired to 91 or more days.
ISSUANCE_TYPE, REGION, IN_USE, KEY_ALGORITHM, and HIGHEST_FINDING_SEVERITY are ranked aggregates. A ranked aggregate omits groups with a count of 0. It orders groups by Count, descending, and then by Value, ascending. It returns at most 100 groups, and OtherCount carries the remainder.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal InventoryAggregateThe aggregate this result reports.final StringThe aggregate this result reports.builder()The severity groups of each certificate type.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final List<InventoryAggregateGroup> groups()Present only when Status is COMPLETE.final booleanFor responses, this returns true if the service returned a value for the CertificateTypeGroups property.final booleanFor responses, this returns true if the service returned a value for the Groups property.final inthashCode()final LongThe total count of certificates in ranked groups beyond the 100 returned.static Class<? extends InventoryAggregateResult.Builder> final InventoryAggregateStatusstatus()COMPLETE results include Groups; FAILED results omit them.final StringCOMPLETE results include Groups; FAILED results omit them.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final InstantWhen this aggregate's counts were last recomputed, in UTC.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
aggregate
The aggregate this result reports.
If the service returns an enum value that is not available in the current SDK version,
aggregatewill returnInventoryAggregate.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromaggregateAsString().- Returns:
- The aggregate this result reports.
- See Also:
-
aggregateAsString
The aggregate this result reports.
If the service returns an enum value that is not available in the current SDK version,
aggregatewill returnInventoryAggregate.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromaggregateAsString().- Returns:
- The aggregate this result reports.
- See Also:
-
status
COMPLETE results include Groups; FAILED results omit them.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnInventoryAggregateStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- COMPLETE results include Groups; FAILED results omit them.
- See Also:
-
statusAsString
COMPLETE results include Groups; FAILED results omit them.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnInventoryAggregateStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- COMPLETE results include Groups; FAILED results omit them.
- See Also:
-
updatedAt
When this aggregate's counts were last recomputed, in UTC. EXPIRY_WINDOW measures days remaining from this time. Absent when Status is FAILED, or when the organization's counts have not been computed yet.
- Returns:
- When this aggregate's counts were last recomputed, in UTC. EXPIRY_WINDOW measures days remaining from this time. Absent when Status is FAILED, or when the organization's counts have not been computed yet.
-
hasGroups
public final boolean hasGroups()For responses, this returns true if the service returned a value for the Groups 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. -
groups
Present only when Status is COMPLETE. Can be empty for a ranked aggregate.
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
hasGroups()method.- Returns:
- Present only when Status is COMPLETE. Can be empty for a ranked aggregate.
-
otherCount
The total count of certificates in ranked groups beyond the 100 returned. Absent when every group was returned.
- Returns:
- The total count of certificates in ranked groups beyond the 100 returned. Absent when every group was returned.
-
hasCertificateTypeGroups
public final boolean hasCertificateTypeGroups()For responses, this returns true if the service returned a value for the CertificateTypeGroups 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. -
certificateTypeGroups
The severity groups of each certificate type. Present only on a COMPLETE HIGHEST_FINDING_SEVERITY result requested with GroupBy CERTIFICATE_TYPE. Groups still holds the severity groups of all certificate types. A certificate type with no certificates is omitted. The rest are ordered alphabetically by CertificateType value.
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
hasCertificateTypeGroups()method.- Returns:
- The severity groups of each certificate type. Present only on a COMPLETE HIGHEST_FINDING_SEVERITY result requested with GroupBy CERTIFICATE_TYPE. Groups still holds the severity groups of all certificate types. A certificate type with no certificates is omitted. The rest are ordered alphabetically by CertificateType value.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<InventoryAggregateResult.Builder,InventoryAggregateResult> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-