Class SectionalElement
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<SectionalElement.Builder,
SectionalElement>
Stores the configuration information for a visual helper element for a form. A sectional element can be a header, a text block, or a divider. These elements are static and not associated with any data.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic SectionalElement.Builder
builder()
final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final Boolean
excluded()
Excludes a sectional element that was generated by default for a specified data model.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final Integer
level()
Specifies the size of the font for aHeading
sectional element.final String
Specifies the orientation for aDivider
sectional element.final FieldPosition
position()
Specifies the position of the text in a field for aText
sectional element.static Class
<? extends SectionalElement.Builder> final String
text()
The text for aText
sectional element.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final String
type()
The type of sectional element.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
type
The type of sectional element. Valid values are
Heading
,Text
, andDivider
.- Returns:
- The type of sectional element. Valid values are
Heading
,Text
, andDivider
.
-
position
Specifies the position of the text in a field for a
Text
sectional element.- Returns:
- Specifies the position of the text in a field for a
Text
sectional element.
-
text
The text for a
Text
sectional element.- Returns:
- The text for a
Text
sectional element.
-
level
Specifies the size of the font for a
Heading
sectional element. Valid values are1 | 2 | 3 | 4 | 5 | 6
.- Returns:
- Specifies the size of the font for a
Heading
sectional element. Valid values are1 | 2 | 3 | 4 | 5 | 6
.
-
orientation
Specifies the orientation for a
Divider
sectional element. Valid values arehorizontal
orvertical
.- Returns:
- Specifies the orientation for a
Divider
sectional element. Valid values arehorizontal
orvertical
.
-
excluded
Excludes a sectional element that was generated by default for a specified data model.
- Returns:
- Excludes a sectional element that was generated by default for a specified data model.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<SectionalElement.Builder,
SectionalElement> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in 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:
sdkFieldNameToField
in interfaceSdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
-