Class AttributeSummary
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.AttributeSummary
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AttributeSummary.Builder,AttributeSummary>
@Generated("software.amazon.awssdk:codegen") public final class AttributeSummary extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AttributeSummary.Builder,AttributeSummary>
A summary report for the attribute across all Regions.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAttributeSummary.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringattributeName()The name of the attribute.static AttributeSummary.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasRegionalSummaries()For responses, this returns true if the service returned a value for the RegionalSummaries property.StringmostFrequentValue()The configuration value that is most frequently observed for the attribute.IntegernumberOfMatchedAccounts()The number of accounts with the same configuration value for the attribute that is most frequently observed.IntegernumberOfUnmatchedAccounts()The number of accounts with a configuration value different from the most frequently observed value for the attribute.List<RegionalSummary>regionalSummaries()The summary report for each Region for the attribute.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends AttributeSummary.Builder>serializableBuilderClass()AttributeSummary.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
-
attributeName
public final String attributeName()
The name of the attribute.
- Returns:
- The name of the attribute.
-
mostFrequentValue
public final String mostFrequentValue()
The configuration value that is most frequently observed for the attribute.
- Returns:
- The configuration value that is most frequently observed for the attribute.
-
numberOfMatchedAccounts
public final Integer numberOfMatchedAccounts()
The number of accounts with the same configuration value for the attribute that is most frequently observed.
- Returns:
- The number of accounts with the same configuration value for the attribute that is most frequently observed.
-
numberOfUnmatchedAccounts
public final Integer numberOfUnmatchedAccounts()
The number of accounts with a configuration value different from the most frequently observed value for the attribute.
- Returns:
- The number of accounts with a configuration value different from the most frequently observed value for the attribute.
-
hasRegionalSummaries
public final boolean hasRegionalSummaries()
For responses, this returns true if the service returned a value for the RegionalSummaries 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.
-
regionalSummaries
public final List<RegionalSummary> regionalSummaries()
The summary report for each Region for the attribute.
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
hasRegionalSummaries()method.- Returns:
- The summary report for each Region for the attribute.
-
toBuilder
public AttributeSummary.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AttributeSummary.Builder,AttributeSummary>
-
builder
public static AttributeSummary.Builder builder()
-
serializableBuilderClass
public static Class<? extends AttributeSummary.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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-