Class SegmentGroupList
- java.lang.Object
-
- software.amazon.awssdk.services.pinpoint.model.SegmentGroupList
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SegmentGroupList.Builder,SegmentGroupList>
@Generated("software.amazon.awssdk:codegen") public final class SegmentGroupList extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SegmentGroupList.Builder,SegmentGroupList>
Specifies the settings that define the relationships between segment groups for a segment.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSegmentGroupList.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SegmentGroupList.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)List<SegmentGroup>groups()An array that defines the set of segment criteria to evaluate when handling segment groups for the segment.booleanhasGroups()For responses, this returns true if the service returned a value for the Groups property.inthashCode()Includeinclude()Specifies how to handle multiple segment groups for the segment.StringincludeAsString()Specifies how to handle multiple segment groups for the segment.List<SdkField<?>>sdkFields()static Class<? extends SegmentGroupList.Builder>serializableBuilderClass()SegmentGroupList.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
-
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
public final List<SegmentGroup> groups()
An array that defines the set of segment criteria to evaluate when handling segment groups for the segment.
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:
- An array that defines the set of segment criteria to evaluate when handling segment groups for the segment.
-
include
public final Include include()
Specifies how to handle multiple segment groups for the segment. For example, if the segment includes three segment groups, whether the resulting segment includes endpoints that match all, any, or none of the segment groups.
If the service returns an enum value that is not available in the current SDK version,
includewill returnInclude.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromincludeAsString().- Returns:
- Specifies how to handle multiple segment groups for the segment. For example, if the segment includes three segment groups, whether the resulting segment includes endpoints that match all, any, or none of the segment groups.
- See Also:
Include
-
includeAsString
public final String includeAsString()
Specifies how to handle multiple segment groups for the segment. For example, if the segment includes three segment groups, whether the resulting segment includes endpoints that match all, any, or none of the segment groups.
If the service returns an enum value that is not available in the current SDK version,
includewill returnInclude.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromincludeAsString().- Returns:
- Specifies how to handle multiple segment groups for the segment. For example, if the segment includes three segment groups, whether the resulting segment includes endpoints that match all, any, or none of the segment groups.
- See Also:
Include
-
toBuilder
public SegmentGroupList.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SegmentGroupList.Builder,SegmentGroupList>
-
builder
public static SegmentGroupList.Builder builder()
-
serializableBuilderClass
public static Class<? extends SegmentGroupList.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.
-
-