/* * 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 an AssociateResolverQueryLogConfig, DisassociateResolverQueryLogConfig, GetResolverQueryLogConfigAssociation, or ListResolverQueryLogConfigAssociations, request, a complex type that contains settings for a specified * association between an Amazon VPC and a query logging configuration. *

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

* The ID of the query logging association. *

*/ private String id; /** *

* The ID of the query logging configuration that a VPC is associated with. *

*/ private String resolverQueryLogConfigId; /** *

* The ID of the Amazon VPC that is associated with the query logging configuration. *

*/ private String resourceId; /** *

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

* */ private String status; /** *

* If the value of Status is FAILED, the value of Error indicates the cause: *

* *

* If the value of Status is a value other than FAILED, Error is null. *

*/ private String error; /** *

* Contains additional information about the error. If the value or Error is null, the value of * ErrorMessage also is null. *

*/ private String errorMessage; /** *

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

*/ private String creationTime; /** *

* The ID of the query logging association. *

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

* The ID of the query logging association. *

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

* The ID of the query logging association. *

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

* The ID of the query logging configuration that a VPC is associated with. *

* * @param resolverQueryLogConfigId * The ID of the query logging configuration that a VPC is associated with. */ public void setResolverQueryLogConfigId(String resolverQueryLogConfigId) { this.resolverQueryLogConfigId = resolverQueryLogConfigId; } /** *

* The ID of the query logging configuration that a VPC is associated with. *

* * @return The ID of the query logging configuration that a VPC is associated with. */ public String getResolverQueryLogConfigId() { return this.resolverQueryLogConfigId; } /** *

* The ID of the query logging configuration that a VPC is associated with. *

* * @param resolverQueryLogConfigId * The ID of the query logging configuration that a VPC is associated with. * @return Returns a reference to this object so that method calls can be chained together. */ public ResolverQueryLogConfigAssociation withResolverQueryLogConfigId(String resolverQueryLogConfigId) { setResolverQueryLogConfigId(resolverQueryLogConfigId); return this; } /** *

* The ID of the Amazon VPC that is associated with the query logging configuration. *

* * @param resourceId * The ID of the Amazon VPC that is associated with the query logging configuration. */ public void setResourceId(String resourceId) { this.resourceId = resourceId; } /** *

* The ID of the Amazon VPC that is associated with the query logging configuration. *

* * @return The ID of the Amazon VPC that is associated with the query logging configuration. */ public String getResourceId() { return this.resourceId; } /** *

* The ID of the Amazon VPC that is associated with the query logging configuration. *

* * @param resourceId * The ID of the Amazon VPC that is associated with the query logging configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public ResolverQueryLogConfigAssociation withResourceId(String resourceId) { setResourceId(resourceId); return this; } /** *

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

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

*