@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Entitlement extends Object implements Serializable, Cloneable, StructuredPojo
Specifies an entitlement. Entitlements control access to specific applications within a stack, based on user attributes. Entitlements apply to SAML 2.0 federated user identities. Amazon AppStream 2.0 user pool and streaming URL users are entitled to all applications in a stack. Entitlements don't apply to the desktop stream view application, or to applications managed by a dynamic app provider using the Dynamic Application Framework.
Constructor and Description |
---|
Entitlement() |
Modifier and Type | Method and Description |
---|---|
Entitlement |
clone() |
boolean |
equals(Object obj) |
String |
getAppVisibility()
Specifies whether all or selected apps are entitled.
|
List<EntitlementAttribute> |
getAttributes()
The attributes of the entitlement.
|
Date |
getCreatedTime()
The time when the entitlement was created.
|
String |
getDescription()
The description of the entitlement.
|
Date |
getLastModifiedTime()
The time when the entitlement was last modified.
|
String |
getName()
The name of the entitlement.
|
String |
getStackName()
The name of the stack with which the entitlement is associated.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAppVisibility(String appVisibility)
Specifies whether all or selected apps are entitled.
|
void |
setAttributes(Collection<EntitlementAttribute> attributes)
The attributes of the entitlement.
|
void |
setCreatedTime(Date createdTime)
The time when the entitlement was created.
|
void |
setDescription(String description)
The description of the entitlement.
|
void |
setLastModifiedTime(Date lastModifiedTime)
The time when the entitlement was last modified.
|
void |
setName(String name)
The name of the entitlement.
|
void |
setStackName(String stackName)
The name of the stack with which the entitlement is associated.
|
String |
toString()
Returns a string representation of this object.
|
Entitlement |
withAppVisibility(AppVisibility appVisibility)
Specifies whether all or selected apps are entitled.
|
Entitlement |
withAppVisibility(String appVisibility)
Specifies whether all or selected apps are entitled.
|
Entitlement |
withAttributes(Collection<EntitlementAttribute> attributes)
The attributes of the entitlement.
|
Entitlement |
withAttributes(EntitlementAttribute... attributes)
The attributes of the entitlement.
|
Entitlement |
withCreatedTime(Date createdTime)
The time when the entitlement was created.
|
Entitlement |
withDescription(String description)
The description of the entitlement.
|
Entitlement |
withLastModifiedTime(Date lastModifiedTime)
The time when the entitlement was last modified.
|
Entitlement |
withName(String name)
The name of the entitlement.
|
Entitlement |
withStackName(String stackName)
The name of the stack with which the entitlement is associated.
|
public void setName(String name)
The name of the entitlement.
name
- The name of the entitlement.public String getName()
The name of the entitlement.
public Entitlement withName(String name)
The name of the entitlement.
name
- The name of the entitlement.public void setStackName(String stackName)
The name of the stack with which the entitlement is associated.
stackName
- The name of the stack with which the entitlement is associated.public String getStackName()
The name of the stack with which the entitlement is associated.
public Entitlement withStackName(String stackName)
The name of the stack with which the entitlement is associated.
stackName
- The name of the stack with which the entitlement is associated.public void setDescription(String description)
The description of the entitlement.
description
- The description of the entitlement.public String getDescription()
The description of the entitlement.
public Entitlement withDescription(String description)
The description of the entitlement.
description
- The description of the entitlement.public void setAppVisibility(String appVisibility)
Specifies whether all or selected apps are entitled.
appVisibility
- Specifies whether all or selected apps are entitled.AppVisibility
public String getAppVisibility()
Specifies whether all or selected apps are entitled.
AppVisibility
public Entitlement withAppVisibility(String appVisibility)
Specifies whether all or selected apps are entitled.
appVisibility
- Specifies whether all or selected apps are entitled.AppVisibility
public Entitlement withAppVisibility(AppVisibility appVisibility)
Specifies whether all or selected apps are entitled.
appVisibility
- Specifies whether all or selected apps are entitled.AppVisibility
public List<EntitlementAttribute> getAttributes()
The attributes of the entitlement.
public void setAttributes(Collection<EntitlementAttribute> attributes)
The attributes of the entitlement.
attributes
- The attributes of the entitlement.public Entitlement withAttributes(EntitlementAttribute... attributes)
The attributes of the entitlement.
NOTE: This method appends the values to the existing list (if any). Use
setAttributes(java.util.Collection)
or withAttributes(java.util.Collection)
if you want to
override the existing values.
attributes
- The attributes of the entitlement.public Entitlement withAttributes(Collection<EntitlementAttribute> attributes)
The attributes of the entitlement.
attributes
- The attributes of the entitlement.public void setCreatedTime(Date createdTime)
The time when the entitlement was created.
createdTime
- The time when the entitlement was created.public Date getCreatedTime()
The time when the entitlement was created.
public Entitlement withCreatedTime(Date createdTime)
The time when the entitlement was created.
createdTime
- The time when the entitlement was created.public void setLastModifiedTime(Date lastModifiedTime)
The time when the entitlement was last modified.
lastModifiedTime
- The time when the entitlement was last modified.public Date getLastModifiedTime()
The time when the entitlement was last modified.
public Entitlement withLastModifiedTime(Date lastModifiedTime)
The time when the entitlement was last modified.
lastModifiedTime
- The time when the entitlement was last modified.public String toString()
toString
in class Object
Object.toString()
public Entitlement clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.