Class Counts
- java.lang.Object
-
- software.amazon.awssdk.services.inspector2.model.Counts
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Counts.Builder,Counts>
@Generated("software.amazon.awssdk:codegen") public final class Counts extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Counts.Builder,Counts>
a structure that contains information on the count of resources within a group.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCounts.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Counts.Builderbuilder()Longcount()The number of resources.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)GroupKeygroupKey()The key associated with this groupStringgroupKeyAsString()The key associated with this groupinthashCode()List<SdkField<?>>sdkFields()static Class<? extends Counts.Builder>serializableBuilderClass()Counts.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
-
count
public final Long count()
The number of resources.
- Returns:
- The number of resources.
-
groupKey
public final GroupKey groupKey()
The key associated with this group
If the service returns an enum value that is not available in the current SDK version,
groupKeywill returnGroupKey.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromgroupKeyAsString().- Returns:
- The key associated with this group
- See Also:
GroupKey
-
groupKeyAsString
public final String groupKeyAsString()
The key associated with this group
If the service returns an enum value that is not available in the current SDK version,
groupKeywill returnGroupKey.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromgroupKeyAsString().- Returns:
- The key associated with this group
- See Also:
GroupKey
-
toBuilder
public Counts.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Counts.Builder,Counts>
-
builder
public static Counts.Builder builder()
-
serializableBuilderClass
public static Class<? extends Counts.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.
-
-