public class CreatePDSRecord extends Record
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROP_DATASET |
static java.lang.String |
PROP_EXISTS |
static java.lang.String |
PROP_OPTIONS |
Constructor and Description |
---|
CreatePDSRecord()
Construct a record with a default ID
|
CreatePDSRecord(java.lang.String id)
Construct a default record with a specific ID
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDataset()
Return the data set to be created
|
java.lang.String |
getOptions()
Return the options used to allocate the new data set
|
boolean |
isExists()
Return
true if the data set already exists;
false otherwise |
CreatePDSRecord |
parse(com.ibm.json.java.JSONObject jsonObj)
Create the record from JSON.
|
void |
setDataset(java.lang.String dataset)
Set the data set to be created
|
void |
setExists(boolean exists)
Set whether the data set already exists
|
void |
setOptions(java.lang.String options)
Set the options to allocate the new data set
|
com.ibm.json.java.JSONObject |
toJSON()
Returns the record in JSON format.
|
public static final java.lang.String PROP_DATASET
public static final java.lang.String PROP_OPTIONS
public static final java.lang.String PROP_EXISTS
public CreatePDSRecord()
public CreatePDSRecord(java.lang.String id)
id
- get idpublic java.lang.String getDataset()
public void setDataset(java.lang.String dataset)
dataset
- the data set to be createdpublic java.lang.String getOptions()
public void setOptions(java.lang.String options)
options
- the optionspublic boolean isExists()
true
if the data set already exists;
false
otherwisetrue
if the data set already existspublic void setExists(boolean exists)
exists
- true
if the data set already existspublic com.ibm.json.java.JSONObject toJSON()
public CreatePDSRecord parse(com.ibm.json.java.JSONObject jsonObj)
<IBM Copyright © 2018 IBM Corp. All Rights Reserved.