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

com.amazonaws.services.oam.model.LogGroupConfiguration Maven / Gradle / Ivy

Go to download

The AWS Java SDK for CloudWatch Observability Access Manager module holds the client classes that are used for communicating with CloudWatch Observability Access Manager Service

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

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

/**
 * 

* This structure contains the Filter parameter which you can use to specify which log groups are to share * log events from this source account to the monitoring account. *

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

* Use this field to specify which log groups are to share their log events with the monitoring account. Use the * term LogGroupName and one or more of the following operands. Use single quotation marks (') around * log group names. The matching of log group names is case sensitive. Each filter has a limit of five conditional * operands. Conditional operands are AND and OR. *

*
    *
  • *

    * = and != *

    *
  • *
  • *

    * AND *

    *
  • *
  • *

    * OR *

    *
  • *
  • *

    * LIKE and NOT LIKE. These can be used only as prefix searches. Include a % * at the end of the string that you want to search for and include. *

    *
  • *
  • *

    * IN and NOT IN, using parentheses ( ) *

    *
  • *
*

* Examples: *

*
    *
  • *

    * LogGroupName IN ('This-Log-Group', 'Other-Log-Group') includes only the log groups with names * This-Log-Group and Other-Log-Group. *

    *
  • *
  • *

    * LogGroupName NOT IN ('Private-Log-Group', 'Private-Log-Group-2') includes all log groups except the * log groups with names Private-Log-Group and Private-Log-Group-2. *

    *
  • *
  • *

    * LogGroupName LIKE 'aws/lambda/%' OR LogGroupName LIKE 'AWSLogs%' includes all log groups that have * names that start with aws/lambda/ or AWSLogs. *

    *
  • *
* *

* If you are updating a link that uses filters, you can specify * as the only value for the * filter parameter to delete the filter and share all log groups with the monitoring account. *

*
*/ private String filter; /** *

* Use this field to specify which log groups are to share their log events with the monitoring account. Use the * term LogGroupName and one or more of the following operands. Use single quotation marks (') around * log group names. The matching of log group names is case sensitive. Each filter has a limit of five conditional * operands. Conditional operands are AND and OR. *

*
    *
  • *

    * = and != *

    *
  • *
  • *

    * AND *

    *
  • *
  • *

    * OR *

    *
  • *
  • *

    * LIKE and NOT LIKE. These can be used only as prefix searches. Include a % * at the end of the string that you want to search for and include. *

    *
  • *
  • *

    * IN and NOT IN, using parentheses ( ) *

    *
  • *
*

* Examples: *

*
    *
  • *

    * LogGroupName IN ('This-Log-Group', 'Other-Log-Group') includes only the log groups with names * This-Log-Group and Other-Log-Group. *

    *
  • *
  • *

    * LogGroupName NOT IN ('Private-Log-Group', 'Private-Log-Group-2') includes all log groups except the * log groups with names Private-Log-Group and Private-Log-Group-2. *

    *
  • *
  • *

    * LogGroupName LIKE 'aws/lambda/%' OR LogGroupName LIKE 'AWSLogs%' includes all log groups that have * names that start with aws/lambda/ or AWSLogs. *

    *
  • *
* *

* If you are updating a link that uses filters, you can specify * as the only value for the * filter parameter to delete the filter and share all log groups with the monitoring account. *

*
* * @param filter * Use this field to specify which log groups are to share their log events with the monitoring account. Use * the term LogGroupName and one or more of the following operands. Use single quotation marks * (') around log group names. The matching of log group names is case sensitive. Each filter has a limit of * five conditional operands. Conditional operands are AND and OR.

*
    *
  • *

    * = and != *

    *
  • *
  • *

    * AND *

    *
  • *
  • *

    * OR *

    *
  • *
  • *

    * LIKE and NOT LIKE. These can be used only as prefix searches. Include a * % at the end of the string that you want to search for and include. *

    *
  • *
  • *

    * IN and NOT IN, using parentheses ( ) *

    *
  • *
*

* Examples: *

*
    *
  • *

    * LogGroupName IN ('This-Log-Group', 'Other-Log-Group') includes only the log groups with names * This-Log-Group and Other-Log-Group. *

    *
  • *
  • *

    * LogGroupName NOT IN ('Private-Log-Group', 'Private-Log-Group-2') includes all log groups * except the log groups with names Private-Log-Group and Private-Log-Group-2. *

    *
  • *
  • *

    * LogGroupName LIKE 'aws/lambda/%' OR LogGroupName LIKE 'AWSLogs%' includes all log groups that * have names that start with aws/lambda/ or AWSLogs. *

    *
  • *
* *

* If you are updating a link that uses filters, you can specify * as the only value for the * filter parameter to delete the filter and share all log groups with the monitoring account. *

*/ public void setFilter(String filter) { this.filter = filter; } /** *

* Use this field to specify which log groups are to share their log events with the monitoring account. Use the * term LogGroupName and one or more of the following operands. Use single quotation marks (') around * log group names. The matching of log group names is case sensitive. Each filter has a limit of five conditional * operands. Conditional operands are AND and OR. *

*
    *
  • *

    * = and != *

    *
  • *
  • *

    * AND *

    *
  • *
  • *

    * OR *

    *
  • *
  • *

    * LIKE and NOT LIKE. These can be used only as prefix searches. Include a % * at the end of the string that you want to search for and include. *

    *
  • *
  • *

    * IN and NOT IN, using parentheses ( ) *

    *
  • *
*

* Examples: *

*
    *
  • *

    * LogGroupName IN ('This-Log-Group', 'Other-Log-Group') includes only the log groups with names * This-Log-Group and Other-Log-Group. *

    *
  • *
  • *

    * LogGroupName NOT IN ('Private-Log-Group', 'Private-Log-Group-2') includes all log groups except the * log groups with names Private-Log-Group and Private-Log-Group-2. *

    *
  • *
  • *

    * LogGroupName LIKE 'aws/lambda/%' OR LogGroupName LIKE 'AWSLogs%' includes all log groups that have * names that start with aws/lambda/ or AWSLogs. *

    *
  • *
* *

* If you are updating a link that uses filters, you can specify * as the only value for the * filter parameter to delete the filter and share all log groups with the monitoring account. *

*
* * @return Use this field to specify which log groups are to share their log events with the monitoring account. Use * the term LogGroupName and one or more of the following operands. Use single quotation marks * (') around log group names. The matching of log group names is case sensitive. Each filter has a limit of * five conditional operands. Conditional operands are AND and OR.

*
    *
  • *

    * = and != *

    *
  • *
  • *

    * AND *

    *
  • *
  • *

    * OR *

    *
  • *
  • *

    * LIKE and NOT LIKE. These can be used only as prefix searches. Include a * % at the end of the string that you want to search for and include. *

    *
  • *
  • *

    * IN and NOT IN, using parentheses ( ) *

    *
  • *
*

* Examples: *

*
    *
  • *

    * LogGroupName IN ('This-Log-Group', 'Other-Log-Group') includes only the log groups with * names This-Log-Group and Other-Log-Group. *

    *
  • *
  • *

    * LogGroupName NOT IN ('Private-Log-Group', 'Private-Log-Group-2') includes all log groups * except the log groups with names Private-Log-Group and Private-Log-Group-2. *

    *
  • *
  • *

    * LogGroupName LIKE 'aws/lambda/%' OR LogGroupName LIKE 'AWSLogs%' includes all log groups * that have names that start with aws/lambda/ or AWSLogs. *

    *
  • *
* *

* If you are updating a link that uses filters, you can specify * as the only value for the * filter parameter to delete the filter and share all log groups with the monitoring account. *

*/ public String getFilter() { return this.filter; } /** *

* Use this field to specify which log groups are to share their log events with the monitoring account. Use the * term LogGroupName and one or more of the following operands. Use single quotation marks (') around * log group names. The matching of log group names is case sensitive. Each filter has a limit of five conditional * operands. Conditional operands are AND and OR. *

*
    *
  • *

    * = and != *

    *
  • *
  • *

    * AND *

    *
  • *
  • *

    * OR *

    *
  • *
  • *

    * LIKE and NOT LIKE. These can be used only as prefix searches. Include a % * at the end of the string that you want to search for and include. *

    *
  • *
  • *

    * IN and NOT IN, using parentheses ( ) *

    *
  • *
*

* Examples: *

*
    *
  • *

    * LogGroupName IN ('This-Log-Group', 'Other-Log-Group') includes only the log groups with names * This-Log-Group and Other-Log-Group. *

    *
  • *
  • *

    * LogGroupName NOT IN ('Private-Log-Group', 'Private-Log-Group-2') includes all log groups except the * log groups with names Private-Log-Group and Private-Log-Group-2. *

    *
  • *
  • *

    * LogGroupName LIKE 'aws/lambda/%' OR LogGroupName LIKE 'AWSLogs%' includes all log groups that have * names that start with aws/lambda/ or AWSLogs. *

    *
  • *
* *

* If you are updating a link that uses filters, you can specify * as the only value for the * filter parameter to delete the filter and share all log groups with the monitoring account. *

*
* * @param filter * Use this field to specify which log groups are to share their log events with the monitoring account. Use * the term LogGroupName and one or more of the following operands. Use single quotation marks * (') around log group names. The matching of log group names is case sensitive. Each filter has a limit of * five conditional operands. Conditional operands are AND and OR.

*
    *
  • *

    * = and != *

    *
  • *
  • *

    * AND *

    *
  • *
  • *

    * OR *

    *
  • *
  • *

    * LIKE and NOT LIKE. These can be used only as prefix searches. Include a * % at the end of the string that you want to search for and include. *

    *
  • *
  • *

    * IN and NOT IN, using parentheses ( ) *

    *
  • *
*

* Examples: *

*
    *
  • *

    * LogGroupName IN ('This-Log-Group', 'Other-Log-Group') includes only the log groups with names * This-Log-Group and Other-Log-Group. *

    *
  • *
  • *

    * LogGroupName NOT IN ('Private-Log-Group', 'Private-Log-Group-2') includes all log groups * except the log groups with names Private-Log-Group and Private-Log-Group-2. *

    *
  • *
  • *

    * LogGroupName LIKE 'aws/lambda/%' OR LogGroupName LIKE 'AWSLogs%' includes all log groups that * have names that start with aws/lambda/ or AWSLogs. *

    *
  • *
* *

* If you are updating a link that uses filters, you can specify * as the only value for the * filter parameter to delete the filter and share all log groups with the monitoring account. *

* @return Returns a reference to this object so that method calls can be chained together. */ public LogGroupConfiguration withFilter(String filter) { setFilter(filter); 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 (getFilter() != null) sb.append("Filter: ").append(getFilter()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof LogGroupConfiguration == false) return false; LogGroupConfiguration other = (LogGroupConfiguration) obj; if (other.getFilter() == null ^ this.getFilter() == null) return false; if (other.getFilter() != null && other.getFilter().equals(this.getFilter()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFilter() == null) ? 0 : getFilter().hashCode()); return hashCode; } @Override public LogGroupConfiguration clone() { try { return (LogGroupConfiguration) 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.oam.model.transform.LogGroupConfigurationMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy