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

com.amazonaws.services.securityhub.model.AwsAppSyncGraphQlApiLogConfigDetails Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2018-2023 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.securityhub.model;

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

/**
 * 

* Specifies the logging configuration when writing GraphQL operations and tracing to Amazon CloudWatch for an AppSync * GraphQL API. *

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

* The Amazon Resource Name (ARN) of the service role that AppSync assumes to publish to CloudWatch Logs in your * account. *

*/ private String cloudWatchLogsRoleArn; /** *

* Set to TRUE to exclude sections that contain information such as headers, context, and evaluated * mapping templates, regardless of logging level. *

*/ private Boolean excludeVerboseContent; /** *

* The field logging level. *

*/ private String fieldLogLevel; /** *

* The Amazon Resource Name (ARN) of the service role that AppSync assumes to publish to CloudWatch Logs in your * account. *

* * @param cloudWatchLogsRoleArn * The Amazon Resource Name (ARN) of the service role that AppSync assumes to publish to CloudWatch Logs in * your account. */ public void setCloudWatchLogsRoleArn(String cloudWatchLogsRoleArn) { this.cloudWatchLogsRoleArn = cloudWatchLogsRoleArn; } /** *

* The Amazon Resource Name (ARN) of the service role that AppSync assumes to publish to CloudWatch Logs in your * account. *

* * @return The Amazon Resource Name (ARN) of the service role that AppSync assumes to publish to CloudWatch Logs in * your account. */ public String getCloudWatchLogsRoleArn() { return this.cloudWatchLogsRoleArn; } /** *

* The Amazon Resource Name (ARN) of the service role that AppSync assumes to publish to CloudWatch Logs in your * account. *

* * @param cloudWatchLogsRoleArn * The Amazon Resource Name (ARN) of the service role that AppSync assumes to publish to CloudWatch Logs in * your account. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsAppSyncGraphQlApiLogConfigDetails withCloudWatchLogsRoleArn(String cloudWatchLogsRoleArn) { setCloudWatchLogsRoleArn(cloudWatchLogsRoleArn); return this; } /** *

* Set to TRUE to exclude sections that contain information such as headers, context, and evaluated * mapping templates, regardless of logging level. *

* * @param excludeVerboseContent * Set to TRUE to exclude sections that contain information such as headers, context, and * evaluated mapping templates, regardless of logging level. */ public void setExcludeVerboseContent(Boolean excludeVerboseContent) { this.excludeVerboseContent = excludeVerboseContent; } /** *

* Set to TRUE to exclude sections that contain information such as headers, context, and evaluated * mapping templates, regardless of logging level. *

* * @return Set to TRUE to exclude sections that contain information such as headers, context, and * evaluated mapping templates, regardless of logging level. */ public Boolean getExcludeVerboseContent() { return this.excludeVerboseContent; } /** *

* Set to TRUE to exclude sections that contain information such as headers, context, and evaluated * mapping templates, regardless of logging level. *

* * @param excludeVerboseContent * Set to TRUE to exclude sections that contain information such as headers, context, and * evaluated mapping templates, regardless of logging level. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsAppSyncGraphQlApiLogConfigDetails withExcludeVerboseContent(Boolean excludeVerboseContent) { setExcludeVerboseContent(excludeVerboseContent); return this; } /** *

* Set to TRUE to exclude sections that contain information such as headers, context, and evaluated * mapping templates, regardless of logging level. *

* * @return Set to TRUE to exclude sections that contain information such as headers, context, and * evaluated mapping templates, regardless of logging level. */ public Boolean isExcludeVerboseContent() { return this.excludeVerboseContent; } /** *

* The field logging level. *

* * @param fieldLogLevel * The field logging level. */ public void setFieldLogLevel(String fieldLogLevel) { this.fieldLogLevel = fieldLogLevel; } /** *

* The field logging level. *

* * @return The field logging level. */ public String getFieldLogLevel() { return this.fieldLogLevel; } /** *

* The field logging level. *

* * @param fieldLogLevel * The field logging level. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsAppSyncGraphQlApiLogConfigDetails withFieldLogLevel(String fieldLogLevel) { setFieldLogLevel(fieldLogLevel); 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 (getCloudWatchLogsRoleArn() != null) sb.append("CloudWatchLogsRoleArn: ").append(getCloudWatchLogsRoleArn()).append(","); if (getExcludeVerboseContent() != null) sb.append("ExcludeVerboseContent: ").append(getExcludeVerboseContent()).append(","); if (getFieldLogLevel() != null) sb.append("FieldLogLevel: ").append(getFieldLogLevel()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AwsAppSyncGraphQlApiLogConfigDetails == false) return false; AwsAppSyncGraphQlApiLogConfigDetails other = (AwsAppSyncGraphQlApiLogConfigDetails) obj; if (other.getCloudWatchLogsRoleArn() == null ^ this.getCloudWatchLogsRoleArn() == null) return false; if (other.getCloudWatchLogsRoleArn() != null && other.getCloudWatchLogsRoleArn().equals(this.getCloudWatchLogsRoleArn()) == false) return false; if (other.getExcludeVerboseContent() == null ^ this.getExcludeVerboseContent() == null) return false; if (other.getExcludeVerboseContent() != null && other.getExcludeVerboseContent().equals(this.getExcludeVerboseContent()) == false) return false; if (other.getFieldLogLevel() == null ^ this.getFieldLogLevel() == null) return false; if (other.getFieldLogLevel() != null && other.getFieldLogLevel().equals(this.getFieldLogLevel()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCloudWatchLogsRoleArn() == null) ? 0 : getCloudWatchLogsRoleArn().hashCode()); hashCode = prime * hashCode + ((getExcludeVerboseContent() == null) ? 0 : getExcludeVerboseContent().hashCode()); hashCode = prime * hashCode + ((getFieldLogLevel() == null) ? 0 : getFieldLogLevel().hashCode()); return hashCode; } @Override public AwsAppSyncGraphQlApiLogConfigDetails clone() { try { return (AwsAppSyncGraphQlApiLogConfigDetails) 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.securityhub.model.transform.AwsAppSyncGraphQlApiLogConfigDetailsMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy