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

com.amazonaws.services.appmesh.model.GrpcRouteMetadataMatchMethod Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS App Mesh module holds the client classes that are used for communicating with AWS App Mesh Service

There is a newer version: 1.12.780
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.appmesh.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* An object that represents the match method. Specify one of the match values. *

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

* The value sent by the client must match the specified value exactly. *

*/ private String exact; /** *

* The value sent by the client must begin with the specified characters. *

*/ private String prefix; /** *

* An object that represents the range of values to match on. *

*/ private MatchRange range; /** *

* The value sent by the client must include the specified characters. *

*/ private String regex; /** *

* The value sent by the client must end with the specified characters. *

*/ private String suffix; /** *

* The value sent by the client must match the specified value exactly. *

* * @param exact * The value sent by the client must match the specified value exactly. */ public void setExact(String exact) { this.exact = exact; } /** *

* The value sent by the client must match the specified value exactly. *

* * @return The value sent by the client must match the specified value exactly. */ public String getExact() { return this.exact; } /** *

* The value sent by the client must match the specified value exactly. *

* * @param exact * The value sent by the client must match the specified value exactly. * @return Returns a reference to this object so that method calls can be chained together. */ public GrpcRouteMetadataMatchMethod withExact(String exact) { setExact(exact); return this; } /** *

* The value sent by the client must begin with the specified characters. *

* * @param prefix * The value sent by the client must begin with the specified characters. */ public void setPrefix(String prefix) { this.prefix = prefix; } /** *

* The value sent by the client must begin with the specified characters. *

* * @return The value sent by the client must begin with the specified characters. */ public String getPrefix() { return this.prefix; } /** *

* The value sent by the client must begin with the specified characters. *

* * @param prefix * The value sent by the client must begin with the specified characters. * @return Returns a reference to this object so that method calls can be chained together. */ public GrpcRouteMetadataMatchMethod withPrefix(String prefix) { setPrefix(prefix); return this; } /** *

* An object that represents the range of values to match on. *

* * @param range * An object that represents the range of values to match on. */ public void setRange(MatchRange range) { this.range = range; } /** *

* An object that represents the range of values to match on. *

* * @return An object that represents the range of values to match on. */ public MatchRange getRange() { return this.range; } /** *

* An object that represents the range of values to match on. *

* * @param range * An object that represents the range of values to match on. * @return Returns a reference to this object so that method calls can be chained together. */ public GrpcRouteMetadataMatchMethod withRange(MatchRange range) { setRange(range); return this; } /** *

* The value sent by the client must include the specified characters. *

* * @param regex * The value sent by the client must include the specified characters. */ public void setRegex(String regex) { this.regex = regex; } /** *

* The value sent by the client must include the specified characters. *

* * @return The value sent by the client must include the specified characters. */ public String getRegex() { return this.regex; } /** *

* The value sent by the client must include the specified characters. *

* * @param regex * The value sent by the client must include the specified characters. * @return Returns a reference to this object so that method calls can be chained together. */ public GrpcRouteMetadataMatchMethod withRegex(String regex) { setRegex(regex); return this; } /** *

* The value sent by the client must end with the specified characters. *

* * @param suffix * The value sent by the client must end with the specified characters. */ public void setSuffix(String suffix) { this.suffix = suffix; } /** *

* The value sent by the client must end with the specified characters. *

* * @return The value sent by the client must end with the specified characters. */ public String getSuffix() { return this.suffix; } /** *

* The value sent by the client must end with the specified characters. *

* * @param suffix * The value sent by the client must end with the specified characters. * @return Returns a reference to this object so that method calls can be chained together. */ public GrpcRouteMetadataMatchMethod withSuffix(String suffix) { setSuffix(suffix); 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 (getExact() != null) sb.append("Exact: ").append(getExact()).append(","); if (getPrefix() != null) sb.append("Prefix: ").append(getPrefix()).append(","); if (getRange() != null) sb.append("Range: ").append(getRange()).append(","); if (getRegex() != null) sb.append("Regex: ").append(getRegex()).append(","); if (getSuffix() != null) sb.append("Suffix: ").append(getSuffix()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GrpcRouteMetadataMatchMethod == false) return false; GrpcRouteMetadataMatchMethod other = (GrpcRouteMetadataMatchMethod) obj; if (other.getExact() == null ^ this.getExact() == null) return false; if (other.getExact() != null && other.getExact().equals(this.getExact()) == false) return false; if (other.getPrefix() == null ^ this.getPrefix() == null) return false; if (other.getPrefix() != null && other.getPrefix().equals(this.getPrefix()) == false) return false; if (other.getRange() == null ^ this.getRange() == null) return false; if (other.getRange() != null && other.getRange().equals(this.getRange()) == false) return false; if (other.getRegex() == null ^ this.getRegex() == null) return false; if (other.getRegex() != null && other.getRegex().equals(this.getRegex()) == false) return false; if (other.getSuffix() == null ^ this.getSuffix() == null) return false; if (other.getSuffix() != null && other.getSuffix().equals(this.getSuffix()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getExact() == null) ? 0 : getExact().hashCode()); hashCode = prime * hashCode + ((getPrefix() == null) ? 0 : getPrefix().hashCode()); hashCode = prime * hashCode + ((getRange() == null) ? 0 : getRange().hashCode()); hashCode = prime * hashCode + ((getRegex() == null) ? 0 : getRegex().hashCode()); hashCode = prime * hashCode + ((getSuffix() == null) ? 0 : getSuffix().hashCode()); return hashCode; } @Override public GrpcRouteMetadataMatchMethod clone() { try { return (GrpcRouteMetadataMatchMethod) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.appmesh.model.transform.GrpcRouteMetadataMatchMethodMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy