@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class CloudConfigurationComplianceRuleOptions extends Object
resourceType and regoRule
are mandatory when managing custom cloud_configuration rules.| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_PROPERTY_COMPLEX_RULE |
static String |
JSON_PROPERTY_REGO_RULE |
static String |
JSON_PROPERTY_RESOURCE_TYPE |
boolean |
unparsed |
| Constructor and Description |
|---|
CloudConfigurationComplianceRuleOptions() |
| Modifier and Type | Method and Description |
|---|---|
CloudConfigurationComplianceRuleOptions |
complexRule(Boolean complexRule) |
boolean |
equals(Object o)
Return true if this CloudConfigurationComplianceRuleOptions object is equal to o.
|
Map<String,Object> |
getAdditionalProperties()
Return the additional (undeclared) property.
|
Object |
getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.
|
Boolean |
getComplexRule()
Whether the rule is a complex one.
|
CloudConfigurationRegoRule |
getRegoRule()
Rule details.
|
String |
getResourceType()
Main resource type to be checked by the rule.
|
int |
hashCode() |
CloudConfigurationComplianceRuleOptions |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
CloudConfigurationComplianceRuleOptions |
regoRule(CloudConfigurationRegoRule regoRule) |
CloudConfigurationComplianceRuleOptions |
resourceType(String resourceType) |
void |
setComplexRule(Boolean complexRule) |
void |
setRegoRule(CloudConfigurationRegoRule regoRule) |
void |
setResourceType(String resourceType) |
String |
toString() |
public boolean unparsed
public static final String JSON_PROPERTY_COMPLEX_RULE
public static final String JSON_PROPERTY_REGO_RULE
public static final String JSON_PROPERTY_RESOURCE_TYPE
public CloudConfigurationComplianceRuleOptions()
public CloudConfigurationComplianceRuleOptions complexRule(Boolean complexRule)
@Nullable public Boolean getComplexRule()
regoRule.resourceTypes
contains more than one item. Defaults to false.public void setComplexRule(Boolean complexRule)
public CloudConfigurationComplianceRuleOptions regoRule(CloudConfigurationRegoRule regoRule)
@Nullable public CloudConfigurationRegoRule getRegoRule()
public void setRegoRule(CloudConfigurationRegoRule regoRule)
public CloudConfigurationComplianceRuleOptions resourceType(String resourceType)
@Nullable public String getResourceType()
regoRule.resourceTypes.public void setResourceType(String resourceType)
public CloudConfigurationComplianceRuleOptions putAdditionalProperty(String key, Object value)
key - The arbitrary key to setvalue - The associated valuepublic Map<String,Object> getAdditionalProperties()
public Object getAdditionalProperty(String key)
key - The arbitrary key to getpublic boolean equals(Object o)
Copyright © 2024. All rights reserved.