com.amazonaws.services.finspacedata.model.GetProgrammaticAccessCredentialsRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-finspacedata Show documentation
Show all versions of aws-java-sdk-finspacedata Show documentation
The AWS Java SDK for FinSpace Public API module holds the client classes that are used for communicating with FinSpace Public API Service
The 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.finspacedata.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
/**
* Request for GetProgrammaticAccessCredentials operation
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class GetProgrammaticAccessCredentialsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The time duration in which the credentials remain valid.
*
*/
private Long durationInMinutes;
/**
*
* The FinSpace environment identifier.
*
*/
private String environmentId;
/**
*
* The time duration in which the credentials remain valid.
*
*
* @param durationInMinutes
* The time duration in which the credentials remain valid.
*/
public void setDurationInMinutes(Long durationInMinutes) {
this.durationInMinutes = durationInMinutes;
}
/**
*
* The time duration in which the credentials remain valid.
*
*
* @return The time duration in which the credentials remain valid.
*/
public Long getDurationInMinutes() {
return this.durationInMinutes;
}
/**
*
* The time duration in which the credentials remain valid.
*
*
* @param durationInMinutes
* The time duration in which the credentials remain valid.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetProgrammaticAccessCredentialsRequest withDurationInMinutes(Long durationInMinutes) {
setDurationInMinutes(durationInMinutes);
return this;
}
/**
*
* The FinSpace environment identifier.
*
*
* @param environmentId
* The FinSpace environment identifier.
*/
public void setEnvironmentId(String environmentId) {
this.environmentId = environmentId;
}
/**
*
* The FinSpace environment identifier.
*
*
* @return The FinSpace environment identifier.
*/
public String getEnvironmentId() {
return this.environmentId;
}
/**
*
* The FinSpace environment identifier.
*
*
* @param environmentId
* The FinSpace environment identifier.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetProgrammaticAccessCredentialsRequest withEnvironmentId(String environmentId) {
setEnvironmentId(environmentId);
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 (getDurationInMinutes() != null)
sb.append("DurationInMinutes: ").append(getDurationInMinutes()).append(",");
if (getEnvironmentId() != null)
sb.append("EnvironmentId: ").append(getEnvironmentId());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof GetProgrammaticAccessCredentialsRequest == false)
return false;
GetProgrammaticAccessCredentialsRequest other = (GetProgrammaticAccessCredentialsRequest) obj;
if (other.getDurationInMinutes() == null ^ this.getDurationInMinutes() == null)
return false;
if (other.getDurationInMinutes() != null && other.getDurationInMinutes().equals(this.getDurationInMinutes()) == false)
return false;
if (other.getEnvironmentId() == null ^ this.getEnvironmentId() == null)
return false;
if (other.getEnvironmentId() != null && other.getEnvironmentId().equals(this.getEnvironmentId()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getDurationInMinutes() == null) ? 0 : getDurationInMinutes().hashCode());
hashCode = prime * hashCode + ((getEnvironmentId() == null) ? 0 : getEnvironmentId().hashCode());
return hashCode;
}
@Override
public GetProgrammaticAccessCredentialsRequest clone() {
return (GetProgrammaticAccessCredentialsRequest) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy