com.amazonaws.services.wafv2.model.GenerateMobileSdkReleaseUrlRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-wafv2 Show documentation
Show all versions of aws-java-sdk-wafv2 Show documentation
The AWS Java SDK for AWS WAFV2 module holds the client classes that are used for communicating with AWS WAFV2 Service
/*
* 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.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 GenerateMobileSdkReleaseUrlRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The device platform.
*
*/
private String platform;
/**
*
* The release version. For the latest available version, specify LATEST
.
*
*/
private String releaseVersion;
/**
*
* 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 GenerateMobileSdkReleaseUrlRequest 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 GenerateMobileSdkReleaseUrlRequest withPlatform(Platform platform) {
this.platform = platform.toString();
return this;
}
/**
*
* The release version. For the latest available version, specify LATEST
.
*
*
* @param releaseVersion
* The release version. For the latest available version, specify LATEST
.
*/
public void setReleaseVersion(String releaseVersion) {
this.releaseVersion = releaseVersion;
}
/**
*
* The release version. For the latest available version, specify LATEST
.
*
*
* @return The release version. For the latest available version, specify LATEST
.
*/
public String getReleaseVersion() {
return this.releaseVersion;
}
/**
*
* The release version. For the latest available version, specify LATEST
.
*
*
* @param releaseVersion
* The release version. For the latest available version, specify LATEST
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GenerateMobileSdkReleaseUrlRequest 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 GenerateMobileSdkReleaseUrlRequest == false)
return false;
GenerateMobileSdkReleaseUrlRequest other = (GenerateMobileSdkReleaseUrlRequest) 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 GenerateMobileSdkReleaseUrlRequest clone() {
return (GenerateMobileSdkReleaseUrlRequest) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy