Class RecommendedAction
- java.lang.Object
-
- software.amazon.awssdk.services.redshift.model.RecommendedAction
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<RecommendedAction.Builder,RecommendedAction>
@Generated("software.amazon.awssdk:codegen") public final class RecommendedAction extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RecommendedAction.Builder,RecommendedAction>
The recommended action from the Amazon Redshift Advisor recommendation.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
RecommendedAction.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RecommendedAction.Builder
builder()
String
command()
The command to run.String
database()
The database name to perform the action on.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
Map<String,SdkField<?>>
sdkFieldNameToField()
List<SdkField<?>>
sdkFields()
static Class<? extends RecommendedAction.Builder>
serializableBuilderClass()
String
text()
The specific instruction about the command.RecommendedAction.Builder
toBuilder()
String
toString()
Returns a string representation of this object.RecommendedActionType
type()
The type of command.String
typeAsString()
The type of command.-
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
-
text
public final String text()
The specific instruction about the command.
- Returns:
- The specific instruction about the command.
-
database
public final String database()
The database name to perform the action on. Only applicable if the type of command is SQL.
- Returns:
- The database name to perform the action on. Only applicable if the type of command is SQL.
-
command
public final String command()
The command to run.
- Returns:
- The command to run.
-
type
public final RecommendedActionType type()
The type of command.
If the service returns an enum value that is not available in the current SDK version,
type
will returnRecommendedActionType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromtypeAsString()
.- Returns:
- The type of command.
- See Also:
RecommendedActionType
-
typeAsString
public final String typeAsString()
The type of command.
If the service returns an enum value that is not available in the current SDK version,
type
will returnRecommendedActionType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromtypeAsString()
.- Returns:
- The type of command.
- See Also:
RecommendedActionType
-
toBuilder
public RecommendedAction.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<RecommendedAction.Builder,RecommendedAction>
-
builder
public static RecommendedAction.Builder builder()
-
serializableBuilderClass
public static Class<? extends RecommendedAction.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in 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:
sdkFieldNameToField
in interfaceSdkPojo
-
-