@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RotationShift extends Object implements Serializable, Cloneable, StructuredPojo
Information about a shift that belongs to an on-call rotation.
Constructor and Description |
---|
RotationShift() |
Modifier and Type | Method and Description |
---|---|
RotationShift |
clone() |
boolean |
equals(Object obj) |
List<String> |
getContactIds()
The Amazon Resource Names (ARNs) of the contacts who are part of the shift rotation.
|
Date |
getEndTime()
The time a shift rotation ends.
|
ShiftDetails |
getShiftDetails()
Additional information about an on-call rotation shift.
|
Date |
getStartTime()
The time a shift rotation begins.
|
String |
getType()
The type of shift rotation.
|
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 who are part of the shift rotation.
|
void |
setEndTime(Date endTime)
The time a shift rotation ends.
|
void |
setShiftDetails(ShiftDetails shiftDetails)
Additional information about an on-call rotation shift.
|
void |
setStartTime(Date startTime)
The time a shift rotation begins.
|
void |
setType(String type)
The type of shift rotation.
|
String |
toString()
Returns a string representation of this object.
|
RotationShift |
withContactIds(Collection<String> contactIds)
The Amazon Resource Names (ARNs) of the contacts who are part of the shift rotation.
|
RotationShift |
withContactIds(String... contactIds)
The Amazon Resource Names (ARNs) of the contacts who are part of the shift rotation.
|
RotationShift |
withEndTime(Date endTime)
The time a shift rotation ends.
|
RotationShift |
withShiftDetails(ShiftDetails shiftDetails)
Additional information about an on-call rotation shift.
|
RotationShift |
withStartTime(Date startTime)
The time a shift rotation begins.
|
RotationShift |
withType(ShiftType type)
The type of shift rotation.
|
RotationShift |
withType(String type)
The type of shift rotation.
|
public List<String> getContactIds()
The Amazon Resource Names (ARNs) of the contacts who are part of the shift rotation.
public void setContactIds(Collection<String> contactIds)
The Amazon Resource Names (ARNs) of the contacts who are part of the shift rotation.
contactIds
- The Amazon Resource Names (ARNs) of the contacts who are part of the shift rotation.public RotationShift withContactIds(String... contactIds)
The Amazon Resource Names (ARNs) of the contacts who are part of the shift rotation.
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 who are part of the shift rotation.public RotationShift withContactIds(Collection<String> contactIds)
The Amazon Resource Names (ARNs) of the contacts who are part of the shift rotation.
contactIds
- The Amazon Resource Names (ARNs) of the contacts who are part of the shift rotation.public void setStartTime(Date startTime)
The time a shift rotation begins.
startTime
- The time a shift rotation begins.public Date getStartTime()
The time a shift rotation begins.
public RotationShift withStartTime(Date startTime)
The time a shift rotation begins.
startTime
- The time a shift rotation begins.public void setEndTime(Date endTime)
The time a shift rotation ends.
endTime
- The time a shift rotation ends.public Date getEndTime()
The time a shift rotation ends.
public RotationShift withEndTime(Date endTime)
The time a shift rotation ends.
endTime
- The time a shift rotation ends.public void setType(String type)
The type of shift rotation.
type
- The type of shift rotation.ShiftType
public String getType()
The type of shift rotation.
ShiftType
public RotationShift withType(String type)
The type of shift rotation.
type
- The type of shift rotation.ShiftType
public RotationShift withType(ShiftType type)
The type of shift rotation.
type
- The type of shift rotation.ShiftType
public void setShiftDetails(ShiftDetails shiftDetails)
Additional information about an on-call rotation shift.
shiftDetails
- Additional information about an on-call rotation shift.public ShiftDetails getShiftDetails()
Additional information about an on-call rotation shift.
public RotationShift withShiftDetails(ShiftDetails shiftDetails)
Additional information about an on-call rotation shift.
shiftDetails
- Additional information about an on-call rotation shift.public String toString()
toString
in class Object
Object.toString()
public RotationShift clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.