Class TrafficRoutingConfig
- java.lang.Object
-
- software.amazon.awssdk.services.codedeploy.model.TrafficRoutingConfig
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<TrafficRoutingConfig.Builder,TrafficRoutingConfig>
@Generated("software.amazon.awssdk:codegen") public final class TrafficRoutingConfig extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TrafficRoutingConfig.Builder,TrafficRoutingConfig>
The configuration that specifies how traffic is shifted from one version of a Lambda function to another version during an Lambda deployment, or from one Amazon ECS task set to another during an Amazon ECS deployment.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTrafficRoutingConfig.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TrafficRoutingConfig.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends TrafficRoutingConfig.Builder>serializableBuilderClass()TimeBasedCanarytimeBasedCanary()A configuration that shifts traffic from one version of a Lambda function or ECS task set to another in two increments.TimeBasedLineartimeBasedLinear()A configuration that shifts traffic from one version of a Lambda function or Amazon ECS task set to another in equal increments, with an equal number of minutes between each increment.TrafficRoutingConfig.BuildertoBuilder()StringtoString()Returns a string representation of this object.TrafficRoutingTypetype()The type of traffic shifting (TimeBasedCanaryorTimeBasedLinear) used by a deployment configuration.StringtypeAsString()The type of traffic shifting (TimeBasedCanaryorTimeBasedLinear) used by a deployment configuration.-
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
-
type
public final TrafficRoutingType type()
The type of traffic shifting (
TimeBasedCanaryorTimeBasedLinear) used by a deployment configuration.If the service returns an enum value that is not available in the current SDK version,
typewill returnTrafficRoutingType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of traffic shifting (
TimeBasedCanaryorTimeBasedLinear) used by a deployment configuration. - See Also:
TrafficRoutingType
-
typeAsString
public final String typeAsString()
The type of traffic shifting (
TimeBasedCanaryorTimeBasedLinear) used by a deployment configuration.If the service returns an enum value that is not available in the current SDK version,
typewill returnTrafficRoutingType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of traffic shifting (
TimeBasedCanaryorTimeBasedLinear) used by a deployment configuration. - See Also:
TrafficRoutingType
-
timeBasedCanary
public final TimeBasedCanary timeBasedCanary()
A configuration that shifts traffic from one version of a Lambda function or ECS task set to another in two increments. The original and target Lambda function versions or ECS task sets are specified in the deployment's AppSpec file.
- Returns:
- A configuration that shifts traffic from one version of a Lambda function or ECS task set to another in two increments. The original and target Lambda function versions or ECS task sets are specified in the deployment's AppSpec file.
-
timeBasedLinear
public final TimeBasedLinear timeBasedLinear()
A configuration that shifts traffic from one version of a Lambda function or Amazon ECS task set to another in equal increments, with an equal number of minutes between each increment. The original and target Lambda function versions or Amazon ECS task sets are specified in the deployment's AppSpec file.
- Returns:
- A configuration that shifts traffic from one version of a Lambda function or Amazon ECS task set to another in equal increments, with an equal number of minutes between each increment. The original and target Lambda function versions or Amazon ECS task sets are specified in the deployment's AppSpec file.
-
toBuilder
public TrafficRoutingConfig.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<TrafficRoutingConfig.Builder,TrafficRoutingConfig>
-
builder
public static TrafficRoutingConfig.Builder builder()
-
serializableBuilderClass
public static Class<? extends TrafficRoutingConfig.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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-