Package com.ibm.cloud.is.vpc.v1.model
Class Share
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.is.vpc.v1.model.Share
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class Share extends com.ibm.cloud.sdk.core.service.model.GenericModel
Share.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Share.AccessControlMode
The access control mode for the share: - `security_group`: The security groups on the virtual network interface for a mount target control access to the mount target.static interface
Share.Encryption
The type of encryption used for this file share.static interface
Share.LifecycleState
The lifecycle state of the file share.static interface
Share.ReplicationRole
The replication role of the file share.static interface
Share.ReplicationStatus
The replication status of the file share.static interface
Share.ResourceType
The resource type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAccessControlMode()
Gets the accessControlMode.Date
getCreatedAt()
Gets the createdAt.String
getCrn()
Gets the crn.String
getEncryption()
Gets the encryption.EncryptionKeyReference
getEncryptionKey()
Gets the encryptionKey.String
getHref()
Gets the href.String
getId()
Gets the id.Long
getIops()
Gets the iops.ShareJob
getLatestJob()
Gets the latestJob.ShareLatestSync
getLatestSync()
Gets the latestSync.String
getLifecycleState()
Gets the lifecycleState.List<ShareMountTargetReference>
getMountTargets()
Gets the mountTargets.String
getName()
Gets the name.ShareProfileReference
getProfile()
Gets the profile.ShareReference
getReplicaShare()
Gets the replicaShare.String
getReplicationCronSpec()
Gets the replicationCronSpec.String
getReplicationRole()
Gets the replicationRole.String
getReplicationStatus()
Gets the replicationStatus.List<ShareReplicationStatusReason>
getReplicationStatusReasons()
Gets the replicationStatusReasons.ResourceGroupReference
getResourceGroup()
Gets the resourceGroup.String
getResourceType()
Gets the resourceType.Long
getSize()
Gets the size.ShareReference
getSourceShare()
Gets the sourceShare.List<String>
getUserTags()
Gets the userTags.ZoneReference
getZone()
Gets the zone.
-
-
-
Method Detail
-
getAccessControlMode
public String getAccessControlMode()
Gets the accessControlMode. The access control mode for the share: - `security_group`: The security groups on the virtual network interface for a mount target control access to the mount target. - `vpc`: All clients in the VPC for a mount target have access to the mount target. The enumerated access control mode values for this property may expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected access control mode was encountered.- Returns:
- the accessControlMode
-
getCreatedAt
public Date getCreatedAt()
Gets the createdAt. The date and time that the file share is created.- Returns:
- the createdAt
-
getCrn
public String getCrn()
Gets the crn. The CRN for this file share.- Returns:
- the crn
-
getEncryption
public String getEncryption()
Gets the encryption. The type of encryption used for this file share.- Returns:
- the encryption
-
getEncryptionKey
public EncryptionKeyReference getEncryptionKey()
Gets the encryptionKey. The key used to encrypt this file share. This property will be present if `encryption_type` is `user_managed`.- Returns:
- the encryptionKey
-
getHref
public String getHref()
Gets the href. The URL for this file share.- Returns:
- the href
-
getId
public String getId()
Gets the id. The unique identifier for this file share.- Returns:
- the id
-
getIops
public Long getIops()
Gets the iops. The maximum input/output operations per second (IOPS) for the file share. In addition, each client accessing the share will be restricted to 48,000 IOPS. The maximum IOPS for a share may increase in the future.- Returns:
- the iops
-
getLatestJob
public ShareJob getLatestJob()
Gets the latestJob. The latest job associated with this file share. This property will be absent if no jobs have been created for this file share.- Returns:
- the latestJob
-
getLatestSync
public ShareLatestSync getLatestSync()
Gets the latestSync. Information about the latest synchronization for this file share. This property will be present when the `replication_role` is `replica` and at least one replication sync has been completed.- Returns:
- the latestSync
-
getLifecycleState
public String getLifecycleState()
Gets the lifecycleState. The lifecycle state of the file share.- Returns:
- the lifecycleState
-
getMountTargets
public List<ShareMountTargetReference> getMountTargets()
Gets the mountTargets. The mount targets for the file share.- Returns:
- the mountTargets
-
getName
public String getName()
Gets the name. The name for this share. The name is unique across all shares in the region.- Returns:
- the name
-
getProfile
public ShareProfileReference getProfile()
Gets the profile. The [profile](https://cloud.ibm.com/docs/vpc?topic=vpc-file-storage-profiles) for this file share.- Returns:
- the profile
-
getReplicaShare
public ShareReference getReplicaShare()
Gets the replicaShare. The replica file share for this source file share. This property will be present when the `replication_role` is `source`.- Returns:
- the replicaShare
-
getReplicationCronSpec
public String getReplicationCronSpec()
Gets the replicationCronSpec. The cron specification for the file share replication schedule. This property will be present when the `replication_role` is `replica`.- Returns:
- the replicationCronSpec
-
getReplicationRole
public String getReplicationRole()
Gets the replicationRole. The replication role of the file share. * `none`: This share is not participating in replication. * `replica`: This share is a replication target. * `source`: This share is a replication source.- Returns:
- the replicationRole
-
getReplicationStatus
public String getReplicationStatus()
Gets the replicationStatus. The replication status of the file share. * `active`: This share is actively participating in replication, and the replica's data is up-to-date with the replication schedule. * `degraded`: This is share is participating in replication, but the replica's data has fallen behind the replication schedule. * `failover_pending`: This share is performing a replication failover. * `initializing`: This share is initializing replication. * `none`: This share is not participating in replication. * `split_pending`: This share is performing a replication split.- Returns:
- the replicationStatus
-
getReplicationStatusReasons
public List<ShareReplicationStatusReason> getReplicationStatusReasons()
Gets the replicationStatusReasons. The reasons for the current replication status (if any). The enumerated reason code values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected reason code was encountered.- Returns:
- the replicationStatusReasons
-
getResourceGroup
public ResourceGroupReference getResourceGroup()
Gets the resourceGroup. The resource group for this file share.- Returns:
- the resourceGroup
-
getResourceType
public String getResourceType()
Gets the resourceType. The resource type.- Returns:
- the resourceType
-
getSize
public Long getSize()
Gets the size. The size of the file share rounded up to the next gigabyte. The maximum size for a share may increase in the future.- Returns:
- the size
-
getSourceShare
public ShareReference getSourceShare()
Gets the sourceShare. The source file share for this replica file share. This property will be present when the `replication_role` is `replica`.- Returns:
- the sourceShare
-
getUserTags
public List<String> getUserTags()
Gets the userTags. Tags for this resource.- Returns:
- the userTags
-
getZone
public ZoneReference getZone()
Gets the zone. The zone this file share will reside in.- Returns:
- the zone
-
-