Class Schedule
- java.lang.Object
-
- software.amazon.awssdk.services.inspector2.model.Schedule
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Schedule.Builder,Schedule>
@Generated("software.amazon.awssdk:codegen") public final class Schedule extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Schedule.Builder,Schedule>
A schedule.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSchedule.Builderstatic classSchedule.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Schedule.Builderbuilder()DailyScheduledaily()The schedule's daily.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)static SchedulefromDaily(Consumer<DailySchedule.Builder> daily)Create an instance of this class withdaily()initialized to the given value.static SchedulefromDaily(DailySchedule daily)Create an instance of this class withdaily()initialized to the given value.static SchedulefromMonthly(Consumer<MonthlySchedule.Builder> monthly)Create an instance of this class withmonthly()initialized to the given value.static SchedulefromMonthly(MonthlySchedule monthly)Create an instance of this class withmonthly()initialized to the given value.static SchedulefromOneTime(Consumer<OneTimeSchedule.Builder> oneTime)Create an instance of this class withoneTime()initialized to the given value.static SchedulefromOneTime(OneTimeSchedule oneTime)Create an instance of this class withoneTime()initialized to the given value.static SchedulefromWeekly(Consumer<WeeklySchedule.Builder> weekly)Create an instance of this class withweekly()initialized to the given value.static SchedulefromWeekly(WeeklySchedule weekly)Create an instance of this class withweekly()initialized to the given value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()MonthlySchedulemonthly()The schedule's monthly.OneTimeScheduleoneTime()The schedule's one time.List<SdkField<?>>sdkFields()static Class<? extends Schedule.Builder>serializableBuilderClass()Schedule.BuildertoBuilder()StringtoString()Returns a string representation of this object.Schedule.Typetype()Retrieve an enum value representing which member of this object is populated.WeeklyScheduleweekly()The schedule's weekly.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
daily
public final DailySchedule daily()
The schedule's daily.
- Returns:
- The schedule's daily.
-
monthly
public final MonthlySchedule monthly()
The schedule's monthly.
- Returns:
- The schedule's monthly.
-
oneTime
public final OneTimeSchedule oneTime()
The schedule's one time.
- Returns:
- The schedule's one time.
-
weekly
public final WeeklySchedule weekly()
The schedule's weekly.
- Returns:
- The schedule's weekly.
-
toBuilder
public Schedule.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Schedule.Builder,Schedule>
-
builder
public static Schedule.Builder builder()
-
serializableBuilderClass
public static Class<? extends Schedule.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
fromDaily
public static Schedule fromDaily(DailySchedule daily)
Create an instance of this class withdaily()initialized to the given value.The schedule's daily.
- Parameters:
daily- The schedule's daily.
-
fromDaily
public static Schedule fromDaily(Consumer<DailySchedule.Builder> daily)
Create an instance of this class withdaily()initialized to the given value.The schedule's daily.
- Parameters:
daily- The schedule's daily.
-
fromMonthly
public static Schedule fromMonthly(MonthlySchedule monthly)
Create an instance of this class withmonthly()initialized to the given value.The schedule's monthly.
- Parameters:
monthly- The schedule's monthly.
-
fromMonthly
public static Schedule fromMonthly(Consumer<MonthlySchedule.Builder> monthly)
Create an instance of this class withmonthly()initialized to the given value.The schedule's monthly.
- Parameters:
monthly- The schedule's monthly.
-
fromOneTime
public static Schedule fromOneTime(OneTimeSchedule oneTime)
Create an instance of this class withoneTime()initialized to the given value.The schedule's one time.
- Parameters:
oneTime- The schedule's one time.
-
fromOneTime
public static Schedule fromOneTime(Consumer<OneTimeSchedule.Builder> oneTime)
Create an instance of this class withoneTime()initialized to the given value.The schedule's one time.
- Parameters:
oneTime- The schedule's one time.
-
fromWeekly
public static Schedule fromWeekly(WeeklySchedule weekly)
Create an instance of this class withweekly()initialized to the given value.The schedule's weekly.
- Parameters:
weekly- The schedule's weekly.
-
fromWeekly
public static Schedule fromWeekly(Consumer<WeeklySchedule.Builder> weekly)
Create an instance of this class withweekly()initialized to the given value.The schedule's weekly.
- Parameters:
weekly- The schedule's weekly.
-
type
public Schedule.Type type()
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beSchedule.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beSchedule.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
-