/* * 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.route53resolver.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* In the response to a CreateResolverQueryLogConfig, DeleteResolverQueryLogConfig, GetResolverQueryLogConfig, or ListResolverQueryLogConfigs request, a complex type that contains settings for one query logging configuration. *

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

* The ID for the query logging configuration. *

*/ private String id; /** *

* The Amazon Web Services account ID for the account that created the query logging configuration. *

*/ private String ownerId; /** *

* The status of the specified query logging configuration. Valid values include the following: *

* */ private String status; /** *

* An indication of whether the query logging configuration is shared with other Amazon Web Services accounts, or * was shared with the current account by another Amazon Web Services account. Sharing is configured through * Resource Access Manager (RAM). *

*/ private String shareStatus; /** *

* The number of VPCs that are associated with the query logging configuration. *

*/ private Integer associationCount; /** *

* The ARN for the query logging configuration. *

*/ private String arn; /** *

* The name of the query logging configuration. *

*/ private String name; /** *

* The ARN of the resource that you want Resolver to send query logs: an Amazon S3 bucket, a CloudWatch Logs log * group, or a Kinesis Data Firehose delivery stream. *

*/ private String destinationArn; /** *

* A unique string that identifies the request that created the query logging configuration. The * CreatorRequestId allows failed requests to be retried without the risk of running the operation * twice. *

*/ private String creatorRequestId; /** *

* The date and time that the query logging configuration was created, in Unix time format and Coordinated Universal * Time (UTC). *

*/ private String creationTime; /** *

* The ID for the query logging configuration. *

* * @param id * The ID for the query logging configuration. */ public void setId(String id) { this.id = id; } /** *

* The ID for the query logging configuration. *

* * @return The ID for the query logging configuration. */ public String getId() { return this.id; } /** *

* The ID for the query logging configuration. *

* * @param id * The ID for the query logging configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public ResolverQueryLogConfig withId(String id) { setId(id); return this; } /** *

* The Amazon Web Services account ID for the account that created the query logging configuration. *

* * @param ownerId * The Amazon Web Services account ID for the account that created the query logging configuration. */ public void setOwnerId(String ownerId) { this.ownerId = ownerId; } /** *

* The Amazon Web Services account ID for the account that created the query logging configuration. *

* * @return The Amazon Web Services account ID for the account that created the query logging configuration. */ public String getOwnerId() { return this.ownerId; } /** *

* The Amazon Web Services account ID for the account that created the query logging configuration. *

* * @param ownerId * The Amazon Web Services account ID for the account that created the query logging configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public ResolverQueryLogConfig withOwnerId(String ownerId) { setOwnerId(ownerId); return this; } /** *

* The status of the specified query logging configuration. Valid values include the following: *

* * * @param status * The status of the specified query logging configuration. Valid values include the following:

*