/* * 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.wafv2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class GetMobileSdkReleaseRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The device platform. *
*/ private String platform; /** *
     * The release version. For the latest available version, specify LATEST.
     * 
* The device platform. *
* * @param platform * The device platform. * @see Platform */ public void setPlatform(String platform) { this.platform = platform; } /** ** The device platform. *
* * @return The device platform. * @see Platform */ public String getPlatform() { return this.platform; } /** ** The device platform. *
* * @param platform * The device platform. * @return Returns a reference to this object so that method calls can be chained together. * @see Platform */ public GetMobileSdkReleaseRequest withPlatform(String platform) { setPlatform(platform); return this; } /** ** The device platform. *
* * @param platform * The device platform. * @return Returns a reference to this object so that method calls can be chained together. * @see Platform */ public GetMobileSdkReleaseRequest withPlatform(Platform platform) { this.platform = platform.toString(); return this; } /** *
     * The release version. For the latest available version, specify LATEST.
     * 
LATEST.
     */
    public void setReleaseVersion(String releaseVersion) {
        this.releaseVersion = releaseVersion;
    }
    /**
     * 
     * The release version. For the latest available version, specify LATEST.
     * 
LATEST.
     */
    public String getReleaseVersion() {
        return this.releaseVersion;
    }
    /**
     * 
     * The release version. For the latest available version, specify LATEST.
     * 
LATEST.
     * @return Returns a reference to this object so that method calls can be chained together.
     */
    public GetMobileSdkReleaseRequest withReleaseVersion(String releaseVersion) {
        setReleaseVersion(releaseVersion);
        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 (getPlatform() != null)
            sb.append("Platform: ").append(getPlatform()).append(",");
        if (getReleaseVersion() != null)
            sb.append("ReleaseVersion: ").append(getReleaseVersion());
        sb.append("}");
        return sb.toString();
    }
    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (obj instanceof GetMobileSdkReleaseRequest == false)
            return false;
        GetMobileSdkReleaseRequest other = (GetMobileSdkReleaseRequest) obj;
        if (other.getPlatform() == null ^ this.getPlatform() == null)
            return false;
        if (other.getPlatform() != null && other.getPlatform().equals(this.getPlatform()) == false)
            return false;
        if (other.getReleaseVersion() == null ^ this.getReleaseVersion() == null)
            return false;
        if (other.getReleaseVersion() != null && other.getReleaseVersion().equals(this.getReleaseVersion()) == false)
            return false;
        return true;
    }
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        hashCode = prime * hashCode + ((getPlatform() == null) ? 0 : getPlatform().hashCode());
        hashCode = prime * hashCode + ((getReleaseVersion() == null) ? 0 : getReleaseVersion().hashCode());
        return hashCode;
    }
    @Override
    public GetMobileSdkReleaseRequest clone() {
        return (GetMobileSdkReleaseRequest) super.clone();
    }
}