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

com.amazonaws.services.lambda.model.GetRuntimeManagementConfigResult Maven / Gradle / Ivy

/*
 * 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.lambda.model;

import java.io.Serializable;
import javax.annotation.Generated;

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

    /**
     * 

* The current runtime update mode of the function. *

*/ private String updateRuntimeOn; /** *

* The ARN of the runtime the function is configured to use. If the runtime update mode is Manual, the ARN is * returned, otherwise null is returned. *

*/ private String runtimeVersionArn; /** *

* The Amazon Resource Name (ARN) of your function. *

*/ private String functionArn; /** *

* The current runtime update mode of the function. *

* * @param updateRuntimeOn * The current runtime update mode of the function. * @see UpdateRuntimeOn */ public void setUpdateRuntimeOn(String updateRuntimeOn) { this.updateRuntimeOn = updateRuntimeOn; } /** *

* The current runtime update mode of the function. *

* * @return The current runtime update mode of the function. * @see UpdateRuntimeOn */ public String getUpdateRuntimeOn() { return this.updateRuntimeOn; } /** *

* The current runtime update mode of the function. *

* * @param updateRuntimeOn * The current runtime update mode of the function. * @return Returns a reference to this object so that method calls can be chained together. * @see UpdateRuntimeOn */ public GetRuntimeManagementConfigResult withUpdateRuntimeOn(String updateRuntimeOn) { setUpdateRuntimeOn(updateRuntimeOn); return this; } /** *

* The current runtime update mode of the function. *

* * @param updateRuntimeOn * The current runtime update mode of the function. * @return Returns a reference to this object so that method calls can be chained together. * @see UpdateRuntimeOn */ public GetRuntimeManagementConfigResult withUpdateRuntimeOn(UpdateRuntimeOn updateRuntimeOn) { this.updateRuntimeOn = updateRuntimeOn.toString(); return this; } /** *

* The ARN of the runtime the function is configured to use. If the runtime update mode is Manual, the ARN is * returned, otherwise null is returned. *

* * @param runtimeVersionArn * The ARN of the runtime the function is configured to use. If the runtime update mode is Manual, the * ARN is returned, otherwise null is returned. */ public void setRuntimeVersionArn(String runtimeVersionArn) { this.runtimeVersionArn = runtimeVersionArn; } /** *

* The ARN of the runtime the function is configured to use. If the runtime update mode is Manual, the ARN is * returned, otherwise null is returned. *

* * @return The ARN of the runtime the function is configured to use. If the runtime update mode is Manual, * the ARN is returned, otherwise null is returned. */ public String getRuntimeVersionArn() { return this.runtimeVersionArn; } /** *

* The ARN of the runtime the function is configured to use. If the runtime update mode is Manual, the ARN is * returned, otherwise null is returned. *

* * @param runtimeVersionArn * The ARN of the runtime the function is configured to use. If the runtime update mode is Manual, the * ARN is returned, otherwise null is returned. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRuntimeManagementConfigResult withRuntimeVersionArn(String runtimeVersionArn) { setRuntimeVersionArn(runtimeVersionArn); return this; } /** *

* The Amazon Resource Name (ARN) of your function. *

* * @param functionArn * The Amazon Resource Name (ARN) of your function. */ public void setFunctionArn(String functionArn) { this.functionArn = functionArn; } /** *

* The Amazon Resource Name (ARN) of your function. *

* * @return The Amazon Resource Name (ARN) of your function. */ public String getFunctionArn() { return this.functionArn; } /** *

* The Amazon Resource Name (ARN) of your function. *

* * @param functionArn * The Amazon Resource Name (ARN) of your function. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRuntimeManagementConfigResult withFunctionArn(String functionArn) { setFunctionArn(functionArn); 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 (getUpdateRuntimeOn() != null) sb.append("UpdateRuntimeOn: ").append(getUpdateRuntimeOn()).append(","); if (getRuntimeVersionArn() != null) sb.append("RuntimeVersionArn: ").append(getRuntimeVersionArn()).append(","); if (getFunctionArn() != null) sb.append("FunctionArn: ").append(getFunctionArn()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetRuntimeManagementConfigResult == false) return false; GetRuntimeManagementConfigResult other = (GetRuntimeManagementConfigResult) obj; if (other.getUpdateRuntimeOn() == null ^ this.getUpdateRuntimeOn() == null) return false; if (other.getUpdateRuntimeOn() != null && other.getUpdateRuntimeOn().equals(this.getUpdateRuntimeOn()) == false) return false; if (other.getRuntimeVersionArn() == null ^ this.getRuntimeVersionArn() == null) return false; if (other.getRuntimeVersionArn() != null && other.getRuntimeVersionArn().equals(this.getRuntimeVersionArn()) == false) return false; if (other.getFunctionArn() == null ^ this.getFunctionArn() == null) return false; if (other.getFunctionArn() != null && other.getFunctionArn().equals(this.getFunctionArn()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getUpdateRuntimeOn() == null) ? 0 : getUpdateRuntimeOn().hashCode()); hashCode = prime * hashCode + ((getRuntimeVersionArn() == null) ? 0 : getRuntimeVersionArn().hashCode()); hashCode = prime * hashCode + ((getFunctionArn() == null) ? 0 : getFunctionArn().hashCode()); return hashCode; } @Override public GetRuntimeManagementConfigResult clone() { try { return (GetRuntimeManagementConfigResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy