@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Rotation extends Object implements Serializable, Cloneable, StructuredPojo
Information about a rotation in an on-call schedule.
Constructor and Description |
---|
Rotation() |
Modifier and Type | Method and Description |
---|---|
Rotation |
clone() |
boolean |
equals(Object obj) |
List<String> |
getContactIds()
The Amazon Resource Names (ARNs) of the contacts assigned to the rotation team.
|
String |
getName()
The name of the rotation.
|
RecurrenceSettings |
getRecurrence()
Information about when an on-call rotation is in effect and how long the rotation period lasts.
|
String |
getRotationArn()
The Amazon Resource Name (ARN) of the rotation.
|
Date |
getStartTime()
The date and time the rotation becomes active.
|
String |
getTimeZoneId()
The time zone the rotation’s activity is based on, in Internet Assigned Numbers Authority (IANA) format.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setContactIds(Collection<String> contactIds)
The Amazon Resource Names (ARNs) of the contacts assigned to the rotation team.
|
void |
setName(String name)
The name of the rotation.
|
void |
setRecurrence(RecurrenceSettings recurrence)
Information about when an on-call rotation is in effect and how long the rotation period lasts.
|
void |
setRotationArn(String rotationArn)
The Amazon Resource Name (ARN) of the rotation.
|
void |
setStartTime(Date startTime)
The date and time the rotation becomes active.
|
void |
setTimeZoneId(String timeZoneId)
The time zone the rotation’s activity is based on, in Internet Assigned Numbers Authority (IANA) format.
|
String |
toString()
Returns a string representation of this object.
|
Rotation |
withContactIds(Collection<String> contactIds)
The Amazon Resource Names (ARNs) of the contacts assigned to the rotation team.
|
Rotation |
withContactIds(String... contactIds)
The Amazon Resource Names (ARNs) of the contacts assigned to the rotation team.
|
Rotation |
withName(String name)
The name of the rotation.
|
Rotation |
withRecurrence(RecurrenceSettings recurrence)
Information about when an on-call rotation is in effect and how long the rotation period lasts.
|
Rotation |
withRotationArn(String rotationArn)
The Amazon Resource Name (ARN) of the rotation.
|
Rotation |
withStartTime(Date startTime)
The date and time the rotation becomes active.
|
Rotation |
withTimeZoneId(String timeZoneId)
The time zone the rotation’s activity is based on, in Internet Assigned Numbers Authority (IANA) format.
|
public void setRotationArn(String rotationArn)
The Amazon Resource Name (ARN) of the rotation.
rotationArn
- The Amazon Resource Name (ARN) of the rotation.public String getRotationArn()
The Amazon Resource Name (ARN) of the rotation.
public Rotation withRotationArn(String rotationArn)
The Amazon Resource Name (ARN) of the rotation.
rotationArn
- The Amazon Resource Name (ARN) of the rotation.public void setName(String name)
The name of the rotation.
name
- The name of the rotation.public String getName()
The name of the rotation.
public Rotation withName(String name)
The name of the rotation.
name
- The name of the rotation.public List<String> getContactIds()
The Amazon Resource Names (ARNs) of the contacts assigned to the rotation team.
public void setContactIds(Collection<String> contactIds)
The Amazon Resource Names (ARNs) of the contacts assigned to the rotation team.
contactIds
- The Amazon Resource Names (ARNs) of the contacts assigned to the rotation team.public Rotation withContactIds(String... contactIds)
The Amazon Resource Names (ARNs) of the contacts assigned to the rotation team.
NOTE: This method appends the values to the existing list (if any). Use
setContactIds(java.util.Collection)
or withContactIds(java.util.Collection)
if you want to
override the existing values.
contactIds
- The Amazon Resource Names (ARNs) of the contacts assigned to the rotation team.public Rotation withContactIds(Collection<String> contactIds)
The Amazon Resource Names (ARNs) of the contacts assigned to the rotation team.
contactIds
- The Amazon Resource Names (ARNs) of the contacts assigned to the rotation team.public void setStartTime(Date startTime)
The date and time the rotation becomes active.
startTime
- The date and time the rotation becomes active.public Date getStartTime()
The date and time the rotation becomes active.
public Rotation withStartTime(Date startTime)
The date and time the rotation becomes active.
startTime
- The date and time the rotation becomes active.public void setTimeZoneId(String timeZoneId)
The time zone the rotation’s activity is based on, in Internet Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or "Asia/Seoul".
timeZoneId
- The time zone the rotation’s activity is based on, in Internet Assigned Numbers Authority (IANA) format.
For example: "America/Los_Angeles", "UTC", or "Asia/Seoul".public String getTimeZoneId()
The time zone the rotation’s activity is based on, in Internet Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or "Asia/Seoul".
public Rotation withTimeZoneId(String timeZoneId)
The time zone the rotation’s activity is based on, in Internet Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or "Asia/Seoul".
timeZoneId
- The time zone the rotation’s activity is based on, in Internet Assigned Numbers Authority (IANA) format.
For example: "America/Los_Angeles", "UTC", or "Asia/Seoul".public void setRecurrence(RecurrenceSettings recurrence)
Information about when an on-call rotation is in effect and how long the rotation period lasts.
recurrence
- Information about when an on-call rotation is in effect and how long the rotation period lasts.public RecurrenceSettings getRecurrence()
Information about when an on-call rotation is in effect and how long the rotation period lasts.
public Rotation withRecurrence(RecurrenceSettings recurrence)
Information about when an on-call rotation is in effect and how long the rotation period lasts.
recurrence
- Information about when an on-call rotation is in effect and how long the rotation period lasts.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.