Class PushSync
- java.lang.Object
-
- com.amazonaws.services.cognitosync.model.PushSync
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class PushSync extends Object implements Serializable, Cloneable
Configuration options to be applied to the identity pool.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PushSync()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PushSync
clone()
boolean
equals(Object obj)
List<String>
getApplicationArns()
List of SNS platform application ARNs that could be used by clients.String
getRoleArn()
A role configured to allow Cognito to call SNS on behalf of the developer.int
hashCode()
void
setApplicationArns(Collection<String> applicationArns)
List of SNS platform application ARNs that could be used by clients.void
setRoleArn(String roleArn)
A role configured to allow Cognito to call SNS on behalf of the developer.String
toString()
Returns a string representation of this object; useful for testing and debugging.PushSync
withApplicationArns(String... applicationArns)
List of SNS platform application ARNs that could be used by clients.PushSync
withApplicationArns(Collection<String> applicationArns)
List of SNS platform application ARNs that could be used by clients.PushSync
withRoleArn(String roleArn)
A role configured to allow Cognito to call SNS on behalf of the developer.
-
-
-
Method Detail
-
getApplicationArns
public List<String> getApplicationArns()
List of SNS platform application ARNs that could be used by clients.
- Returns:
- List of SNS platform application ARNs that could be used by clients.
-
setApplicationArns
public void setApplicationArns(Collection<String> applicationArns)
List of SNS platform application ARNs that could be used by clients.
- Parameters:
applicationArns
- List of SNS platform application ARNs that could be used by clients.
-
withApplicationArns
public PushSync withApplicationArns(String... applicationArns)
List of SNS platform application ARNs that could be used by clients.
NOTE: This method appends the values to the existing list (if any). Use
setApplicationArns(java.util.Collection)
orwithApplicationArns(java.util.Collection)
if you want to override the existing values.- Parameters:
applicationArns
- List of SNS platform application ARNs that could be used by clients.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withApplicationArns
public PushSync withApplicationArns(Collection<String> applicationArns)
List of SNS platform application ARNs that could be used by clients.
- Parameters:
applicationArns
- List of SNS platform application ARNs that could be used by clients.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRoleArn
public void setRoleArn(String roleArn)
A role configured to allow Cognito to call SNS on behalf of the developer.
- Parameters:
roleArn
- A role configured to allow Cognito to call SNS on behalf of the developer.
-
getRoleArn
public String getRoleArn()
A role configured to allow Cognito to call SNS on behalf of the developer.
- Returns:
- A role configured to allow Cognito to call SNS on behalf of the developer.
-
withRoleArn
public PushSync withRoleArn(String roleArn)
A role configured to allow Cognito to call SNS on behalf of the developer.
- Parameters:
roleArn
- A role configured to allow Cognito to call SNS on behalf of the developer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-