* The Amazon Resource Name (ARN) of the target group. *
*/ private String arn; /** *
* The target group configuration. If type
is set to LAMBDA
, this parameter doesn't apply.
*
* The ID of the target group. *
*/ private String id; /** ** The name of the target group. *
*/ private String name; /** *
* The operation's status. You can retry the operation if the status is CREATE_FAILED
. However, if you
* retry it while the status is CREATE_IN_PROGRESS
, there is no change in the status.
*
* The type of target group. *
*/ 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 CreateTargetGroupResult withArn(String arn) { setArn(arn); return this; } /** *
* The target group configuration. If type
is set to LAMBDA
, this parameter doesn't apply.
*
type
is set to LAMBDA
, this parameter doesn't
* apply.
*/
public void setConfig(TargetGroupConfig config) {
this.config = config;
}
/**
*
* The target group configuration. If type
is set to LAMBDA
, this parameter doesn't apply.
*
type
is set to LAMBDA
, this parameter
* doesn't apply.
*/
public TargetGroupConfig getConfig() {
return this.config;
}
/**
*
* The target group configuration. If type
is set to LAMBDA
, this parameter doesn't apply.
*
type
is set to LAMBDA
, this parameter doesn't
* apply.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateTargetGroupResult 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 CreateTargetGroupResult 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 CreateTargetGroupResult withName(String name) { setName(name); return this; } /** *
* The operation's status. You can retry the operation if the status is CREATE_FAILED
. However, if you
* retry it while the status is CREATE_IN_PROGRESS
, there is no change in the status.
*
CREATE_FAILED
. However,
* if you retry it while the status is CREATE_IN_PROGRESS
, there is no change in the status.
* @see TargetGroupStatus
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* The operation's status. You can retry the operation if the status is CREATE_FAILED
. However, if you
* retry it while the status is CREATE_IN_PROGRESS
, there is no change in the status.
*
CREATE_FAILED
. However,
* if you retry it while the status is CREATE_IN_PROGRESS
, there is no change in the status.
* @see TargetGroupStatus
*/
public String getStatus() {
return this.status;
}
/**
*
* The operation's status. You can retry the operation if the status is CREATE_FAILED
. However, if you
* retry it while the status is CREATE_IN_PROGRESS
, there is no change in the status.
*
CREATE_FAILED
. However,
* if you retry it while the status is CREATE_IN_PROGRESS
, there is no change in the status.
* @return Returns a reference to this object so that method calls can be chained together.
* @see TargetGroupStatus
*/
public CreateTargetGroupResult withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* The operation's status. You can retry the operation if the status is CREATE_FAILED
. However, if you
* retry it while the status is CREATE_IN_PROGRESS
, there is no change in the status.
*
CREATE_FAILED
. However,
* if you retry it while the status is CREATE_IN_PROGRESS
, there is no change in the status.
* @return Returns a reference to this object so that method calls can be chained together.
* @see TargetGroupStatus
*/
public CreateTargetGroupResult withStatus(TargetGroupStatus status) {
this.status = status.toString();
return this;
}
/**
* * The type of target group. *
* * @param type * The type of target group. * @see TargetGroupType */ public void setType(String type) { this.type = type; } /** ** The type of target group. *
* * @return The type of target group. * @see TargetGroupType */ public String getType() { return this.type; } /** ** The type of target group. *
* * @param type * The type of target group. * @return Returns a reference to this object so that method calls can be chained together. * @see TargetGroupType */ public CreateTargetGroupResult withType(String type) { setType(type); return this; } /** ** The type of target group. *
* * @param type * The type of target group. * @return Returns a reference to this object so that method calls can be chained together. * @see TargetGroupType */ public CreateTargetGroupResult 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 CreateTargetGroupResult == false) return false; CreateTargetGroupResult other = (CreateTargetGroupResult) 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 CreateTargetGroupResult clone() { try { return (CreateTargetGroupResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }