com.amazonaws.services.apprunner.model.DescribeObservabilityConfigurationRequest 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.apprunner.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 DescribeObservabilityConfigurationRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The Amazon Resource Name (ARN) of the App Runner observability configuration that you want a description for.
*
*
* The ARN can be a full observability configuration ARN, or a partial ARN ending with either
* .../name
or .../name/revision
. If a revision isn't specified,
* the latest active revision is described.
*
*/
private String observabilityConfigurationArn;
/**
*
* The Amazon Resource Name (ARN) of the App Runner observability configuration that you want a description for.
*
*
* The ARN can be a full observability configuration ARN, or a partial ARN ending with either
* .../name
or .../name/revision
. If a revision isn't specified,
* the latest active revision is described.
*
*
* @param observabilityConfigurationArn
* The Amazon Resource Name (ARN) of the App Runner observability configuration that you want a description
* for.
*
* The ARN can be a full observability configuration ARN, or a partial ARN ending with either
* .../name
or .../name/revision
. If a revision isn't
* specified, the latest active revision is described.
*/
public void setObservabilityConfigurationArn(String observabilityConfigurationArn) {
this.observabilityConfigurationArn = observabilityConfigurationArn;
}
/**
*
* The Amazon Resource Name (ARN) of the App Runner observability configuration that you want a description for.
*
*
* The ARN can be a full observability configuration ARN, or a partial ARN ending with either
* .../name
or .../name/revision
. If a revision isn't specified,
* the latest active revision is described.
*
*
* @return The Amazon Resource Name (ARN) of the App Runner observability configuration that you want a description
* for.
*
* The ARN can be a full observability configuration ARN, or a partial ARN ending with either
* .../name
or .../name/revision
. If a revision isn't
* specified, the latest active revision is described.
*/
public String getObservabilityConfigurationArn() {
return this.observabilityConfigurationArn;
}
/**
*
* The Amazon Resource Name (ARN) of the App Runner observability configuration that you want a description for.
*
*
* The ARN can be a full observability configuration ARN, or a partial ARN ending with either
* .../name
or .../name/revision
. If a revision isn't specified,
* the latest active revision is described.
*
*
* @param observabilityConfigurationArn
* The Amazon Resource Name (ARN) of the App Runner observability configuration that you want a description
* for.
*
* The ARN can be a full observability configuration ARN, or a partial ARN ending with either
* .../name
or .../name/revision
. If a revision isn't
* specified, the latest active revision is described.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeObservabilityConfigurationRequest withObservabilityConfigurationArn(String observabilityConfigurationArn) {
setObservabilityConfigurationArn(observabilityConfigurationArn);
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 (getObservabilityConfigurationArn() != null)
sb.append("ObservabilityConfigurationArn: ").append(getObservabilityConfigurationArn());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DescribeObservabilityConfigurationRequest == false)
return false;
DescribeObservabilityConfigurationRequest other = (DescribeObservabilityConfigurationRequest) obj;
if (other.getObservabilityConfigurationArn() == null ^ this.getObservabilityConfigurationArn() == null)
return false;
if (other.getObservabilityConfigurationArn() != null
&& other.getObservabilityConfigurationArn().equals(this.getObservabilityConfigurationArn()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getObservabilityConfigurationArn() == null) ? 0 : getObservabilityConfigurationArn().hashCode());
return hashCode;
}
@Override
public DescribeObservabilityConfigurationRequest clone() {
return (DescribeObservabilityConfigurationRequest) super.clone();
}
}