All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.vpclattice.model.UpdateTargetGroupResult Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon VPC Lattice module holds the client classes that are used for communicating with Amazon VPC Lattice Service

There is a newer version: 1.12.778
Show newest version
/*
 * Copyright 2019-2024 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.vpclattice.model;

import java.io.Serializable;
import javax.annotation.Generated;

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

    /**
     * 

* The Amazon Resource Name (ARN) of the target group. *

*/ private String arn; /** *

* The target group configuration. *

*/ private TargetGroupConfig config; /** *

* The ID of the target group. *

*/ private String id; /** *

* The name of the target group. *

*/ private String name; /** *

* The status. *

*/ private String status; /** *

* The target group type. *

*/ private String type; /** *

* The Amazon Resource Name (ARN) of the target group. *

* * @param arn * The Amazon Resource Name (ARN) of the target group. */ public void setArn(String arn) { this.arn = arn; } /** *

* The Amazon Resource Name (ARN) of the target group. *

* * @return The Amazon Resource Name (ARN) of the target group. */ public String getArn() { return this.arn; } /** *

* The Amazon Resource Name (ARN) of the target group. *

* * @param arn * The Amazon Resource Name (ARN) of the target group. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTargetGroupResult withArn(String arn) { setArn(arn); return this; } /** *

* The target group configuration. *

* * @param config * The target group configuration. */ public void setConfig(TargetGroupConfig config) { this.config = config; } /** *

* The target group configuration. *

* * @return The target group configuration. */ public TargetGroupConfig getConfig() { return this.config; } /** *

* The target group configuration. *

* * @param config * The target group configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTargetGroupResult withConfig(TargetGroupConfig config) { setConfig(config); return this; } /** *

* The ID of the target group. *

* * @param id * The ID of the target group. */ public void setId(String id) { this.id = id; } /** *

* The ID of the target group. *

* * @return The ID of the target group. */ public String getId() { return this.id; } /** *

* The ID of the target group. *

* * @param id * The ID of the target group. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTargetGroupResult withId(String id) { setId(id); return this; } /** *

* The name of the target group. *

* * @param name * The name of the target group. */ public void setName(String name) { this.name = name; } /** *

* The name of the target group. *

* * @return The name of the target group. */ public String getName() { return this.name; } /** *

* The name of the target group. *

* * @param name * The name of the target group. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTargetGroupResult withName(String name) { setName(name); return this; } /** *

* The status. *

* * @param status * The status. * @see TargetGroupStatus */ public void setStatus(String status) { this.status = status; } /** *

* The status. *

* * @return The status. * @see TargetGroupStatus */ public String getStatus() { return this.status; } /** *

* The status. *

* * @param status * The status. * @return Returns a reference to this object so that method calls can be chained together. * @see TargetGroupStatus */ public UpdateTargetGroupResult withStatus(String status) { setStatus(status); return this; } /** *

* The status. *

* * @param status * The status. * @return Returns a reference to this object so that method calls can be chained together. * @see TargetGroupStatus */ public UpdateTargetGroupResult withStatus(TargetGroupStatus status) { this.status = status.toString(); return this; } /** *

* The target group type. *

* * @param type * The target group type. * @see TargetGroupType */ public void setType(String type) { this.type = type; } /** *

* The target group type. *

* * @return The target group type. * @see TargetGroupType */ public String getType() { return this.type; } /** *

* The target group type. *

* * @param type * The target group type. * @return Returns a reference to this object so that method calls can be chained together. * @see TargetGroupType */ public UpdateTargetGroupResult withType(String type) { setType(type); return this; } /** *

* The target group type. *

* * @param type * The target group type. * @return Returns a reference to this object so that method calls can be chained together. * @see TargetGroupType */ public UpdateTargetGroupResult withType(TargetGroupType type) { this.type = type.toString(); return this; } /** * 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. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getConfig() != null) sb.append("Config: ").append(getConfig()).append(","); if (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getType() != null) sb.append("Type: ").append(getType()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateTargetGroupResult == false) return false; UpdateTargetGroupResult other = (UpdateTargetGroupResult) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getConfig() == null ^ this.getConfig() == null) return false; if (other.getConfig() != null && other.getConfig().equals(this.getConfig()) == false) return false; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getType() == null ^ this.getType() == null) return false; if (other.getType() != null && other.getType().equals(this.getType()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getConfig() == null) ? 0 : getConfig().hashCode()); hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); return hashCode; } @Override public UpdateTargetGroupResult clone() { try { return (UpdateTargetGroupResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy