@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PresignedUrlConfig extends Object implements Serializable, Cloneable, StructuredPojo
Configuration for pre-signed S3 URLs.
Constructor and Description |
---|
PresignedUrlConfig() |
Modifier and Type | Method and Description |
---|---|
PresignedUrlConfig |
clone() |
boolean |
equals(Object obj) |
Long |
getExpiresInSec()
How long (in seconds) pre-signed URLs are valid.
|
String |
getRoleArn()
The ARN of an IAM role that grants permission to download files from the S3 bucket where the job data/updates are
stored.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setExpiresInSec(Long expiresInSec)
How long (in seconds) pre-signed URLs are valid.
|
void |
setRoleArn(String roleArn)
The ARN of an IAM role that grants permission to download files from the S3 bucket where the job data/updates are
stored.
|
String |
toString()
Returns a string representation of this object.
|
PresignedUrlConfig |
withExpiresInSec(Long expiresInSec)
How long (in seconds) pre-signed URLs are valid.
|
PresignedUrlConfig |
withRoleArn(String roleArn)
The ARN of an IAM role that grants permission to download files from the S3 bucket where the job data/updates are
stored.
|
public void setRoleArn(String roleArn)
The ARN of an IAM role that grants permission to download files from the S3 bucket where the job data/updates are stored. The role must also grant permission for IoT to download the files.
For information about addressing the confused deputy problem, see cross-service confused deputy prevention in the Amazon Web Services IoT Core developer guide.
roleArn
- The ARN of an IAM role that grants permission to download files from the S3 bucket where the job
data/updates are stored. The role must also grant permission for IoT to download the files.
For information about addressing the confused deputy problem, see cross-service confused deputy prevention in the Amazon Web Services IoT Core developer guide.
public String getRoleArn()
The ARN of an IAM role that grants permission to download files from the S3 bucket where the job data/updates are stored. The role must also grant permission for IoT to download the files.
For information about addressing the confused deputy problem, see cross-service confused deputy prevention in the Amazon Web Services IoT Core developer guide.
For information about addressing the confused deputy problem, see cross-service confused deputy prevention in the Amazon Web Services IoT Core developer guide.
public PresignedUrlConfig withRoleArn(String roleArn)
The ARN of an IAM role that grants permission to download files from the S3 bucket where the job data/updates are stored. The role must also grant permission for IoT to download the files.
For information about addressing the confused deputy problem, see cross-service confused deputy prevention in the Amazon Web Services IoT Core developer guide.
roleArn
- The ARN of an IAM role that grants permission to download files from the S3 bucket where the job
data/updates are stored. The role must also grant permission for IoT to download the files.
For information about addressing the confused deputy problem, see cross-service confused deputy prevention in the Amazon Web Services IoT Core developer guide.
public void setExpiresInSec(Long expiresInSec)
How long (in seconds) pre-signed URLs are valid. Valid values are 60 - 3600, the default value is 3600 seconds. Pre-signed URLs are generated when Jobs receives an MQTT request for the job document.
expiresInSec
- How long (in seconds) pre-signed URLs are valid. Valid values are 60 - 3600, the default value is 3600
seconds. Pre-signed URLs are generated when Jobs receives an MQTT request for the job document.public Long getExpiresInSec()
How long (in seconds) pre-signed URLs are valid. Valid values are 60 - 3600, the default value is 3600 seconds. Pre-signed URLs are generated when Jobs receives an MQTT request for the job document.
public PresignedUrlConfig withExpiresInSec(Long expiresInSec)
How long (in seconds) pre-signed URLs are valid. Valid values are 60 - 3600, the default value is 3600 seconds. Pre-signed URLs are generated when Jobs receives an MQTT request for the job document.
expiresInSec
- How long (in seconds) pre-signed URLs are valid. Valid values are 60 - 3600, the default value is 3600
seconds. Pre-signed URLs are generated when Jobs receives an MQTT request for the job document.public String toString()
toString
in class Object
Object.toString()
public PresignedUrlConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.