Class AWSAccount

java.lang.Object
com.datadog.api.client.v1.model.AWSAccount

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class AWSAccount extends Object
Returns the AWS account associated with this integration.
  • Field Details

  • Constructor Details

    • AWSAccount

      public AWSAccount()
  • Method Details

    • accessKeyId

      public AWSAccount accessKeyId(String accessKeyId)
    • getAccessKeyId

      @Nullable public String getAccessKeyId()
      Your AWS access key ID. Only required if your AWS account is a GovCloud or China account.
      Returns:
      accessKeyId
    • setAccessKeyId

      public void setAccessKeyId(String accessKeyId)
    • accountId

      public AWSAccount accountId(String accountId)
    • getAccountId

      @Nullable public String getAccountId()
      Your AWS Account ID without dashes.
      Returns:
      accountId
    • setAccountId

      public void setAccountId(String accountId)
    • accountSpecificNamespaceRules

      public AWSAccount accountSpecificNamespaceRules(Map<String,Boolean> accountSpecificNamespaceRules)
    • putAccountSpecificNamespaceRulesItem

      public AWSAccount putAccountSpecificNamespaceRulesItem(String key, Boolean accountSpecificNamespaceRulesItem)
    • getAccountSpecificNamespaceRules

      @Nullable public Map<String,Boolean> getAccountSpecificNamespaceRules()
      An object (in the form {"namespace1":true/false, "namespace2":true/false}) containing user-supplied overrides for AWS namespace metric collection. Important: This field only contains namespaces explicitly configured through API calls, not the comprehensive enabled or disabled status of all namespaces. If a namespace is absent from this field, it uses Datadog's internal defaults (all namespaces enabled by default, except AWS/SQS, AWS/ElasticMapReduce, and AWS/Usage ). For a complete view of all namespace statuses, use the V2 AWS Integration API instead.
      Returns:
      accountSpecificNamespaceRules
    • setAccountSpecificNamespaceRules

      public void setAccountSpecificNamespaceRules(Map<String,Boolean> accountSpecificNamespaceRules)
    • cspmResourceCollectionEnabled

      public AWSAccount cspmResourceCollectionEnabled(Boolean cspmResourceCollectionEnabled)
    • getCspmResourceCollectionEnabled

      @Nullable public Boolean getCspmResourceCollectionEnabled()
      Whether Datadog collects cloud security posture management resources from your AWS account. This includes additional resources not covered under the general resource_collection .
      Returns:
      cspmResourceCollectionEnabled
    • setCspmResourceCollectionEnabled

      public void setCspmResourceCollectionEnabled(Boolean cspmResourceCollectionEnabled)
    • excludedRegions

      public AWSAccount excludedRegions(List<String> excludedRegions)
    • addExcludedRegionsItem

      public AWSAccount addExcludedRegionsItem(String excludedRegionsItem)
    • getExcludedRegions

      @Nullable public List<String> getExcludedRegions()
      An array of AWS regions to exclude from metrics collection.
      Returns:
      excludedRegions
    • setExcludedRegions

      public void setExcludedRegions(List<String> excludedRegions)
    • extendedResourceCollectionEnabled

      public AWSAccount extendedResourceCollectionEnabled(Boolean extendedResourceCollectionEnabled)
    • getExtendedResourceCollectionEnabled

      @Nullable public Boolean getExtendedResourceCollectionEnabled()
      Whether Datadog collects additional attributes and configuration information about the resources in your AWS account. Required for cspm_resource_collection.
      Returns:
      extendedResourceCollectionEnabled
    • setExtendedResourceCollectionEnabled

      public void setExtendedResourceCollectionEnabled(Boolean extendedResourceCollectionEnabled)
    • filterTags

      public AWSAccount filterTags(List<String> filterTags)
    • addFilterTagsItem

      public AWSAccount addFilterTagsItem(String filterTagsItem)
    • getFilterTags

      @Nullable public List<String> getFilterTags()
      The array of EC2 tags (in the form key:value) defines a filter that Datadog uses when collecting metrics from EC2. Wildcards, such as ? (for single characters) and * (for multiple characters) can also be used. Only hosts that match one of the defined tags will be imported into Datadog. The rest will be ignored. Host matching a given tag can also be excluded by adding ! before the tag. For example, env:production,instance-type:c1.*,!region:us-east-1
      Returns:
      filterTags
    • setFilterTags

      public void setFilterTags(List<String> filterTags)
    • hostTags

      public AWSAccount hostTags(List<String> hostTags)
    • addHostTagsItem

      public AWSAccount addHostTagsItem(String hostTagsItem)
    • getHostTags

      @Nullable public List<String> getHostTags()
      Array of tags (in the form key:value) to add to all hosts and metrics reporting through this integration.
      Returns:
      hostTags
    • setHostTags

      public void setHostTags(List<String> hostTags)
    • metricsCollectionEnabled

      public AWSAccount metricsCollectionEnabled(Boolean metricsCollectionEnabled)
    • getMetricsCollectionEnabled

      @Nullable public Boolean getMetricsCollectionEnabled()
      Whether Datadog collects metrics for this AWS account.
      Returns:
      metricsCollectionEnabled
    • setMetricsCollectionEnabled

      public void setMetricsCollectionEnabled(Boolean metricsCollectionEnabled)
    • resourceCollectionEnabled

      public AWSAccount resourceCollectionEnabled(Boolean resourceCollectionEnabled)
    • getResourceCollectionEnabled

      @Deprecated @Nullable public Boolean getResourceCollectionEnabled()
      Deprecated.
      Deprecated in favor of 'extended_resource_collection_enabled'. Whether Datadog collects a standard set of resources from your AWS account.
      Returns:
      resourceCollectionEnabled
    • setResourceCollectionEnabled

      @Deprecated public void setResourceCollectionEnabled(Boolean resourceCollectionEnabled)
      Deprecated.
    • roleName

      public AWSAccount roleName(String roleName)
    • getRoleName

      @Nullable public String getRoleName()
      Your Datadog role delegation name.
      Returns:
      roleName
    • setRoleName

      public void setRoleName(String roleName)
    • secretAccessKey

      public AWSAccount secretAccessKey(String secretAccessKey)
    • getSecretAccessKey

      @Nullable public String getSecretAccessKey()
      Your AWS secret access key. Only required if your AWS account is a GovCloud or China account.
      Returns:
      secretAccessKey
    • setSecretAccessKey

      public void setSecretAccessKey(String secretAccessKey)
    • putAdditionalProperty

      public AWSAccount putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - The arbitrary key to set
      value - The associated value
      Returns:
      AWSAccount
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      The additional properties
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - The arbitrary key to get
      Returns:
      The specific additional property for the given key
    • equals

      public boolean equals(Object o)
      Return true if this AWSAccount object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object