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

com.amazonaws.services.lexmodelbuilding.model.LogSettingsResponse Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Lex Model Building module holds the client classes that are used for communicating with Amazon Lex Model Building Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2015-2020 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.lexmodelbuilding.model;

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

/**
 * 

* The settings for conversation logs. *

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

* The type of logging that is enabled. *

*/ private String logType; /** *

* The destination where logs are delivered. *

*/ private String destination; /** *

* The Amazon Resource Name (ARN) of the key used to encrypt audio logs in an S3 bucket. *

*/ private String kmsKeyArn; /** *

* The Amazon Resource Name (ARN) of the CloudWatch Logs log group or S3 bucket where the logs are delivered. *

*/ private String resourceArn; /** *

* The resource prefix is the first part of the S3 object key within the S3 bucket that you specified to contain * audio logs. For CloudWatch Logs it is the prefix of the log stream name within the log group that you specified. *

*/ private String resourcePrefix; /** *

* The type of logging that is enabled. *

* * @param logType * The type of logging that is enabled. * @see LogType */ public void setLogType(String logType) { this.logType = logType; } /** *

* The type of logging that is enabled. *

* * @return The type of logging that is enabled. * @see LogType */ public String getLogType() { return this.logType; } /** *

* The type of logging that is enabled. *

* * @param logType * The type of logging that is enabled. * @return Returns a reference to this object so that method calls can be chained together. * @see LogType */ public LogSettingsResponse withLogType(String logType) { setLogType(logType); return this; } /** *

* The type of logging that is enabled. *

* * @param logType * The type of logging that is enabled. * @return Returns a reference to this object so that method calls can be chained together. * @see LogType */ public LogSettingsResponse withLogType(LogType logType) { this.logType = logType.toString(); return this; } /** *

* The destination where logs are delivered. *

* * @param destination * The destination where logs are delivered. * @see Destination */ public void setDestination(String destination) { this.destination = destination; } /** *

* The destination where logs are delivered. *

* * @return The destination where logs are delivered. * @see Destination */ public String getDestination() { return this.destination; } /** *

* The destination where logs are delivered. *

* * @param destination * The destination where logs are delivered. * @return Returns a reference to this object so that method calls can be chained together. * @see Destination */ public LogSettingsResponse withDestination(String destination) { setDestination(destination); return this; } /** *

* The destination where logs are delivered. *

* * @param destination * The destination where logs are delivered. * @return Returns a reference to this object so that method calls can be chained together. * @see Destination */ public LogSettingsResponse withDestination(Destination destination) { this.destination = destination.toString(); return this; } /** *

* The Amazon Resource Name (ARN) of the key used to encrypt audio logs in an S3 bucket. *

* * @param kmsKeyArn * The Amazon Resource Name (ARN) of the key used to encrypt audio logs in an S3 bucket. */ public void setKmsKeyArn(String kmsKeyArn) { this.kmsKeyArn = kmsKeyArn; } /** *

* The Amazon Resource Name (ARN) of the key used to encrypt audio logs in an S3 bucket. *

* * @return The Amazon Resource Name (ARN) of the key used to encrypt audio logs in an S3 bucket. */ public String getKmsKeyArn() { return this.kmsKeyArn; } /** *

* The Amazon Resource Name (ARN) of the key used to encrypt audio logs in an S3 bucket. *

* * @param kmsKeyArn * The Amazon Resource Name (ARN) of the key used to encrypt audio logs in an S3 bucket. * @return Returns a reference to this object so that method calls can be chained together. */ public LogSettingsResponse withKmsKeyArn(String kmsKeyArn) { setKmsKeyArn(kmsKeyArn); return this; } /** *

* The Amazon Resource Name (ARN) of the CloudWatch Logs log group or S3 bucket where the logs are delivered. *

* * @param resourceArn * The Amazon Resource Name (ARN) of the CloudWatch Logs log group or S3 bucket where the logs are delivered. */ public void setResourceArn(String resourceArn) { this.resourceArn = resourceArn; } /** *

* The Amazon Resource Name (ARN) of the CloudWatch Logs log group or S3 bucket where the logs are delivered. *

* * @return The Amazon Resource Name (ARN) of the CloudWatch Logs log group or S3 bucket where the logs are * delivered. */ public String getResourceArn() { return this.resourceArn; } /** *

* The Amazon Resource Name (ARN) of the CloudWatch Logs log group or S3 bucket where the logs are delivered. *

* * @param resourceArn * The Amazon Resource Name (ARN) of the CloudWatch Logs log group or S3 bucket where the logs are delivered. * @return Returns a reference to this object so that method calls can be chained together. */ public LogSettingsResponse withResourceArn(String resourceArn) { setResourceArn(resourceArn); return this; } /** *

* The resource prefix is the first part of the S3 object key within the S3 bucket that you specified to contain * audio logs. For CloudWatch Logs it is the prefix of the log stream name within the log group that you specified. *

* * @param resourcePrefix * The resource prefix is the first part of the S3 object key within the S3 bucket that you specified to * contain audio logs. For CloudWatch Logs it is the prefix of the log stream name within the log group that * you specified. */ public void setResourcePrefix(String resourcePrefix) { this.resourcePrefix = resourcePrefix; } /** *

* The resource prefix is the first part of the S3 object key within the S3 bucket that you specified to contain * audio logs. For CloudWatch Logs it is the prefix of the log stream name within the log group that you specified. *

* * @return The resource prefix is the first part of the S3 object key within the S3 bucket that you specified to * contain audio logs. For CloudWatch Logs it is the prefix of the log stream name within the log group that * you specified. */ public String getResourcePrefix() { return this.resourcePrefix; } /** *

* The resource prefix is the first part of the S3 object key within the S3 bucket that you specified to contain * audio logs. For CloudWatch Logs it is the prefix of the log stream name within the log group that you specified. *

* * @param resourcePrefix * The resource prefix is the first part of the S3 object key within the S3 bucket that you specified to * contain audio logs. For CloudWatch Logs it is the prefix of the log stream name within the log group that * you specified. * @return Returns a reference to this object so that method calls can be chained together. */ public LogSettingsResponse withResourcePrefix(String resourcePrefix) { setResourcePrefix(resourcePrefix); 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 (getLogType() != null) sb.append("LogType: ").append(getLogType()).append(","); if (getDestination() != null) sb.append("Destination: ").append(getDestination()).append(","); if (getKmsKeyArn() != null) sb.append("KmsKeyArn: ").append(getKmsKeyArn()).append(","); if (getResourceArn() != null) sb.append("ResourceArn: ").append(getResourceArn()).append(","); if (getResourcePrefix() != null) sb.append("ResourcePrefix: ").append(getResourcePrefix()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof LogSettingsResponse == false) return false; LogSettingsResponse other = (LogSettingsResponse) obj; if (other.getLogType() == null ^ this.getLogType() == null) return false; if (other.getLogType() != null && other.getLogType().equals(this.getLogType()) == false) return false; if (other.getDestination() == null ^ this.getDestination() == null) return false; if (other.getDestination() != null && other.getDestination().equals(this.getDestination()) == false) return false; if (other.getKmsKeyArn() == null ^ this.getKmsKeyArn() == null) return false; if (other.getKmsKeyArn() != null && other.getKmsKeyArn().equals(this.getKmsKeyArn()) == false) return false; if (other.getResourceArn() == null ^ this.getResourceArn() == null) return false; if (other.getResourceArn() != null && other.getResourceArn().equals(this.getResourceArn()) == false) return false; if (other.getResourcePrefix() == null ^ this.getResourcePrefix() == null) return false; if (other.getResourcePrefix() != null && other.getResourcePrefix().equals(this.getResourcePrefix()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLogType() == null) ? 0 : getLogType().hashCode()); hashCode = prime * hashCode + ((getDestination() == null) ? 0 : getDestination().hashCode()); hashCode = prime * hashCode + ((getKmsKeyArn() == null) ? 0 : getKmsKeyArn().hashCode()); hashCode = prime * hashCode + ((getResourceArn() == null) ? 0 : getResourceArn().hashCode()); hashCode = prime * hashCode + ((getResourcePrefix() == null) ? 0 : getResourcePrefix().hashCode()); return hashCode; } @Override public LogSettingsResponse clone() { try { return (LogSettingsResponse) 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.lexmodelbuilding.model.transform.LogSettingsResponseMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy