Class PutProtectConfigurationRuleSetNumberOverrideRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.pinpointsmsvoicev2.model.PinpointSmsVoiceV2Request
-
- software.amazon.awssdk.services.pinpointsmsvoicev2.model.PutProtectConfigurationRuleSetNumberOverrideRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<PutProtectConfigurationRuleSetNumberOverrideRequest.Builder,PutProtectConfigurationRuleSetNumberOverrideRequest>
@Generated("software.amazon.awssdk:codegen") public final class PutProtectConfigurationRuleSetNumberOverrideRequest extends PinpointSmsVoiceV2Request implements ToCopyableBuilder<PutProtectConfigurationRuleSetNumberOverrideRequest.Builder,PutProtectConfigurationRuleSetNumberOverrideRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePutProtectConfigurationRuleSetNumberOverrideRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ProtectConfigurationRuleOverrideActionaction()The action for the rule to either block or allow messages to the destination phone number.StringactionAsString()The action for the rule to either block or allow messages to the destination phone number.static PutProtectConfigurationRuleSetNumberOverrideRequest.Builderbuilder()StringclientToken()Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.StringdestinationPhoneNumber()The destination phone number in E.164 format.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)InstantexpirationTimestamp()The time the rule will expire at.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringprotectConfigurationId()The unique identifier for the protect configuration.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends PutProtectConfigurationRuleSetNumberOverrideRequest.Builder>serializableBuilderClass()PutProtectConfigurationRuleSetNumberOverrideRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
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
-
clientToken
public final String clientToken()
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.
- Returns:
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.
-
protectConfigurationId
public final String protectConfigurationId()
The unique identifier for the protect configuration.
- Returns:
- The unique identifier for the protect configuration.
-
destinationPhoneNumber
public final String destinationPhoneNumber()
The destination phone number in E.164 format.
- Returns:
- The destination phone number in E.164 format.
-
action
public final ProtectConfigurationRuleOverrideAction action()
The action for the rule to either block or allow messages to the destination phone number.
If the service returns an enum value that is not available in the current SDK version,
actionwill returnProtectConfigurationRuleOverrideAction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromactionAsString().- Returns:
- The action for the rule to either block or allow messages to the destination phone number.
- See Also:
ProtectConfigurationRuleOverrideAction
-
actionAsString
public final String actionAsString()
The action for the rule to either block or allow messages to the destination phone number.
If the service returns an enum value that is not available in the current SDK version,
actionwill returnProtectConfigurationRuleOverrideAction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromactionAsString().- Returns:
- The action for the rule to either block or allow messages to the destination phone number.
- See Also:
ProtectConfigurationRuleOverrideAction
-
expirationTimestamp
public final Instant expirationTimestamp()
The time the rule will expire at. If
ExpirationTimestampis not set then the rule does not expire.- Returns:
- The time the rule will expire at. If
ExpirationTimestampis not set then the rule does not expire.
-
toBuilder
public PutProtectConfigurationRuleSetNumberOverrideRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PutProtectConfigurationRuleSetNumberOverrideRequest.Builder,PutProtectConfigurationRuleSetNumberOverrideRequest>- Specified by:
toBuilderin classPinpointSmsVoiceV2Request
-
builder
public static PutProtectConfigurationRuleSetNumberOverrideRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends PutProtectConfigurationRuleSetNumberOverrideRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-