/** * Gets the description of an exclusion. * * <p>Sample code: * * <pre><code> * try (ConfigClient configClient = ConfigClient.create()) { * ExclusionName name = ProjectExclusionName.of("[PROJECT]", "[EXCLUSION]"); * LogExclusion response = configClient.getExclusion(name); * } * </code></pre> * * @param name Required. The resource name of an existing exclusion: * <p>"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" * "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" * "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" * <p>Example: `"projects/my-project-id/exclusions/my-exclusion-id"`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final LogExclusion getExclusion(ExclusionName name) { GetExclusionRequest request = GetExclusionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getExclusion(request); }
/** * Gets the description of an exclusion. * * <p>Sample code: * * <pre><code> * try (ConfigClient configClient = ConfigClient.create()) { * ExclusionName name = ProjectExclusionName.of("[PROJECT]", "[EXCLUSION]"); * LogExclusion response = configClient.getExclusion(name); * } * </code></pre> * * @param name Required. The resource name of an existing exclusion: * <p>"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" * "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" * "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" * <p>Example: `"projects/my-project-id/exclusions/my-exclusion-id"`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final LogExclusion getExclusion(ExclusionName name) { GetExclusionRequest request = GetExclusionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getExclusion(request); }
/** * Gets the description of an exclusion. * * <p>Sample code: * * <pre><code> * try (ConfigClient configClient = ConfigClient.create()) { * ExclusionName name = ProjectExclusionName.of("[PROJECT]", "[EXCLUSION]"); * LogExclusion response = configClient.getExclusion(name.toString()); * } * </code></pre> * * @param name Required. The resource name of an existing exclusion: * <p>"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" * "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" * "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" * <p>Example: `"projects/my-project-id/exclusions/my-exclusion-id"`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final LogExclusion getExclusion(String name) { GetExclusionRequest request = GetExclusionRequest.newBuilder().setName(name).build(); return getExclusion(request); }
/** * Gets the description of an exclusion. * * <p>Sample code: * * <pre><code> * try (ConfigClient configClient = ConfigClient.create()) { * ExclusionName name = ProjectExclusionName.of("[PROJECT]", "[EXCLUSION]"); * LogExclusion response = configClient.getExclusion(name.toString()); * } * </code></pre> * * @param name Required. The resource name of an existing exclusion: * <p>"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" * "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" * "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" * <p>Example: `"projects/my-project-id/exclusions/my-exclusion-id"`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final LogExclusion getExclusion(String name) { GetExclusionRequest request = GetExclusionRequest.newBuilder().setName(name).build(); return getExclusion(request); }