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

com.amazonaws.services.apprunner.model.ServiceObservabilityConfiguration Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS App Runner module holds the client classes that are used for communicating with AWS App Runner Service

There is a newer version: 1.12.780
Show 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.apprunner.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Describes the observability configuration of an App Runner service. These are additional observability features, like * tracing, that you choose to enable. They're configured in a separate resource that you associate with your service. *

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

* When true, an observability configuration resource is associated with the service, and an * ObservabilityConfigurationArn is specified. *

*/ private Boolean observabilityEnabled; /** *

* The Amazon Resource Name (ARN) of the observability configuration that is associated with the service. Specified * only when ObservabilityEnabled is true. *

*

* Specify an ARN with a name and a revision number to associate that revision. For example: * arn:aws:apprunner:us-east-1:123456789012:observabilityconfiguration/xray-tracing/3 *

*

* Specify just the name to associate the latest revision. For example: * arn:aws:apprunner:us-east-1:123456789012:observabilityconfiguration/xray-tracing *

*/ private String observabilityConfigurationArn; /** *

* When true, an observability configuration resource is associated with the service, and an * ObservabilityConfigurationArn is specified. *

* * @param observabilityEnabled * When true, an observability configuration resource is associated with the service, and an * ObservabilityConfigurationArn is specified. */ public void setObservabilityEnabled(Boolean observabilityEnabled) { this.observabilityEnabled = observabilityEnabled; } /** *

* When true, an observability configuration resource is associated with the service, and an * ObservabilityConfigurationArn is specified. *

* * @return When true, an observability configuration resource is associated with the service, and an * ObservabilityConfigurationArn is specified. */ public Boolean getObservabilityEnabled() { return this.observabilityEnabled; } /** *

* When true, an observability configuration resource is associated with the service, and an * ObservabilityConfigurationArn is specified. *

* * @param observabilityEnabled * When true, an observability configuration resource is associated with the service, and an * ObservabilityConfigurationArn is specified. * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceObservabilityConfiguration withObservabilityEnabled(Boolean observabilityEnabled) { setObservabilityEnabled(observabilityEnabled); return this; } /** *

* When true, an observability configuration resource is associated with the service, and an * ObservabilityConfigurationArn is specified. *

* * @return When true, an observability configuration resource is associated with the service, and an * ObservabilityConfigurationArn is specified. */ public Boolean isObservabilityEnabled() { return this.observabilityEnabled; } /** *

* The Amazon Resource Name (ARN) of the observability configuration that is associated with the service. Specified * only when ObservabilityEnabled is true. *

*

* Specify an ARN with a name and a revision number to associate that revision. For example: * arn:aws:apprunner:us-east-1:123456789012:observabilityconfiguration/xray-tracing/3 *

*

* Specify just the name to associate the latest revision. For example: * arn:aws:apprunner:us-east-1:123456789012:observabilityconfiguration/xray-tracing *

* * @param observabilityConfigurationArn * The Amazon Resource Name (ARN) of the observability configuration that is associated with the service. * Specified only when ObservabilityEnabled is true.

*

* Specify an ARN with a name and a revision number to associate that revision. For example: * arn:aws:apprunner:us-east-1:123456789012:observabilityconfiguration/xray-tracing/3 *

*

* Specify just the name to associate the latest revision. For example: * arn:aws:apprunner:us-east-1:123456789012:observabilityconfiguration/xray-tracing */ public void setObservabilityConfigurationArn(String observabilityConfigurationArn) { this.observabilityConfigurationArn = observabilityConfigurationArn; } /** *

* The Amazon Resource Name (ARN) of the observability configuration that is associated with the service. Specified * only when ObservabilityEnabled is true. *

*

* Specify an ARN with a name and a revision number to associate that revision. For example: * arn:aws:apprunner:us-east-1:123456789012:observabilityconfiguration/xray-tracing/3 *

*

* Specify just the name to associate the latest revision. For example: * arn:aws:apprunner:us-east-1:123456789012:observabilityconfiguration/xray-tracing *

* * @return The Amazon Resource Name (ARN) of the observability configuration that is associated with the service. * Specified only when ObservabilityEnabled is true.

*

* Specify an ARN with a name and a revision number to associate that revision. For example: * arn:aws:apprunner:us-east-1:123456789012:observabilityconfiguration/xray-tracing/3 *

*

* Specify just the name to associate the latest revision. For example: * arn:aws:apprunner:us-east-1:123456789012:observabilityconfiguration/xray-tracing */ public String getObservabilityConfigurationArn() { return this.observabilityConfigurationArn; } /** *

* The Amazon Resource Name (ARN) of the observability configuration that is associated with the service. Specified * only when ObservabilityEnabled is true. *

*

* Specify an ARN with a name and a revision number to associate that revision. For example: * arn:aws:apprunner:us-east-1:123456789012:observabilityconfiguration/xray-tracing/3 *

*

* Specify just the name to associate the latest revision. For example: * arn:aws:apprunner:us-east-1:123456789012:observabilityconfiguration/xray-tracing *

* * @param observabilityConfigurationArn * The Amazon Resource Name (ARN) of the observability configuration that is associated with the service. * Specified only when ObservabilityEnabled is true.

*

* Specify an ARN with a name and a revision number to associate that revision. For example: * arn:aws:apprunner:us-east-1:123456789012:observabilityconfiguration/xray-tracing/3 *

*

* Specify just the name to associate the latest revision. For example: * arn:aws:apprunner:us-east-1:123456789012:observabilityconfiguration/xray-tracing * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceObservabilityConfiguration 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 (getObservabilityEnabled() != null) sb.append("ObservabilityEnabled: ").append(getObservabilityEnabled()).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 ServiceObservabilityConfiguration == false) return false; ServiceObservabilityConfiguration other = (ServiceObservabilityConfiguration) obj; if (other.getObservabilityEnabled() == null ^ this.getObservabilityEnabled() == null) return false; if (other.getObservabilityEnabled() != null && other.getObservabilityEnabled().equals(this.getObservabilityEnabled()) == false) return false; 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 + ((getObservabilityEnabled() == null) ? 0 : getObservabilityEnabled().hashCode()); hashCode = prime * hashCode + ((getObservabilityConfigurationArn() == null) ? 0 : getObservabilityConfigurationArn().hashCode()); return hashCode; } @Override public ServiceObservabilityConfiguration clone() { try { return (ServiceObservabilityConfiguration) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.apprunner.model.transform.ServiceObservabilityConfigurationMarshaller.getInstance().marshall(this, protocolMarshaller); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy