Package com.amazonaws.services.ec2.model
Class UserData
- java.lang.Object
-
- com.amazonaws.services.ec2.model.UserData
-
- All Implemented Interfaces:
Serializable,Cloneable
public class UserData extends Object implements Serializable, Cloneable
Describes the user data to be made available to an instance.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UserData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserDataclone()booleanequals(Object obj)StringgetData()The Base64-encoded MIME user data for the instance.inthashCode()voidsetData(String data)The Base64-encoded MIME user data for the instance.StringtoString()Returns a string representation of this object; useful for testing and debugging.UserDatawithData(String data)The Base64-encoded MIME user data for the instance.
-
-
-
Method Detail
-
setData
public void setData(String data)
The Base64-encoded MIME user data for the instance.
- Parameters:
data- The Base64-encoded MIME user data for the instance.
-
getData
public String getData()
The Base64-encoded MIME user data for the instance.
- Returns:
- The Base64-encoded MIME user data for the instance.
-
withData
public UserData withData(String data)
The Base64-encoded MIME user data for the instance.
- Parameters:
data- The Base64-encoded MIME user data for the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-