/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.autoscaling.model; import java.io.Serializable; import javax.annotation.Generated; /** *

* Describes the state of a traffic source. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class TrafficSourceState implements Serializable, Cloneable { /** *

* This is replaced by Identifier. *

*/ @Deprecated private String trafficSource; /** *

* Describes the current state of a traffic source. *

*

* The state values are as follows: *

* */ private String state; /** *

* The unique identifier of the traffic source. *

*/ private String identifier; /** *

* Provides additional context for the value of Identifier. *

*

* The following lists the valid values: *

* *

* Required if the identifier is the name of a Classic Load Balancer. *

*/ private String type; /** *

* This is replaced by Identifier. *

* * @param trafficSource * This is replaced by Identifier. */ @Deprecated public void setTrafficSource(String trafficSource) { this.trafficSource = trafficSource; } /** *

* This is replaced by Identifier. *

* * @return This is replaced by Identifier. */ @Deprecated public String getTrafficSource() { return this.trafficSource; } /** *

* This is replaced by Identifier. *

* * @param trafficSource * This is replaced by Identifier. * @return Returns a reference to this object so that method calls can be chained together. */ @Deprecated public TrafficSourceState withTrafficSource(String trafficSource) { setTrafficSource(trafficSource); return this; } /** *

* Describes the current state of a traffic source. *

*

* The state values are as follows: *

* * * @param state * Describes the current state of a traffic source.

*

* The state values are as follows: *

*