public class Source
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Provides the AWS Config rule owner (AWS or customer), the rule identifier, and the events that trigger the evaluation of your AWS resources.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
owner
Indicates whether AWS or the customer owns and manages the AWS Config
rule.
|
private SdkInternalList<SourceDetail> |
sourceDetails
Provides the source and type of the event that causes AWS Config to
evaluate your AWS resources.
|
private java.lang.String |
sourceIdentifier
For AWS managed Config rules, a pre-defined identifier from a list.
|
Constructor and Description |
---|
Source() |
Modifier and Type | Method and Description |
---|---|
Source |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getOwner()
Indicates whether AWS or the customer owns and manages the AWS Config
rule.
|
java.util.List<SourceDetail> |
getSourceDetails()
Provides the source and type of the event that causes AWS Config to
evaluate your AWS resources.
|
java.lang.String |
getSourceIdentifier()
For AWS managed Config rules, a pre-defined identifier from a list.
|
int |
hashCode() |
void |
setOwner(Owner owner)
Indicates whether AWS or the customer owns and manages the AWS Config
rule.
|
void |
setOwner(java.lang.String owner)
Indicates whether AWS or the customer owns and manages the AWS Config
rule.
|
void |
setSourceDetails(java.util.Collection<SourceDetail> sourceDetails)
Provides the source and type of the event that causes AWS Config to
evaluate your AWS resources.
|
void |
setSourceIdentifier(java.lang.String sourceIdentifier)
For AWS managed Config rules, a pre-defined identifier from a list.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Source |
withOwner(Owner owner)
Indicates whether AWS or the customer owns and manages the AWS Config
rule.
|
Source |
withOwner(java.lang.String owner)
Indicates whether AWS or the customer owns and manages the AWS Config
rule.
|
Source |
withSourceDetails(java.util.Collection<SourceDetail> sourceDetails)
Provides the source and type of the event that causes AWS Config to
evaluate your AWS resources.
|
Source |
withSourceDetails(SourceDetail... sourceDetails)
Provides the source and type of the event that causes AWS Config to
evaluate your AWS resources.
|
Source |
withSourceIdentifier(java.lang.String sourceIdentifier)
For AWS managed Config rules, a pre-defined identifier from a list.
|
private java.lang.String owner
Indicates whether AWS or the customer owns and manages the AWS Config rule.
private java.lang.String sourceIdentifier
For AWS managed Config rules, a pre-defined identifier from a list. To reference the list, see Using AWS Managed Config Rules.
For customer managed Config rules, the identifier is the Amazon Resource Name (ARN) of the rule's AWS Lambda function.
private SdkInternalList<SourceDetail> sourceDetails
Provides the source and type of the event that causes AWS Config to evaluate your AWS resources.
public void setOwner(java.lang.String owner)
Indicates whether AWS or the customer owns and manages the AWS Config rule.
owner
- Indicates whether AWS or the customer owns and manages the AWS
Config rule.Owner
public java.lang.String getOwner()
Indicates whether AWS or the customer owns and manages the AWS Config rule.
Owner
public Source withOwner(java.lang.String owner)
Indicates whether AWS or the customer owns and manages the AWS Config rule.
owner
- Indicates whether AWS or the customer owns and manages the AWS
Config rule.Owner
public void setOwner(Owner owner)
Indicates whether AWS or the customer owns and manages the AWS Config rule.
owner
- Indicates whether AWS or the customer owns and manages the AWS
Config rule.Owner
public Source withOwner(Owner owner)
Indicates whether AWS or the customer owns and manages the AWS Config rule.
owner
- Indicates whether AWS or the customer owns and manages the AWS
Config rule.Owner
public void setSourceIdentifier(java.lang.String sourceIdentifier)
For AWS managed Config rules, a pre-defined identifier from a list. To reference the list, see Using AWS Managed Config Rules.
For customer managed Config rules, the identifier is the Amazon Resource Name (ARN) of the rule's AWS Lambda function.
sourceIdentifier
- For AWS managed Config rules, a pre-defined identifier from a
list. To reference the list, see Using AWS Managed Config Rules.
For customer managed Config rules, the identifier is the Amazon Resource Name (ARN) of the rule's AWS Lambda function.
public java.lang.String getSourceIdentifier()
For AWS managed Config rules, a pre-defined identifier from a list. To reference the list, see Using AWS Managed Config Rules.
For customer managed Config rules, the identifier is the Amazon Resource Name (ARN) of the rule's AWS Lambda function.
For customer managed Config rules, the identifier is the Amazon Resource Name (ARN) of the rule's AWS Lambda function.
public Source withSourceIdentifier(java.lang.String sourceIdentifier)
For AWS managed Config rules, a pre-defined identifier from a list. To reference the list, see Using AWS Managed Config Rules.
For customer managed Config rules, the identifier is the Amazon Resource Name (ARN) of the rule's AWS Lambda function.
sourceIdentifier
- For AWS managed Config rules, a pre-defined identifier from a
list. To reference the list, see Using AWS Managed Config Rules.
For customer managed Config rules, the identifier is the Amazon Resource Name (ARN) of the rule's AWS Lambda function.
public java.util.List<SourceDetail> getSourceDetails()
Provides the source and type of the event that causes AWS Config to evaluate your AWS resources.
public void setSourceDetails(java.util.Collection<SourceDetail> sourceDetails)
Provides the source and type of the event that causes AWS Config to evaluate your AWS resources.
sourceDetails
- Provides the source and type of the event that causes AWS Config
to evaluate your AWS resources.public Source withSourceDetails(SourceDetail... sourceDetails)
Provides the source and type of the event that causes AWS Config to evaluate your AWS resources.
NOTE: This method appends the values to the existing list (if
any). Use setSourceDetails(java.util.Collection)
or
withSourceDetails(java.util.Collection)
if you want to override
the existing values.
sourceDetails
- Provides the source and type of the event that causes AWS Config
to evaluate your AWS resources.public Source withSourceDetails(java.util.Collection<SourceDetail> sourceDetails)
Provides the source and type of the event that causes AWS Config to evaluate your AWS resources.
sourceDetails
- Provides the source and type of the event that causes AWS Config
to evaluate your AWS resources.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Source clone()
clone
in class java.lang.Object