@Generated(value="software.amazon.awssdk:codegen") public final class ShareRule extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ShareRule.Builder,ShareRule>
Specifies a rule for sharing snapshots across AWS accounts.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ShareRule.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ShareRule.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasTargetAccounts()
Returns true if the TargetAccounts property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ShareRule.Builder> |
serializableBuilderClass() |
List<String> |
targetAccounts()
The IDs of the AWS accounts with which to share the snapshots.
|
ShareRule.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Integer |
unshareInterval()
The period after which snapshots that are shared with other AWS accounts are automatically unshared.
|
RetentionIntervalUnitValues |
unshareIntervalUnit()
The unit of time for the automatic unsharing interval.
|
String |
unshareIntervalUnitAsString()
The unit of time for the automatic unsharing interval.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final boolean hasTargetAccounts()
public final List<String> targetAccounts()
The IDs of the AWS accounts with which to share the snapshots.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTargetAccounts() to see if a value was sent in this field.
public final Integer unshareInterval()
The period after which snapshots that are shared with other AWS accounts are automatically unshared.
public final RetentionIntervalUnitValues unshareIntervalUnit()
The unit of time for the automatic unsharing interval.
If the service returns an enum value that is not available in the current SDK version,
unshareIntervalUnit will return RetentionIntervalUnitValues.UNKNOWN_TO_SDK_VERSION. The raw
value returned by the service is available from unshareIntervalUnitAsString().
RetentionIntervalUnitValuespublic final String unshareIntervalUnitAsString()
The unit of time for the automatic unsharing interval.
If the service returns an enum value that is not available in the current SDK version,
unshareIntervalUnit will return RetentionIntervalUnitValues.UNKNOWN_TO_SDK_VERSION. The raw
value returned by the service is available from unshareIntervalUnitAsString().
RetentionIntervalUnitValuespublic ShareRule.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ShareRule.Builder,ShareRule>public static ShareRule.Builder builder()
public static Class<? extends ShareRule.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.