Class UpdateLoadBalancerAttributeRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.lightsail.model.LightsailRequest
-
- software.amazon.awssdk.services.lightsail.model.UpdateLoadBalancerAttributeRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<UpdateLoadBalancerAttributeRequest.Builder,UpdateLoadBalancerAttributeRequest>
@Generated("software.amazon.awssdk:codegen") public final class UpdateLoadBalancerAttributeRequest extends LightsailRequest implements ToCopyableBuilder<UpdateLoadBalancerAttributeRequest.Builder,UpdateLoadBalancerAttributeRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUpdateLoadBalancerAttributeRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LoadBalancerAttributeNameattributeName()The name of the attribute you want to update.StringattributeNameAsString()The name of the attribute you want to update.StringattributeValue()The value that you want to specify for the attribute name.static UpdateLoadBalancerAttributeRequest.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringloadBalancerName()The name of the load balancer that you want to modify (my-load-balancer.List<SdkField<?>>sdkFields()static Class<? extends UpdateLoadBalancerAttributeRequest.Builder>serializableBuilderClass()UpdateLoadBalancerAttributeRequest.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
-
loadBalancerName
public final String loadBalancerName()
The name of the load balancer that you want to modify (
my-load-balancer.- Returns:
- The name of the load balancer that you want to modify (
my-load-balancer.
-
attributeName
public final LoadBalancerAttributeName attributeName()
The name of the attribute you want to update.
If the service returns an enum value that is not available in the current SDK version,
attributeNamewill returnLoadBalancerAttributeName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromattributeNameAsString().- Returns:
- The name of the attribute you want to update.
- See Also:
LoadBalancerAttributeName
-
attributeNameAsString
public final String attributeNameAsString()
The name of the attribute you want to update.
If the service returns an enum value that is not available in the current SDK version,
attributeNamewill returnLoadBalancerAttributeName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromattributeNameAsString().- Returns:
- The name of the attribute you want to update.
- See Also:
LoadBalancerAttributeName
-
attributeValue
public final String attributeValue()
The value that you want to specify for the attribute name.
The following values are supported depending on what you specify for the
attributeNamerequest parameter:-
If you specify
HealthCheckPathfor theattributeNamerequest parameter, then theattributeValuerequest parameter must be the path to ping on the target (for example,/weather/us/wa/seattle). -
If you specify
SessionStickinessEnabledfor theattributeNamerequest parameter, then theattributeValuerequest parameter must betrueto activate session stickiness orfalseto deactivate session stickiness. -
If you specify
SessionStickiness_LB_CookieDurationSecondsfor theattributeNamerequest parameter, then theattributeValuerequest parameter must be an interger that represents the cookie duration in seconds. -
If you specify
HttpsRedirectionEnabledfor theattributeNamerequest parameter, then theattributeValuerequest parameter must betrueto activate HTTP to HTTPS redirection orfalseto deactivate HTTP to HTTPS redirection. -
If you specify
TlsPolicyNamefor theattributeNamerequest parameter, then theattributeValuerequest parameter must be the name of the TLS policy.Use the GetLoadBalancerTlsPolicies action to get a list of TLS policy names that you can specify.
- Returns:
- The value that you want to specify for the attribute name.
The following values are supported depending on what you specify for the
attributeNamerequest parameter:-
If you specify
HealthCheckPathfor theattributeNamerequest parameter, then theattributeValuerequest parameter must be the path to ping on the target (for example,/weather/us/wa/seattle). -
If you specify
SessionStickinessEnabledfor theattributeNamerequest parameter, then theattributeValuerequest parameter must betrueto activate session stickiness orfalseto deactivate session stickiness. -
If you specify
SessionStickiness_LB_CookieDurationSecondsfor theattributeNamerequest parameter, then theattributeValuerequest parameter must be an interger that represents the cookie duration in seconds. -
If you specify
HttpsRedirectionEnabledfor theattributeNamerequest parameter, then theattributeValuerequest parameter must betrueto activate HTTP to HTTPS redirection orfalseto deactivate HTTP to HTTPS redirection. -
If you specify
TlsPolicyNamefor theattributeNamerequest parameter, then theattributeValuerequest parameter must be the name of the TLS policy.Use the GetLoadBalancerTlsPolicies action to get a list of TLS policy names that you can specify.
-
-
-
toBuilder
public UpdateLoadBalancerAttributeRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<UpdateLoadBalancerAttributeRequest.Builder,UpdateLoadBalancerAttributeRequest>- Specified by:
toBuilderin classLightsailRequest
-
builder
public static UpdateLoadBalancerAttributeRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends UpdateLoadBalancerAttributeRequest.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
-
-