@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PatchSource extends Object implements Serializable, Cloneable, StructuredPojo
Information about the patches to use to update the managed nodes, including target operating systems and source repository. Applies to Linux managed nodes only.
Constructor and Description |
---|
PatchSource() |
Modifier and Type | Method and Description |
---|---|
PatchSource |
clone() |
boolean |
equals(Object obj) |
String |
getConfiguration()
The value of the yum repo configuration.
|
String |
getName()
The name specified to identify the patch source.
|
List<String> |
getProducts()
The specific operating system versions a patch repository applies to, such as "Ubuntu16.04",
"AmazonLinux2016.09", "RedhatEnterpriseLinux7.2" or "Suse12.7".
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setConfiguration(String configuration)
The value of the yum repo configuration.
|
void |
setName(String name)
The name specified to identify the patch source.
|
void |
setProducts(Collection<String> products)
The specific operating system versions a patch repository applies to, such as "Ubuntu16.04",
"AmazonLinux2016.09", "RedhatEnterpriseLinux7.2" or "Suse12.7".
|
String |
toString()
Returns a string representation of this object.
|
PatchSource |
withConfiguration(String configuration)
The value of the yum repo configuration.
|
PatchSource |
withName(String name)
The name specified to identify the patch source.
|
PatchSource |
withProducts(Collection<String> products)
The specific operating system versions a patch repository applies to, such as "Ubuntu16.04",
"AmazonLinux2016.09", "RedhatEnterpriseLinux7.2" or "Suse12.7".
|
PatchSource |
withProducts(String... products)
The specific operating system versions a patch repository applies to, such as "Ubuntu16.04",
"AmazonLinux2016.09", "RedhatEnterpriseLinux7.2" or "Suse12.7".
|
public void setName(String name)
The name specified to identify the patch source.
name
- The name specified to identify the patch source.public String getName()
The name specified to identify the patch source.
public PatchSource withName(String name)
The name specified to identify the patch source.
name
- The name specified to identify the patch source.public List<String> getProducts()
The specific operating system versions a patch repository applies to, such as "Ubuntu16.04", "AmazonLinux2016.09", "RedhatEnterpriseLinux7.2" or "Suse12.7". For lists of supported product values, see PatchFilter.
public void setProducts(Collection<String> products)
The specific operating system versions a patch repository applies to, such as "Ubuntu16.04", "AmazonLinux2016.09", "RedhatEnterpriseLinux7.2" or "Suse12.7". For lists of supported product values, see PatchFilter.
products
- The specific operating system versions a patch repository applies to, such as "Ubuntu16.04",
"AmazonLinux2016.09", "RedhatEnterpriseLinux7.2" or "Suse12.7". For lists of supported product values, see
PatchFilter.public PatchSource withProducts(String... products)
The specific operating system versions a patch repository applies to, such as "Ubuntu16.04", "AmazonLinux2016.09", "RedhatEnterpriseLinux7.2" or "Suse12.7". For lists of supported product values, see PatchFilter.
NOTE: This method appends the values to the existing list (if any). Use
setProducts(java.util.Collection)
or withProducts(java.util.Collection)
if you want to override
the existing values.
products
- The specific operating system versions a patch repository applies to, such as "Ubuntu16.04",
"AmazonLinux2016.09", "RedhatEnterpriseLinux7.2" or "Suse12.7". For lists of supported product values, see
PatchFilter.public PatchSource withProducts(Collection<String> products)
The specific operating system versions a patch repository applies to, such as "Ubuntu16.04", "AmazonLinux2016.09", "RedhatEnterpriseLinux7.2" or "Suse12.7". For lists of supported product values, see PatchFilter.
products
- The specific operating system versions a patch repository applies to, such as "Ubuntu16.04",
"AmazonLinux2016.09", "RedhatEnterpriseLinux7.2" or "Suse12.7". For lists of supported product values, see
PatchFilter.public void setConfiguration(String configuration)
The value of the yum repo configuration. For example:
[main]
name=MyCustomRepository
baseurl=https://my-custom-repository
enabled=1
For information about other options available for your yum repository configuration, see dnf.conf(5).
configuration
- The value of the yum repo configuration. For example:
[main]
name=MyCustomRepository
baseurl=https://my-custom-repository
enabled=1
For information about other options available for your yum repository configuration, see dnf.conf(5).
public String getConfiguration()
The value of the yum repo configuration. For example:
[main]
name=MyCustomRepository
baseurl=https://my-custom-repository
enabled=1
For information about other options available for your yum repository configuration, see dnf.conf(5).
[main]
name=MyCustomRepository
baseurl=https://my-custom-repository
enabled=1
For information about other options available for your yum repository configuration, see dnf.conf(5).
public PatchSource withConfiguration(String configuration)
The value of the yum repo configuration. For example:
[main]
name=MyCustomRepository
baseurl=https://my-custom-repository
enabled=1
For information about other options available for your yum repository configuration, see dnf.conf(5).
configuration
- The value of the yum repo configuration. For example:
[main]
name=MyCustomRepository
baseurl=https://my-custom-repository
enabled=1
For information about other options available for your yum repository configuration, see dnf.conf(5).
public String toString()
toString
in class Object
Object.toString()
public PatchSource clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.