@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLoadBalancerName() == null) ? 0 : getLoadBalancerName().hashCode()); hashCode = prime * hashCode + ((getPolicyName() == null) ? 0 : getPolicyName().hashCode()); return hashCode; }
/** * Constructs a new DeleteLoadBalancerPolicyRequest object. Callers should use the setter or fluent setter (with...) * methods to initialize any additional object members. * * @param loadBalancerName * The name of the load balancer. * @param policyName * The name of the policy. */ public DeleteLoadBalancerPolicyRequest(String loadBalancerName, String policyName) { setLoadBalancerName(loadBalancerName); setPolicyName(policyName); }
public void disableStickiness(String loadbalancerName, List<Integer> ports) { describeMatchingElbListeners(loadbalancerName, ports).forEach(l -> disableStickinessOnListener(loadbalancerName, l)); awsElbClient.deleteLoadBalancerPolicy(new DeleteLoadBalancerPolicyRequest().withLoadBalancerName(loadbalancerName).withPolicyName(DEPLOY_STICKINESS_POLICY + "-" + loadbalancerName)); }
/** * <p> * The name of the load balancer. * </p> * * @param loadBalancerName * The name of the load balancer. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteLoadBalancerPolicyRequest withLoadBalancerName(String loadBalancerName) { setLoadBalancerName(loadBalancerName); return this; }
/** * <p> * The name of the policy. * </p> * * @param policyName * The name of the policy. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteLoadBalancerPolicyRequest withPolicyName(String policyName) { setPolicyName(policyName); return this; }
/** * <p> * The name of the load balancer. * </p> * * @param loadBalancerName * The name of the load balancer. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteLoadBalancerPolicyRequest withLoadBalancerName(String loadBalancerName) { setLoadBalancerName(loadBalancerName); return this; }
/** * <p> * The name of the policy. * </p> * * @param policyName * The name of the policy. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteLoadBalancerPolicyRequest withPolicyName(String policyName) { setPolicyName(policyName); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DeleteLoadBalancerPolicyRequest == false) return false; DeleteLoadBalancerPolicyRequest other = (DeleteLoadBalancerPolicyRequest) obj; if (other.getLoadBalancerName() == null ^ this.getLoadBalancerName() == null) return false; if (other.getLoadBalancerName() != null && other.getLoadBalancerName().equals(this.getLoadBalancerName()) == false) return false; if (other.getPolicyName() == null ^ this.getPolicyName() == null) return false; if (other.getPolicyName() != null && other.getPolicyName().equals(this.getPolicyName()) == false) return false; return true; }
/** * Constructs a new DeleteLoadBalancerPolicyRequest object. Callers should * use the setter or fluent setter (with...) methods to initialize any * additional object members. * * @param loadBalancerName <p> * The name of the load balancer. * </p> * @param policyName <p> * The name of the policy. * </p> */ public DeleteLoadBalancerPolicyRequest(String loadBalancerName, String policyName) { setLoadBalancerName(loadBalancerName); setPolicyName(policyName); }
/** * 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 (getLoadBalancerName() != null) sb.append("LoadBalancerName: ").append(getLoadBalancerName()).append(","); if (getPolicyName() != null) sb.append("PolicyName: ").append(getPolicyName()); sb.append("}"); return sb.toString(); }
/** * Constructs a new DeleteLoadBalancerPolicyRequest object. Callers should use the setter or fluent setter (with...) * methods to initialize any additional object members. * * @param loadBalancerName * The name of the load balancer. * @param policyName * The name of the policy. */ public DeleteLoadBalancerPolicyRequest(String loadBalancerName, String policyName) { setLoadBalancerName(loadBalancerName); setPolicyName(policyName); }
public Request<DeleteLoadBalancerPolicyRequest> marshall(DeleteLoadBalancerPolicyRequest deleteLoadBalancerPolicyRequest) { if (deleteLoadBalancerPolicyRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<DeleteLoadBalancerPolicyRequest> request = new DefaultRequest<DeleteLoadBalancerPolicyRequest>(deleteLoadBalancerPolicyRequest, "AmazonElasticLoadBalancing"); request.addParameter("Action", "DeleteLoadBalancerPolicy"); request.addParameter("Version", "2012-06-01"); request.setHttpMethod(HttpMethodName.POST); if (deleteLoadBalancerPolicyRequest.getLoadBalancerName() != null) { request.addParameter("LoadBalancerName", StringUtils.fromString(deleteLoadBalancerPolicyRequest.getLoadBalancerName())); } if (deleteLoadBalancerPolicyRequest.getPolicyName() != null) { request.addParameter("PolicyName", StringUtils.fromString(deleteLoadBalancerPolicyRequest.getPolicyName())); } return request; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLoadBalancerName() == null) ? 0 : getLoadBalancerName().hashCode()); hashCode = prime * hashCode + ((getPolicyName() == null) ? 0 : getPolicyName().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DeleteLoadBalancerPolicyRequest == false) return false; DeleteLoadBalancerPolicyRequest other = (DeleteLoadBalancerPolicyRequest) obj; if (other.getLoadBalancerName() == null ^ this.getLoadBalancerName() == null) return false; if (other.getLoadBalancerName() != null && other.getLoadBalancerName().equals(this.getLoadBalancerName()) == false) return false; if (other.getPolicyName() == null ^ this.getPolicyName() == null) return false; if (other.getPolicyName() != null && other.getPolicyName().equals(this.getPolicyName()) == false) return false; return true; } }
/** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getLoadBalancerName() != null) sb.append("LoadBalancerName: " + getLoadBalancerName() + ","); if (getPolicyName() != null) sb.append("PolicyName: " + getPolicyName()); sb.append("}"); return sb.toString(); }
public Request<DeleteLoadBalancerPolicyRequest> marshall( DeleteLoadBalancerPolicyRequest deleteLoadBalancerPolicyRequest) { if (deleteLoadBalancerPolicyRequest == null) { throw new AmazonClientException( "Invalid argument passed to marshall(DeleteLoadBalancerPolicyRequest)"); } Request<DeleteLoadBalancerPolicyRequest> request = new DefaultRequest<DeleteLoadBalancerPolicyRequest>( deleteLoadBalancerPolicyRequest, "AmazonElasticLoadBalancing"); request.addParameter("Action", "DeleteLoadBalancerPolicy"); request.addParameter("Version", "2012-06-01"); String prefix; if (deleteLoadBalancerPolicyRequest.getLoadBalancerName() != null) { prefix = "LoadBalancerName"; String loadBalancerName = deleteLoadBalancerPolicyRequest.getLoadBalancerName(); request.addParameter(prefix, StringUtils.fromString(loadBalancerName)); } if (deleteLoadBalancerPolicyRequest.getPolicyName() != null) { prefix = "PolicyName"; String policyName = deleteLoadBalancerPolicyRequest.getPolicyName(); request.addParameter(prefix, StringUtils.fromString(policyName)); } return request; } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLoadBalancerName() == null) ? 0 : getLoadBalancerName().hashCode()); hashCode = prime * hashCode + ((getPolicyName() == null) ? 0 : getPolicyName().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DeleteLoadBalancerPolicyRequest == false) return false; DeleteLoadBalancerPolicyRequest other = (DeleteLoadBalancerPolicyRequest) obj; if (other.getLoadBalancerName() == null ^ this.getLoadBalancerName() == null) return false; if (other.getLoadBalancerName() != null && other.getLoadBalancerName().equals(this.getLoadBalancerName()) == false) return false; if (other.getPolicyName() == null ^ this.getPolicyName() == null) return false; if (other.getPolicyName() != null && other.getPolicyName().equals(this.getPolicyName()) == false) return false; return true; }
/** * 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 (getLoadBalancerName() != null) sb.append("LoadBalancerName: ").append(getLoadBalancerName()).append(","); if (getPolicyName() != null) sb.append("PolicyName: ").append(getPolicyName()); sb.append("}"); return sb.toString(); }
public Request<DeleteLoadBalancerPolicyRequest> marshall(DeleteLoadBalancerPolicyRequest deleteLoadBalancerPolicyRequest) { if (deleteLoadBalancerPolicyRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<DeleteLoadBalancerPolicyRequest> request = new DefaultRequest<DeleteLoadBalancerPolicyRequest>(deleteLoadBalancerPolicyRequest, "AmazonElasticLoadBalancing"); request.addParameter("Action", "DeleteLoadBalancerPolicy"); request.addParameter("Version", "2012-06-01"); request.setHttpMethod(HttpMethodName.POST); if (deleteLoadBalancerPolicyRequest.getLoadBalancerName() != null) { request.addParameter("LoadBalancerName", StringUtils.fromString(deleteLoadBalancerPolicyRequest.getLoadBalancerName())); } if (deleteLoadBalancerPolicyRequest.getPolicyName() != null) { request.addParameter("PolicyName", StringUtils.fromString(deleteLoadBalancerPolicyRequest.getPolicyName())); } return request; }