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

com.amazonaws.services.devopsguru.model.ServiceIntegrationConfig Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon DevOps Guru module holds the client classes that are used for communicating with Amazon DevOps Guru Service

There is a newer version: 1.12.778
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.devopsguru.model;

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

/**
 * 

* Information about the integration of DevOps Guru with another Amazon Web Services service, such as Amazon Web * Services Systems Manager. *

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

* Information about whether DevOps Guru is configured to create an OpsItem in Amazon Web Services Systems Manager * OpsCenter for each created insight. *

*/ private OpsCenterIntegration opsCenter; /** *

* Information about whether DevOps Guru is configured to perform log anomaly detection on Amazon CloudWatch log * groups. *

*/ private LogsAnomalyDetectionIntegration logsAnomalyDetection; /** *

* Information about whether DevOps Guru is configured to encrypt server-side data using KMS. *

*/ private KMSServerSideEncryptionIntegration kMSServerSideEncryption; /** *

* Information about whether DevOps Guru is configured to create an OpsItem in Amazon Web Services Systems Manager * OpsCenter for each created insight. *

* * @param opsCenter * Information about whether DevOps Guru is configured to create an OpsItem in Amazon Web Services Systems * Manager OpsCenter for each created insight. */ public void setOpsCenter(OpsCenterIntegration opsCenter) { this.opsCenter = opsCenter; } /** *

* Information about whether DevOps Guru is configured to create an OpsItem in Amazon Web Services Systems Manager * OpsCenter for each created insight. *

* * @return Information about whether DevOps Guru is configured to create an OpsItem in Amazon Web Services Systems * Manager OpsCenter for each created insight. */ public OpsCenterIntegration getOpsCenter() { return this.opsCenter; } /** *

* Information about whether DevOps Guru is configured to create an OpsItem in Amazon Web Services Systems Manager * OpsCenter for each created insight. *

* * @param opsCenter * Information about whether DevOps Guru is configured to create an OpsItem in Amazon Web Services Systems * Manager OpsCenter for each created insight. * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceIntegrationConfig withOpsCenter(OpsCenterIntegration opsCenter) { setOpsCenter(opsCenter); return this; } /** *

* Information about whether DevOps Guru is configured to perform log anomaly detection on Amazon CloudWatch log * groups. *

* * @param logsAnomalyDetection * Information about whether DevOps Guru is configured to perform log anomaly detection on Amazon CloudWatch * log groups. */ public void setLogsAnomalyDetection(LogsAnomalyDetectionIntegration logsAnomalyDetection) { this.logsAnomalyDetection = logsAnomalyDetection; } /** *

* Information about whether DevOps Guru is configured to perform log anomaly detection on Amazon CloudWatch log * groups. *

* * @return Information about whether DevOps Guru is configured to perform log anomaly detection on Amazon CloudWatch * log groups. */ public LogsAnomalyDetectionIntegration getLogsAnomalyDetection() { return this.logsAnomalyDetection; } /** *

* Information about whether DevOps Guru is configured to perform log anomaly detection on Amazon CloudWatch log * groups. *

* * @param logsAnomalyDetection * Information about whether DevOps Guru is configured to perform log anomaly detection on Amazon CloudWatch * log groups. * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceIntegrationConfig withLogsAnomalyDetection(LogsAnomalyDetectionIntegration logsAnomalyDetection) { setLogsAnomalyDetection(logsAnomalyDetection); return this; } /** *

* Information about whether DevOps Guru is configured to encrypt server-side data using KMS. *

* * @param kMSServerSideEncryption * Information about whether DevOps Guru is configured to encrypt server-side data using KMS. */ public void setKMSServerSideEncryption(KMSServerSideEncryptionIntegration kMSServerSideEncryption) { this.kMSServerSideEncryption = kMSServerSideEncryption; } /** *

* Information about whether DevOps Guru is configured to encrypt server-side data using KMS. *

* * @return Information about whether DevOps Guru is configured to encrypt server-side data using KMS. */ public KMSServerSideEncryptionIntegration getKMSServerSideEncryption() { return this.kMSServerSideEncryption; } /** *

* Information about whether DevOps Guru is configured to encrypt server-side data using KMS. *

* * @param kMSServerSideEncryption * Information about whether DevOps Guru is configured to encrypt server-side data using KMS. * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceIntegrationConfig withKMSServerSideEncryption(KMSServerSideEncryptionIntegration kMSServerSideEncryption) { setKMSServerSideEncryption(kMSServerSideEncryption); 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 (getOpsCenter() != null) sb.append("OpsCenter: ").append(getOpsCenter()).append(","); if (getLogsAnomalyDetection() != null) sb.append("LogsAnomalyDetection: ").append(getLogsAnomalyDetection()).append(","); if (getKMSServerSideEncryption() != null) sb.append("KMSServerSideEncryption: ").append(getKMSServerSideEncryption()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ServiceIntegrationConfig == false) return false; ServiceIntegrationConfig other = (ServiceIntegrationConfig) obj; if (other.getOpsCenter() == null ^ this.getOpsCenter() == null) return false; if (other.getOpsCenter() != null && other.getOpsCenter().equals(this.getOpsCenter()) == false) return false; if (other.getLogsAnomalyDetection() == null ^ this.getLogsAnomalyDetection() == null) return false; if (other.getLogsAnomalyDetection() != null && other.getLogsAnomalyDetection().equals(this.getLogsAnomalyDetection()) == false) return false; if (other.getKMSServerSideEncryption() == null ^ this.getKMSServerSideEncryption() == null) return false; if (other.getKMSServerSideEncryption() != null && other.getKMSServerSideEncryption().equals(this.getKMSServerSideEncryption()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getOpsCenter() == null) ? 0 : getOpsCenter().hashCode()); hashCode = prime * hashCode + ((getLogsAnomalyDetection() == null) ? 0 : getLogsAnomalyDetection().hashCode()); hashCode = prime * hashCode + ((getKMSServerSideEncryption() == null) ? 0 : getKMSServerSideEncryption().hashCode()); return hashCode; } @Override public ServiceIntegrationConfig clone() { try { return (ServiceIntegrationConfig) 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.devopsguru.model.transform.ServiceIntegrationConfigMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy